/* ============================================================
   MeisterKompass Webmail & Exchange Portal · CSS Design
   Windows 11 Fluent / Modern Glassmorphism
   ============================================================ */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg: #090d16;
  --surface-1: #0f172a;
  --surface-2: #1e293b;
  --surface-3: #334155;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(56, 189, 248, 0.15);
  --accent: #38bdf8;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   Login Screen
   ============================================================ */
.wm-login-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e1b4b 0%, #090d16 60%);
  z-index: 1000;
  padding: 20px;
}

.wm-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.wm-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.wm-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}
.wm-brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wm-brand-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.wm-form-group {
  margin-bottom: 16px;
}
.wm-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.wm-input-wrap {
  position: relative;
}
.wm-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.15s ease;
}
.wm-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.wm-input-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.wm-btn.primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}
.wm-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.wm-btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wm-btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.wm-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.wm-btn.danger {
  background: var(--danger);
  color: #fff;
}

.wm-btn.tiny {
  padding: 4px 10px;
  font-size: 0.78rem;
}
.wm-btn.small {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.wm-alert-err {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ============================================================
   Top Bar
   ============================================================ */
.wm-topbar {
  height: 54px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  flex-shrink: 0;
}

.wm-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wm-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.wm-topbar-brand .tag {
  background: var(--primary-light);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 20px;
  position: relative;
}
.wm-search-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 12px 7px 34px;
  border-radius: var(--r-full);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.15s;
}
.wm-search-input:focus {
  border-color: var(--accent);
  background: #000;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.wm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.85rem;
  pointer-events: none;
}

.wm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wm-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.82rem;
}
.wm-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

/* ============================================================
   Main 3-Column Shell
   ============================================================ */
.wm-shell {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 54px);
}

/* Sidebar */
.wm-sidebar {
  width: 240px;
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 6px;
  flex-shrink: 0;
}

.wm-compose-btn {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
  margin-bottom: 12px;
  transition: all 0.15s;
}
.wm-compose-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.wm-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}
.wm-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.wm-nav-item.active {
  background: var(--primary-light);
  color: var(--accent);
  font-weight: 600;
}
.wm-nav-item .nav-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.wm-nav-item.active .nav-count {
  background: var(--accent);
  color: #0f172a;
}

.wm-sidebar-spacer {
  flex: 1;
}

.wm-quota-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.wm-quota-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.wm-quota-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  overflow: hidden;
}
.wm-quota-bar-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: var(--r-full);
  transition: width 0.3s;
}
.wm-quota-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Message List Column */
.wm-list-col {
  width: 360px;
  background: rgba(15, 23, 42, 0.6);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.wm-list-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wm-list-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.wm-list-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wm-msg-list {
  flex: 1;
  overflow-y: auto;
}

.wm-msg-card {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.wm-msg-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.wm-msg-card.active {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--accent);
}
.wm-msg-card.unread .msg-from,
.wm-msg-card.unread .msg-sub {
  font-weight: 700;
  color: var(--text);
}
.wm-msg-card.unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.msg-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.msg-from {
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.msg-date {
  font-size: 0.72rem;
  color: var(--text-soft);
}
.msg-sub {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-snip {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Reading / Detail Column */
.wm-read-col {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wm-empty-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  gap: 12px;
}
.wm-empty-pane .empty-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.wm-read-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.wm-read-subject {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.wm-read-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.wm-meta-sender {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wm-sender-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.wm-sender-mail {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.wm-read-actions {
  display: flex;
  gap: 6px;
}

.wm-read-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.wm-read-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: var(--r-sm);
}

/* ============================================================
   Exchange Admin Embedded View
   ============================================================ */
.wm-admin-view {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
}

/* Compose Modal */
.wm-compose-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 580px;
  max-width: calc(100vw - 40px);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wmPopUp 0.2s cubic-bezier(0, 0, 0, 1);
}
@keyframes wmPopUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wm-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}
.wm-compose-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wm-compose-body input,
.wm-compose-body textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}
.wm-compose-body textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}
.wm-compose-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

/* Modals Backdrops */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-back[hidden] {
  display: none !important;
}
.modal-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

/* Toasts */
.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #1e293b;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: wmFadeIn 0.2s ease;
  pointer-events: auto;
}
.toast.ok { border-color: var(--success); color: #34d399; }
.toast.err { border-color: var(--danger); color: #f87171; }
@keyframes wmFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MOBILE & ANDROID FLUENT / MATERIAL EXPERIENCE
   ============================================================ */

/* Message List Card Layout with Circular Colorful Avatar */
.wm-msg-card {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.wm-msg-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.wm-msg-card.active {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--accent);
}
.wm-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.wm-msg-content {
  flex: 1;
  min-width: 0;
}
.wm-msg-card.unread .msg-from,
.wm-msg-card.unread .msg-sub {
  font-weight: 700;
  color: var(--text);
}
.wm-msg-card.unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Mobile Menu Button */
.wm-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.35rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  margin-right: 6px;
}
.wm-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Read Bar */
.wm-mobile-read-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.wm-mobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.wm-mobile-back-btn:hover {
  background: rgba(56, 189, 248, 0.1);
}
.wm-mobile-read-actions {
  display: flex;
  gap: 6px;
}

/* Mobile Drawer */
.wm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  transition: opacity 0.25s ease;
}
.wm-drawer-backdrop[hidden] {
  display: none !important;
}
.wm-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 290px;
  max-width: 82vw;
  background: #0f172a;
  border-right: 1px solid var(--border);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}
.wm-drawer.open {
  transform: translateX(0);
}
.wm-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.wm-drawer-user {
  flex: 1;
  min-width: 0;
}
.wm-drawer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-drawer-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.wm-drawer-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.wm-drawer-quota {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.wm-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wm-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.wm-drawer-item .d-ic {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}
.wm-drawer-item .d-txt {
  flex: 1;
}
.wm-drawer-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.wm-drawer-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-weight: 600;
}
.wm-drawer-item.danger {
  color: #f87171;
}
.wm-drawer-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
}
.wm-drawer-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}

/* Floating Action Button (FAB) */
.wm-fab {
  display: none;
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 29px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wm-fab:active {
  transform: scale(0.92);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .wm-topbar-brand .tag { display: none; }
  .wm-topbar-search { max-width: 240px; }
  .wm-list-col { width: 300px; }
}

@media (max-width: 768px) {
  .wm-sidebar { display: none !important; }
  .wm-mobile-menu-btn { display: inline-flex; }
  .wm-fab { display: flex; }
  
  .wm-topbar {
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .wm-topbar-right #refreshBtn,
  .wm-topbar-right #openSettingsBtn,
  .wm-topbar-right #logoutBtn,
  .wm-topbar-right .wm-user-badge {
    display: none;
  }
  .wm-topbar-search {
    flex: 1;
    max-width: 100%;
    margin: 0 8px;
  }
  
  .wm-list-col {
    width: 100%;
    border-right: none;
  }
  
  .wm-read-col {
    display: none;
  }
  .wm-read-col.active {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0f172a;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wm-mobile-read-bar {
    display: flex;
  }
  .wm-read-actions {
    display: none;
  }
  
  /* Mobile Full-Screen Compose */
  .wm-compose-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    bottom: 0 !important;
    right: 0 !important;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
  }
  .wm-compose-body textarea {
    min-height: 240px;
    flex: 1;
  }
  .wm-compose-modal form {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .wm-compose-body {
    flex: 1;
  }
}
