/* ================================================================
   EGOLAY WEBMAIL — Yandex Mail Tarzı Tasarım Sistemi
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Değişkenleri ─────────────────────────────────────────── */
:root {
  --red: #FF5C45;
  --red-hover: #E54E3A;
  --red-light: #FFF0EE;
  --blue: #1A73E8;
  --blue-light: #E8F0FE;
  --bg: #EAEAEA;
  --sidebar-bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E2E4E6;
  --border-light: #F0F0F0;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --unread-bg: #FFFFFF;
  --hover-bg: #F4F5F6;
  --selected-bg: #F0F1F2;
  --selected-border: #FFC000;
  --avatar-size: 32px;
  --sidebar-w: 220px;
  --list-w: 380px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: 0.15s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #C1C1C1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

/* ════════════════════════════════════════════════════════════════
   LEFT VERTICAL SERVICE STRIP (Yandex 360)
   ════════════════════════════════════════════════════════════════ */
.wm-left-strip {
  width: 56px;
  min-width: 56px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  height: 100%;
  z-index: 101;
  position: relative;
}

.wm-left-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.wm-logo-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FF5C30;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 4px rgba(255, 92, 48, 0.2);
}

.wm-logo-icon-circle .inner-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
}

.wm-logo-icon-circle .inner-circle.white {
  background: #FFFFFF;
  left: 6px;
  top: 9px;
  opacity: 0.9;
}

.wm-logo-icon-circle .inner-circle.orange {
  background: #FF9900;
  right: 6px;
  bottom: 9px;
}

.wm-left-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wm-left-service-item {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  position: relative;
}

.wm-left-service-item:hover {
  background: #F0F1F2;
  color: #1A1A1A;
}

.wm-left-service-item.active {
  background: #FFF0EE;
  color: #FF5C30;
}

.wm-left-service-sep {
  width: 24px;
  height: 1px;
  background: #E2E4E6;
  margin: 6px 0;
}

.wm-left-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wm-left-storage-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #5f6368;
  cursor: pointer;
}

.wm-storage-badge-txt {
  font-size: 15px;
  font-weight: bold;
  background: #FFC000;
  color: #1A1A1A;
  padding: 1px 3px;
  border-radius: 3px;
  margin-top: -2px;
}

.wm-left-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background var(--transition);
}

.wm-left-btn:hover {
  background: #F0F1F2;
  color: #1A1A1A;
}

.wm-left-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #FFC000;
  padding: 1px;
  cursor: pointer;
  transition: transform var(--transition);
}

.wm-left-avatar-wrap:hover {
  transform: scale(1.05);
}

.wm-left-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fc3f35;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
}

/* ════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ════════════════════════════════════════════════════════════════ */
.wm-layout {
  display: flex;
  flex: 1;
  width: calc(100% - 56px);
  height: 100%;
  overflow: hidden;
  background: #EAEAEA;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.wm-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wm-sidebar-header {
  padding: 16px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wm-sidebar-header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #1A1A1A;
  margin: 0;
}

.wm-sidebar-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--transition);
}

.wm-sidebar-search-btn:hover {
  background: #F0F1F2;
}

.wm-sidebar-search-box {
  display: none;
  padding: 0 16px 10px;
}

.wm-sidebar-search-box.visible {
  display: block;
}

.wm-sidebar-search-box input {
  width: 100%;
  height: 30px;
  border: 1.5px solid #E2E4E6;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 15px;
}

.wm-sidebar-search-box input:focus {
  border-color: #FFC000;
}

.wm-compose-group {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  align-items: center;
}

.wm-compose-btn {
  flex: 1;
  height: 36px;
  background: #FFC80A;
  color: #1a1a1a;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: bold;
  margin: 0;
  box-shadow: none;
  transition: background var(--transition);
}

.wm-compose-btn:hover {
  background: #EBB200;
  box-shadow: none;
  transform: none;
}

.wm-compose-btn .btn-label {
  display: inline;
}

.wm-refresh-btn-sidebar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E2E4E6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  background: none;
}

.wm-refresh-btn-sidebar:hover {
  background: #F4F5F6;
  border-color: #C0C2C4;
}

.wm-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.wm-nav-section {
  padding: 0;
}

.wm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 34px;
  border-radius: 0;
  margin-right: 0;
  cursor: pointer;
  color: #333333;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.wm-nav-item:hover {
  background: #F4F5F6;
  color: var(--text-primary);
}

.wm-nav-item.active {
  background: #F0F1F2;
  color: #1A1A1A;
  font-weight: bold;
}

.wm-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5f6368;
}

.wm-nav-item.active .wm-nav-icon {
  color: #1A1A1A;
}

.wm-nav-label {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.wm-nav-count {
  font-size: 12px;
  color: #999999;
}

.wm-nav-item.active .wm-nav-count {
  color: #1A1A1A;
}

.unread-badge-val {
  font-weight: bold;
  color: #FF9900;
}

.total-badge-val {
  color: #999999;
}

.wm-nav-add-btn {
  font-size: 20px;
  font-weight: bold;
  color: #999;
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background var(--transition);
}

.wm-nav-add-btn:hover {
  background: #E2E4E6;
  color: #333;
}

.wm-nav-sweep-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #999;
}

.wm-nav-sweep-btn:hover {
  background: #E2E4E6;
  color: #fc3f35;
}

.wm-nav-item:hover .wm-nav-sweep-btn {
  display: flex;
}

.wm-sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.wm-sidebar-quick-tabs {
  display: flex;
  justify-content: space-around;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.quick-tab {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}

.quick-tab:hover {
  background: #F4F5F6;
  color: #1A1A1A;
}

.unread-count-badge {
  font-size: 15px;
  font-weight: bold;
  color: #FF5C30;
  background: #FFF0EE;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid #FFD1CC;
}

.wm-sidebar-links {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link-item {
  font-size: 14.5px;
  color: #5F6368;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sidebar-link-item:hover {
  color: #1A1A1A;
}

.wm-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: #999999;
}

.footer-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-selector {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-link {
  cursor: pointer;
  text-decoration: underline;
}

.footer-row-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.footer-row-2 a {
  color: #999999;
}

.footer-row-2 a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════
   MESSAGE LIST PANEL (Middle Panel)
   ════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   RIGHT CONTAINER & VIEW / AD PANEL
   preview-open yokken (girişte/boşken) list panel kalan tüm orta
   alanı kaplar. Sağda sadece reklam (300px) kalır.
   Mesaj seçilince liste daralır, detay paneli ortayı kaplar, reklam sağda kalır.
   ════════════════════════════════════════════════════════════════ */
.wm-list-panel {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Ayraç çizgisi varsayılan olarak gizli (mesaj seçilmediğinde görünmez) */
.wm-resize-handle {
  display: none !important;
  width: 4px;
  background: transparent;
  cursor: col-resize;
  z-index: 10;
  transition: background 0.2s;
}

.wm-resize-handle:hover,
.wm-resize-handle.dragging {
  background: #2E7D32;
}

.wm-right-container {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
  background: #FFFFFF;
  border-left: 1px solid var(--border);
}

/* MESAJ SEÇİLDİĞİNDE (preview-open sınıfı aktifken) */
.wm-layout.preview-open .wm-list-panel {
  flex: none !important;
  /* Genişliği JS veya CSS değişkeni belirleyecek */
  width: var(--list-w, 320px) !important;
  min-width: 240px !important;
  max-width: 500px !important;
}

.wm-layout.preview-open .wm-resize-handle {
  display: block !important;
  /* Mesaj açılınca ayraç çizgisi görünür */
}

.wm-layout.preview-open .wm-right-container {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}


/* Marmara Bölgesi Otelleri Ad Banner */
.wm-horizontal-ad-card {
  display: flex;
  margin: 12px 16px 6px;
  border: 1px solid #E2E4E6;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ad-card-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.ad-card-img {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid #ECEFF1;
}

.ad-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ad-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-card-title {
  font-size: 15px;
  font-weight: bold;
  color: #1A1A1A;
}

.ad-card-badge {
  font-size: 15px;
  font-weight: bold;
  color: #999999;
  border: 1px solid #CCCCCC;
  padding: 0 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.ad-card-desc {
  font-size: 15.5px;
  color: #666666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ad-card-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1.5px solid #E2E4E6;
  font-size: 15.5px;
  font-weight: bold;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  text-decoration: none;
}

.ad-card-btn:hover {
  background: #F4F5F6;
  border-color: #CCCCCC;
}

.ad-card-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card-menu-btn:hover {
  color: #333333;
}

/* List Toolbar */
.wm-list-toolbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid #E2E4E6;
  flex-shrink: 0;
}

.wm-toolbar-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-right: 8px;
}

.wm-toolbar-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid #C0C0C0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.wm-toolbar-checkbox:hover {
  border-color: #888888;
}

.wm-toolbar-checkbox.checked {
  background: #1A73E8;
  border-color: #1A73E8;
}

.wm-toolbar-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.wm-toolbar-arrow {
  font-size: 10px;
  color: #666666;
}

.wm-toolbar-action-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 15.5px;
  color: #1A1A1A;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.wm-toolbar-action-btn:hover {
  background: #F4F5F6;
}

.wm-toolbar-action-btn.disabled {
  color: #C0C2C4;
  pointer-events: none;
  opacity: 0.65;
}

/* Filter tabs */
.wm-filter-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid #E2E4E6;
  flex-shrink: 0;
}

.wm-filter-tab {
  padding: 7px 10px;
  font-size: 12.5px;
  color: #5F6368;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.wm-filter-tab:hover {
  color: #1A1A1A;
}

.wm-filter-tab.active {
  color: #FF5C30;
  font-weight: bold;
}

.wm-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #FF5C30;
}

/* Message rows */
.wm-message-list {
  flex: 1;
  overflow-y: auto;
}

.wm-msg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #F0F1F2;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  min-height: 48px;
  user-select: none;
}

.wm-msg-row:hover {
  background: #F4F5F6;
}

.wm-msg-row.selected {
  background: var(--selected-bg);
}

.wm-msg-row.unread {
  background: #FFFFFF;
}

.wm-msg-checkbox {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1.5px solid #C0C0C0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wm-msg-row:hover .wm-msg-checkbox,
.wm-msg-row.selected .wm-msg-checkbox {
  border-color: #1A73E8;
}

.wm-msg-checkbox.checked {
  background: #1A73E8;
  border-color: #1A73E8;
}

.wm-msg-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.wm-msg-star {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0C2C4;
  cursor: pointer;
  transition: color var(--transition);
}

.wm-msg-star:hover {
  color: #FFA000;
}

.wm-msg-star.starred {
  color: #FFA000;
}

.wm-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
  color: white;
  flex-shrink: 0;
}

.wm-msg-body {
  flex: 1;
  min-width: 0;
}

.wm-msg-sender {
  font-size: 12.5px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

.wm-msg-row.unread .wm-msg-sender {
  font-weight: 700;
  color: #000000;
}

.wm-msg-subject-preview {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-msg-subject {
  color: #1A1A1A;
  font-weight: 400;
}

.wm-msg-row.unread .wm-msg-subject {
  font-weight: 600;
  color: #000000;
}

.wm-msg-preview {
  color: #8A8A8A;
  font-size: 12px;
}

.wm-msg-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.wm-msg-time {
  font-size: 11.5px;
  color: #7A7A7A;
  white-space: nowrap;
}

.wm-msg-row.unread .wm-msg-time {
  color: #333333;
  font-weight: 600;
}

.wm-msg-icons {
  display: flex;
  gap: 2px;
  color: #999999;
}

.wm-unread-dot {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF5C30;
}

/* ════════════════════════════════════════════════════════════════
   RIGHT CONTAINER (ikinci tanım — üstteki ile birleştirildi)
   ════════════════════════════════════════════════════════════════ */

/* Right Ad Panel */
.wm-ad-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  overflow-y: auto;
  background: #F3F4F5;
  border-left: 1px solid #E2E4E6;
}

.ad-sidebar-header {
  display: flex;
  justify-content: flex-end;
  font-size: 15px;
  color: #999999;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 4px;
}

.ad-sidebar-header:hover {
  color: #666666;
}

.ad-sidebar-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E4E6;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ultahost Ad Details */
.ad-sidebar-card.ultahost {
  border-color: #E2E4E6;
}

.ad-card-header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: bold;
}

.uh-brand {
  background: #00bcd4;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.uh-name {
  color: #333333;
}

.ad-card-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.ad-card-sub-title {
  font-size: 14.5px;
  font-weight: bold;
  color: #00bcd4;
}

.ad-card-graphics-box {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 8px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.threed-pct {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.threed-sub {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0.9;
}

.ad-card-price-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.ad-card-price-details strong {
  font-size: 16.5px;
  color: #1A1A1A;
}

.price-title {
  font-size: 20px;
  color: #555555;
  font-weight: bold;
}

.price-features {
  font-size: 15px;
  color: #777777;
  line-height: 1.4;
}

.ad-card-link-btn {
  height: 36px;
  border-radius: 18px;
  border: 1.5px solid #00bcd4;
  color: #00bcd4;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition);
}

.ad-card-link-btn:hover {
  background: rgba(0, 188, 212, 0.05);
}

/* ETS Tur Card */
.ad-sidebar-card.etstur-card {
  padding: 0;
  overflow: hidden;
}

.ets-card-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.ets-card-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ets-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ets-brand {
  font-size: 20px;
  font-weight: 900;
  color: #e51937;
  text-transform: uppercase;
}

.ets-menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #999999;
  cursor: pointer;
}

.ets-card-desc {
  font-size: 20px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
}

/* Message View Panel — her zaman görünür, ad-sidebar'ın solunda */
.wm-view-panel {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

/* Boş kutu / e-posta yok Yandex tarzı boş ekran */
.wm-empty-list-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #FFFFFF;
  text-align: center;
}

.wm-empty-list-illustration {
  width: 240px;
  height: 180px;
  margin-bottom: 24px;
}

.wm-empty-list-title {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wm-msg-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.wm-msg-subject-line {
  font-size: 20px;
  font-weight: bold;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 12px;
}

.wm-msg-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wm-action-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.wm-action-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  border-color: #999999;
}

.wm-action-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.wm-action-btn.primary:hover {
  background: #1557B0;
  border-color: #1557B0;
}

.wm-action-btn.danger:hover {
  background: #FFF0EE;
  border-color: var(--red);
  color: var(--red);
}

.wm-action-btn.close-view {
  border-color: #E2E4E6;
}

.wm-sender-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wm-sender-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.wm-sender-details {
  flex: 1;
  min-width: 0;
}

.wm-sender-name {
  font-size: 15.5px;
  font-weight: bold;
  color: var(--text-primary);
}

.wm-sender-email {
  font-size: 15.5px;
  color: var(--text-muted);
}

.wm-msg-date {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.wm-to-info {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wm-to-info span {
  color: var(--text-secondary);
}

.wm-msg-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.wm-msg-body-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 720px;
}

.wm-msg-body-text p {
  margin-bottom: 12px;
}

.wm-msg-body-text a {
  color: var(--blue);
}

/* Attachments */
.wm-attachments {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.wm-attach-title {
  font-size: 15.5px;
  font-weight: bold;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #F4F5F6;
  cursor: pointer;
  transition: all var(--transition);
}

.wm-attach-item:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.wm-attach-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-attach-name {
  font-size: 14.5px;
  font-weight: 500;
}

.wm-attach-size {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Inline Reply */
.wm-inline-reply {
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  flex-shrink: 0;
  background: #FFFFFF;
}

.wm-reply-area {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.wm-reply-area:focus-within {
  border-color: var(--blue);
}

.wm-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  background: #F4F5F6;
}

.wm-reply-from {
  font-size: 15.5px;
  color: var(--text-muted);
}

.wm-reply-from span {
  color: var(--text-primary);
  font-weight: bold;
}

.wm-reply-toolbar {
  display: flex;
  gap: 2px;
}

.wm-reply-tool {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  transition: background var(--transition);
}

.wm-reply-tool:hover {
  background: #E2E4E6;
  color: var(--text-primary);
}

.wm-reply-input {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: none;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: white;
}

.wm-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #F4F5F6;
  border-top: 1px solid var(--border-light);
}

.wm-reply-send {
  height: 30px;
  padding: 0 16px;
  background: var(--blue);
  color: white;
  border-radius: 15px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}

.wm-reply-send:hover {
  background: #1557B0;
}

.wm-reply-attach-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.wm-reply-attach-btn:hover {
  background: #E2E4E6;
  color: var(--text-primary);
}

/* ════════════════════════════════════════════════════════════════
   COMPOSE MODAL
   ════════════════════════════════════════════════════════════════ */
.wm-compose-modal {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 680px;
  max-height: 600px;
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.wm-compose-modal.open {
  transform: translateY(0);
}

.wm-compose-modal.minimized {
  transform: translateY(calc(100% - 48px));
}

.wm-compose-header {
  height: 48px;
  padding: 0 16px;
  background: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.wm-compose-title {
  flex: 1;
  font-size: 15.5px;
  font-weight: bold;
  color: white;
}

.wm-compose-ctrl {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition);
}

.wm-compose-ctrl:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.wm-compose-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wm-compose-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
}

.wm-compose-field-label {
  width: 48px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.wm-compose-field-input {
  flex: 1;
  border: none;
  font-size: 15px;
  color: var(--text-primary);
  padding: 2px 0;
  background: transparent;
  min-width: 0;
}

.wm-compose-toggle {
  font-size: 15.5px;
  color: var(--blue);
  cursor: pointer;
}

.wm-compose-toggle:hover {
  text-decoration: underline;
}

.wm-compose-cc,
.wm-compose-bcc {
  display: none;
}

.wm-compose-cc.visible,
.wm-compose-bcc.visible {
  display: flex;
}

.wm-rt-toolbar {
  display: flex;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-light);
  gap: 2px;
  flex-shrink: 0;
}

.wm-rt-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: bold;
}

.wm-rt-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.wm-rt-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
  align-self: center;
}

.wm-compose-editor {
  flex: 1;
  min-height: 140px;
  padding: 12px 16px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-primary);
  border: none;
  resize: none;
  background: white;
  overflow-y: auto;
}

.wm-compose-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.wm-send-btn {
  height: 34px;
  padding: 0 20px;
  background: var(--blue);
  color: white;
  border-radius: 17px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}

.wm-send-btn:hover {
  background: #1557B0;
}

.wm-compose-foot-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.wm-compose-foot-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.wm-compose-foot-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

/* User dropdown */
.wm-user-dropdown {
  position: absolute;
  bottom: 12px;
  left: 62px;
  width: 260px;
  z-index: 300;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
}

.wm-user-dropdown.open {
  display: block;
  animation: dropIn 0.12s ease;
}

.wm-user-header {
  padding: 16px;
  background: linear-gradient(135deg, #FF5C30, #FF9900);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wm-user-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.wm-user-info-text {
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wm-user-info-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.wm-user-info-email {
  font-size: 11.5px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.wm-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.wm-user-menu-item:hover {
  background: var(--hover-bg);
}

.wm-user-menu-item svg {
  color: var(--text-muted);
}

/* Yandex 360 Apps Dropdown */
.wm-apps-dropdown {
  position: absolute;
  bottom: 80px;
  left: 62px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 250px;
  padding: 12px;
  z-index: 1000;
  display: none;
}

.wm-apps-dropdown.open {
  display: block;
  animation: dropIn 0.12s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wm-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wm-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition);
  cursor: pointer;
}

.wm-app-item:hover {
  background: var(--hover-bg);
}

.wm-app-item.active {
  background: #F0F1F2;
}

.wm-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.wm-app-icon.mail {
  background: #fc3f35;
}

.wm-app-icon.disk {
  background: #1a73e8;
}

.wm-app-icon.calendar {
  background: #34a853;
}

.wm-app-icon.docs {
  background: #4285f4;
}

.wm-app-icon.telemost {
  background: #8e24aa;
}

.wm-app-icon.notes {
  background: #fbbc05;
}

.wm-app-name {
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
}

/* ── Settings Panel ─────────────────────────────────────────── */
.wm-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.wm-settings-overlay.open {
  display: flex;
}

.wm-settings-modal {
  width: 680px;
  max-height: 80vh;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wm-settings-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wm-settings-header h2 {
  font-size: 20px;
  font-weight: bold;
}

.wm-settings-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.wm-settings-nav {
  width: 180px;
  border-right: 1px solid var(--border);
  padding: 8px 0;
  overflow-y: auto;
}

.wm-settings-nav-item {
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.wm-settings-nav-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.wm-settings-nav-item.active {
  background: var(--red-light);
  color: var(--red);
  font-weight: bold;
}

.wm-settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.wm-settings-section-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 16px;
}

.wm-settings-row {
  margin-bottom: 14px;
}

.wm-settings-label {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-settings-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
}

.wm-settings-input:focus {
  border-color: var(--blue);
}

.wm-settings-textarea {
  width: 100%;
  padding: 8px 10px;
  min-height: 80px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
  resize: vertical;
}

.wm-settings-textarea:focus {
  border-color: var(--blue);
}

.wm-settings-save {
  height: 34px;
  padding: 0 18px;
  background: var(--blue);
  color: white;
  border-radius: 17px;
  font-size: 15px;
  font-weight: bold;
}

/* Theme Picker */
.wm-theme-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-theme-item {
  width: 60px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.15s;
}

.wm-theme-item.active {
  border-color: var(--blue);
}

/* Toggle switch */
.wm-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.wm-toggle-track {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: var(--border);
  transition: background 0.2s;
  position: relative;
  flex-shrink: 0;
}

.wm-toggle-track.on {
  background: var(--blue);
}

.wm-toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}

.wm-toggle-track.on .wm-toggle-thumb {
  left: 20px;
}

.wm-toggle-label {
  font-size: 15px;
  color: var(--text-primary);
}

/* Toast Container */
.wm-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.wm-toast {
  height: 38px;
  padding: 0 16px;
  background: #333333;
  color: white;
  border-radius: 19px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastIn 0.22s ease;
}

@keyframes toastIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wm-toast.hiding {
  animation: toastOut 0.18s ease forwards;
}

@keyframes toastOut {
  to {
    transform: translateY(15px);
    opacity: 0;
  }
}

.wm-toast-action {
  color: #90CAF9;
  font-weight: bold;
  cursor: pointer;
}

/* Skeleton loader */
.wm-skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #EBEBEB 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Color avatars */
.av-1 {
  background: #E53935;
}

.av-2 {
  background: #8E24AA;
}

.av-3 {
  background: #1E88E5;
}

.av-4 {
  background: #4CAF50;
}

.av-5 {
  background: #F57C00;
}

.av-6 {
  background: #43A047;
}

.av-7 {
  background: #C0392B;
}

.av-8 {
  background: #2C3E50;
}

.av-9 {
  background: #6C3483;
}

.av-10 {
  background: #117A65;
}

/* Context menu */
.wm-context-menu {
  position: fixed;
  z-index: 600;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-width: 150px;
  display: none;
}

.wm-context-menu.open {
  display: block;
  animation: dropIn 0.1s ease;
}

.wm-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.wm-dropdown-item:hover {
  background: var(--hover-bg);
}

.wm-dropdown-sep {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* Resize Handle */
.wm-resize-handle {
  width: 3px;
  cursor: col-resize;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.15s;
}

.wm-resize-handle:hover,
.wm-resize-handle.dragging {
  background: #FFC000;
}

/* Compose Attachments Shelf */
.wm-compose-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid var(--border-light);
  background: #F9F9F9;
  flex-shrink: 0;
  max-height: 100px;
  overflow-y: auto;
}

.wm-compose-attachment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 15.5px;
  color: var(--text-primary);
}

.wm-compose-attachment-item.disk-file {
  background: #FFF0EE;
  border-color: #FFD1CC;
}

.wm-compose-attachment-item .name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.wm-compose-attachment-item .size {
  color: var(--text-muted);
}

.wm-compose-attachment-item .remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  margin-left: 2px;
}

.wm-compose-attachment-item .remove-btn:hover {
  color: var(--red);
}

.wm-compose-attachment-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #FFFFFF;
  border: 1px dashed var(--border-light);
  border-radius: 6px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.wm-compose-attachment-progress .bar {
  width: 70px;
  height: 5px;
  background: #EEEEEE;
  border-radius: 2px;
  overflow: hidden;
}

.wm-compose-attachment-progress .bar-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
}

/* Responsive Overrides (max-width: 1024px for Tablets & Mobiles) */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 280px;
    --list-w: 100%;
  }

  /* Transform Left Strip to Bottom Navigation Bar */
  .wm-left-strip {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    min-width: 100% !important;
    background: #FFFFFF !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 16px !important;
    z-index: 1020 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .wm-left-logo {
    display: none !important;
  }

  .wm-left-services {
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 0 !important;
    width: auto !important;
  }

  .wm-left-service-item {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
  }

  .wm-left-service-sep {
    display: none !important;
  }

  .wm-left-bottom {
    margin-top: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    gap: 12px !important;
  }

  .wm-left-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .wm-left-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
  }

  /* Main Layout Adjustment for Bottom Nav */
  .wm-layout {
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    margin-left: 0 !important;
    flex-direction: row !important;
  }

  .wm-message-list {
    padding-bottom: 80px !important;
  }

  /* User Dropdown opens upwards from Bottom Nav */
  .wm-user-dropdown {
    bottom: 70px !important;
    top: auto !important;
    right: 16px !important;
    left: auto !important;
    z-index: 1030 !important;
  }

  /* Convert Sidebar to Slide-out Drawer */
  .wm-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 60px !important;
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
    max-width: var(--sidebar-w) !important;
    z-index: 1010 !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(-105%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
  }

  .wm-layout.drawer-open .wm-sidebar {
    transform: translateX(0) !important;
  }

  /* Sidebar Drawer Backdrop Overlay */
  .wm-sidebar-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1005 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    pointer-events: none;
  }

  .wm-layout.drawer-open .wm-sidebar-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  /* List Panel & Resize Handles */
  .wm-list-panel {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
  }

  .wm-layout.preview-open .wm-list-panel {
    display: none !important;
  }

  .wm-resize-handle {
    display: none !important;
  }

  /* Ad panels and Horizontal ad cards must be hidden on mobile */
  .wm-ad-sidebar,
  .wm-horizontal-ad-card,
  #wm-ad-sidebar {
    display: none !important;
  }

  /* Right Container Layout: Hide when message is not open */
  .wm-layout:not(.preview-open) .wm-right-container {
    display: none !important;
  }

  .wm-layout.preview-open .wm-right-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    border-left: none !important;
    display: flex !important;
  }

  .wm-view-panel {
    width: 100% !important;
    flex: 1 !important;
    border: none !important;
  }

  /* Hamburg-menu toggle button */
  .wm-hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #5f6368;
    cursor: pointer;
    margin-right: 8px;
    background: none;
    border: none;
    flex-shrink: 0;
  }

  .wm-hamburger-btn:hover {
    background: #F4F5F6;
  }

  /* Responsive Toolbar Action Buttons (Icon masks) */
  .wm-toolbar-action-btn {
    font-size: 0 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    position: relative !important;
  }

  .wm-toolbar-action-btn::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
  }

  #action-forward::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 12h16m0 0l-6-6m6 6l-6 6'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 12h16m0 0l-6-6m6 6l-6 6'/></svg>") !important;
  }

  #action-delete::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14H6L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4h6v2'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14H6L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4h6v2'/></svg>") !important;
  }

  #action-archive::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><polyline points='21 8 21 21 3 21 3 8'/><rect x='1' y='3' width='22' height='5'/><line x1='10' y1='12' x2='14' y2='12'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><polyline points='21 8 21 21 3 21 3 8'/><rect x='1' y='3' width='22' height='5'/><line x1='10' y1='12' x2='14' y2='12'/></svg>") !important;
  }

  #action-unread::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>") !important;
  }

  #action-folder::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/></svg>") !important;
  }

  #action-label::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/><line x1='7' y1='7' x2='7.01' y2='7'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/><line x1='7' y1='7' x2='7.01' y2='7'/></svg>") !important;
  }

  #action-spam::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") !important;
  }

  #action-remind::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") !important;
  }

  .wm-list-toolbar {
    padding: 0 8px !important;
    gap: 2px !important;
  }

  .wm-toolbar-checkbox-wrap {
    margin-right: 4px !important;
  }

  /* Fullscreen Compose Modal */
  .wm-compose-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 2000 !important;
    display: none;
    flex-direction: column !important;
  }

  .wm-compose-modal.open {
    display: flex !important;
  }

  .wm-compose-modal.minimized {
    transform: translateY(calc(100% - 44px)) !important;
    display: flex !important;
    height: 100vh !important;
  }

  .wm-compose-modal.minimized .wm-compose-body,
  .wm-compose-modal.minimized .wm-compose-footer {
    display: none !important;
  }

  /* Fullscreen Settings Modal */
  .wm-settings-modal {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }

  .wm-settings-body {
    flex-direction: column !important;
  }

  .wm-settings-nav {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
  }

  .wm-settings-nav-item {
    padding: 10px 14px !important;
  }

  .wm-settings-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }

  /* Message details scroll and content responsiveness on mobile */
  .wm-view-panel {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .wm-view-panel>div {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .wm-thread-item {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .wm-msg-content {
    padding: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }

  .wm-msg-body-text {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .wm-msg-body-text * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }

  .wm-msg-body-text table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .wm-msg-body-text pre,
  .wm-msg-body-text code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .wm-msg-body-text img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 600px) {

  /* Hide the star inside email list on small phone screens to save space */
  .wm-msg-star {
    display: none !important;
  }

  .wm-msg-checkbox {
    display: flex !important;
  }

  /* Inline reply button */
  .wm-reply-trigger-btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

.wm-attach-download-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

.wm-attach-item:hover {
  background: #ebecf0 !important;
  border-color: #d0d4dc !important;
}

/* Automatic scaling for small laptop screens / scaled views */
@media (max-width: 1440px) or (max-height: 850px) {
  html:not([style*="zoom"]) {
    zoom: 0.88;
  }
}

@media (max-width: 1200px) or (max-height: 700px) {
  html:not([style*="zoom"]) {
    zoom: 0.82;
  }
}

.wm-contact-fav-star {
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.wm-contact-fav-star:hover {
  transform: scale(1.25) !important;
}

.wm-contact-checkbox {
  transition: transform 0.15s ease !important;
}

.wm-contact-checkbox:hover {
  transform: scale(1.15) !important;
}

#details-fav-btn.active {
  background-color: #FFF3CD !important;
  color: #856404 !important;
  border-color: #FFEBAA !important;
}

@keyframes pulseSuccessIcon {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.wm-confetti-particle {
  position: fixed;
  width: 10px;
  height: 6px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1000000;
  animation: explodeConfetti 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes explodeConfetti {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(0.3);
    opacity: 0;
  }
}

.wm-other-account-row:hover {
  background-color: #f1f5f9;
}

/* Mobile Compose Floating Action Button */
.wm-mobile-compose-fab {
  display: none;
}

@media (max-width: 1024px) {
  .wm-mobile-compose-fab {
    display: flex;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 64px;
    height: 48px;
    background: linear-gradient(135deg, #FFC80A, #FFA000);
    color: #1a1a1a;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }
  
  .wm-mobile-compose-fab:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}