@import url('/css/junda-theme.css');

:root {
  --bg-void: #131316;
  --bg: #1a1a1e;
  --card: #222228;
  --card-2: #2c2c34;
  --border: #363640;
  --text: #f0f0f5;
  --muted: #a0a0b0;
  --faint: #6e6e80;
  --accent: #9040ff;
  --accent-2: #a866ff;
  --accent-dim: rgba(144, 64, 255, 0.16);
  --danger: #ff5c72;
  --success: #34d399;
  --warning: #fbbf24;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html.light {
  --bg-void: #F3F4F8;
  --bg: #F6F7FB;
  --bg-2: #EEF0F6;
  --card: #FFFFFF;
  --card-2: #EEF0F7;
  --border: #E2E5EF;
  --text: #121317;
  --muted: #454854;
  --faint: #6E7385;
  --accent: #7C3AED;
  --accent-2: #6D28D9;
  --accent-dim: rgba(124, 58, 237, 0.10);
  --danger: #E11D48;
  --success: #059669;
  --warning: #D97706;
}

html.light[data-light-tone="amethyst"] {
  --bg-void: #F4F1FB;
  --bg: #F8F6FD;
  --bg-2: #EFEBF8;
  --card: #FFFFFF;
  --card-2: #EFEBF8;
  --border: #E3DDF2;
}

html.light[data-light-tone="sandstone"] {
  --bg-void: #F5F3EE;
  --bg: #F9F8F5;
  --bg-2: #EFECE6;
  --card: #FFFFFF;
  --card-2: #EFECE6;
  --border: #E5E1D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; outline: none; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.accent { color: var(--accent-2); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--card-2); border-radius: 4px; }

/* AUTH SCREEN */
.auth-screen {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(168, 102, 255, 0.14), transparent 60%), var(--bg-void);
}
.auth-card {
  width: 100%;
  max-width: 390px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 102, 255, 0.2), rgba(144, 64, 255, 0.2));
  border: 1px solid rgba(168, 102, 255, 0.35);
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}
.auth-brand h1 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; }
.auth-brand p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.auth-tabs {
  display: flex; background: var(--bg-void); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.auth-tabs button {
  flex: 1; padding: 9px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--muted);
}
.auth-tabs button.active { background: var(--card-2); color: var(--text); }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.auth-field input {
  background: var(--bg-void); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 14px; outline: none;
}
.auth-field input:focus { border-color: var(--accent-2); }
.auth-err { font-size: 12.5px; color: var(--danger); min-height: 16px; }
.auth-footer-links { display: flex; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.auth-footer-links a:hover { color: var(--text); }

/* SHELL (3 SÜTUN) */
.jmail-shell {
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* 1. SIDEBAR */
.jmail-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sb-top {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-dim); display: grid; place-items: center; font-size: 18px;
}
.sb-brand h2 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; line-height: 1.1; }
.sb-brand small { font-size: 11px; color: var(--muted); }

.sb-compose-wrap { padding: 14px 14px 8px; }
.btn-compose {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #9040ff, #a866ff);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 24px -6px rgba(144, 64, 255, 0.55);
  transition: transform 0.12s;
}
.btn-compose:active { transform: scale(0.97); }

.sb-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--faint);
  letter-spacing: 0.07em;
  padding: 10px 8px 4px;
}
.sb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--faint);
  letter-spacing: 0.07em;
  padding: 14px 8px 4px;
}
.sb-add-acc-mini {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.sb-add-acc-mini:hover { background: rgba(168, 102, 255, 0.12); }

.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  transition: all 0.15s;
}
.sb-item i { width: 18px; text-align: center; font-size: 14px; }
.sb-item span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-item:hover { background: var(--card); color: var(--text); }
.sb-item.active { background: var(--accent-dim); color: #fff; border-left: 3px solid var(--accent-2); }
.sb-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
}

.sb-accounts-list { display: flex; flex-direction: column; gap: 5px; }
.sb-acc-row, .sb-acc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}
.sb-acc-row:hover, .sb-acc-item:hover { background: var(--card); border-color: rgba(255, 255, 255, 0.06); }
.sb-acc-row.active, .sb-acc-item.active {
  background: var(--card-2);
  border-left: 3px solid var(--accent-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.sb-acc-avatar-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--acc-ring, rgba(255, 255, 255, 0.22));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-acc-prov-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-acc-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}
.sb-acc-info, .sb-acc-meta { flex: 1; min-width: 0; }
.sb-acc-info strong, .sb-acc-meta strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-acc-info small, .sb-acc-meta small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-acc-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(168, 102, 255, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(168, 102, 255, 0.35);
  flex-shrink: 0;
}
.sb-acc-del {
  opacity: 0.45;
  color: var(--faint);
  padding: 5px;
  font-size: 12.5px;
  border-radius: 6px;
  transition: all 0.15s;
}
.sb-acc-row:hover .sb-acc-del, .sb-acc-item:hover .sb-acc-del { opacity: 1; }
.sb-acc-del:hover { color: var(--danger); background: rgba(248, 113, 113, 0.12); }

.btn-add-account {
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-add-account:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(168, 102, 255, 0.06); }

.sb-footer {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.sb-user-row { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; flex-shrink: 0;
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-info small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-quick-links { display: flex; gap: 6px; }
.sb-qlink {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.sb-qlink:hover { color: var(--text); border-color: var(--accent-2); }

/* 2. MIDDLE LIST COLUMN */
.jmail-list-col {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-void);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.list-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lh-top { display: flex; align-items: center; gap: 10px; }
.lh-title-wrap { flex: 1; min-width: 0; }
.lh-title-wrap h3 {
  font-size: 15.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lh-title-wrap h3 .lh-title-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.lh-title-wrap h3 span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.lh-sub { font-size: 11.5px; color: var(--muted); display: block; }
.lh-actions { display: flex; align-items: center; gap: 6px; }
.filter-chip {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
}
.filter-chip.active { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
.lh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px;
}
.lh-search i { color: var(--faint); font-size: 13px; }
.lh-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
}

.mail-list-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mail-empty-list {
  margin: auto;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mail-empty-list strong {
  color: var(--text);
  font-size: 15px;
}
.mail-empty-list span {
  font-size: 12.5px;
  color: var(--faint);
  max-width: 260px;
  line-height: 1.45;
}
.mail-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
  position: relative;
}
.mail-item:hover { background: var(--card); }
.mail-item.active { background: var(--card-2); border-left-color: var(--accent-2); }
.mail-item.unread { background: rgba(144, 64, 255, 0.07); border-left-color: #a866ff; }
.mail-item.unread .mi-sender, .mail-item.unread .mi-from { font-weight: 800; color: #fff; }
.mail-item.unread .mi-subject { font-weight: 800; color: #c084fc; }
.mi-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(168, 102, 255, 0.7);
}
.mi-avatar-col {
  flex-shrink: 0;
  padding-top: 2px;
  cursor: pointer;
}
.jm-sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--av-bg, #d0d7f7);
  color: var(--av-fg, #1e3a8a);
  border: 1.5px solid var(--av-border, rgba(255, 255, 255, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.jm-sender-avatar .jm-av-initials {
  line-height: 1;
  font-weight: 800;
  color: var(--av-fg, #1e3a8a);
  z-index: 1;
}
.jm-sender-avatar .jm-av-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.jm-sender-avatar .jm-av-domain-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 2;
}
.jm-sender-avatar.has-domain-logo .jm-av-domain-img {
  opacity: 1;
}
.jm-sender-avatar.has-domain-logo .jm-av-initials {
  opacity: 0;
}
.mi-avatar-check-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(144, 64, 255, 0.94);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 4;
}
.mi-avatar-col:hover .mi-avatar-check-overlay {
  opacity: 1;
  transform: scale(1);
}
.jm-sender-avatar.checked .mi-avatar-check-overlay,
.mail-item.selected .mi-avatar-check-overlay {
  opacity: 1;
  transform: scale(1);
  background: var(--accent-2);
  color: #ffffff;
}
.rm-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rm-avatar .rm-avatar-inner {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.mi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mi-sender, .mi-from {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.mi-date { font-size: 11.5px; color: #c4b5fd; flex-shrink: 0; font-weight: 600; }
.mi-mid { display: flex; align-items: center; gap: 6px; }
.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.mi-bottom .acc-badge {
  max-width: 142px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.mi-bottom .acc-badge > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mi-subject {
  font-size: 13.2px;
  font-weight: 600;
  color: #c4b5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mi-snippet { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mi-star { color: var(--faint); font-size: 14px; padding: 2px 4px; flex-shrink: 0; }
.mi-star.starred { color: var(--warning); }
.mi-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mi-qbtn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 28, 0.55);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  padding: 0;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}
.mi-qbtn.delete {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(239, 68, 68, 0.12);
}
.mi-qbtn.delete:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  transform: scale(1.06);
}
.mi-qbtn.restore {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.14);
}
.mi-qbtn.restore:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
  transform: scale(1.06);
}
.mi-qbtn.junk {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.1);
}
.mi-qbtn.junk:hover {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
  transform: scale(1.06);
}
.mi-qbtn.focus {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}
.mi-qbtn.focus.is-focused {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.28);
}
.mi-qbtn.focus:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
  transform: scale(1.06);
}

/* 3. RIGHT READER COLUMN */
.jmail-reader-col {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.reader-empty {
  margin: auto;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  max-width: 360px;
}
.reader-empty .re-icon { font-size: 46px; margin-bottom: 12px; }
.reader-empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.reader-empty p { font-size: 13.5px; line-height: 1.5; }

.reader-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.reader-toolbar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-void);
}
.rt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rt-btn:hover { background: var(--card-2); border-color: var(--accent-2); }
.rt-btn.danger,
.rt-btn.delete-btn {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(239, 68, 68, 0.14);
}
.rt-btn.danger i,
.rt-btn.delete-btn i {
  color: #f87171;
  font-size: 13.5px;
  display: inline-block;
}
.rt-btn.danger:hover,
.rt-btn.delete-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}
.rt-btn.danger:hover i,
.rt-btn.delete-btn:hover i {
  color: #ffffff;
}
.rt-btn.unread-red {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(220, 38, 38, 0.18);
}
.rt-btn.unread-red i {
  color: #f87171;
}
.rt-btn.unread-red:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}
.rt-btn.unread-red:hover i {
  color: #ffffff;
}
.rt-btn.warn { border-color: rgba(251, 146, 60, 0.35); color: #fdba74; }
.rt-btn.warn:hover { background: rgba(251, 146, 60, 0.16); border-color: #fb923c; color: #fff; }
.rt-btn.focus {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.10);
  color: #fde68a;
}
.rt-btn.focus i { color: #fbbf24; }
.rt-btn.focus.is-focused {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}
.rt-btn.focus:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
}
.rt-btn.focus:hover i { color: #0f172a; }
.rt-btn.restore { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.rt-btn.restore:hover { background: rgba(52, 211, 153, 0.16); border-color: #34d399; color: #fff; }
.rt-btn.primary-reply {
  background: rgba(168, 102, 255, 0.14);
  border-color: rgba(168, 102, 255, 0.45);
  color: #f3e8ff;
}
.rt-btn.primary-reply:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.rt-zoom-group {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.rt-zoom-btn {
  padding: 5px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.14s ease;
  font-family: inherit;
}
.rt-zoom-btn:hover {
  background: var(--card-2);
  color: var(--text);
}
.rt-zoom-btn.fit-btn {
  padding: 5px 9px;
  color: var(--accent-2);
  background: rgba(168, 102, 255, 0.1);
}
.rt-zoom-btn.fit-btn.fit-active {
  background: rgba(168, 102, 255, 0.2);
  color: #f3e8ff;
}
.rt-zoom-val {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .reader-toolbar .rt-actions .rt-btn .rt-btn-label,
  .reader-toolbar .rt-actions .rt-btn span {
    display: none;
  }
  .reader-toolbar .rt-actions .rt-btn {
    padding: 8px 10px;
  }
}

/* SABİT ÜST BÖLÜM + TAM EKRAN (FULL-BLEED) E-POSTA İÇERİĞİ */
.reader-fixed-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.reader-header-meta {
  padding: 12px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reader-subject-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.reader-subject-wrap h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.reader-meta-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
}
.rm-sender-clickable {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
}
.rm-sender-clickable:hover {
  background: rgba(168, 102, 255, 0.1);
  border-color: rgba(168, 102, 255, 0.35);
}
.rm-sender-clickable:active {
  transform: scale(0.99);
}
.sender-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px !important;
  font-weight: 700;
  background: rgba(168, 102, 255, 0.15);
  color: var(--accent-2) !important;
  border: 1px solid rgba(168, 102, 255, 0.35);
  transition: background 0.15s;
}
.rm-sender-clickable:hover .sender-filter-pill {
  background: var(--accent-2);
  color: #ffffff !important;
}
.rm-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; flex-shrink: 0;
}
.rm-info { flex: 1; min-width: 0; }
.rm-from-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rm-from-line strong { font-size: 13.5px; color: var(--text); }
.rm-from-line span { font-size: 12px; color: var(--muted); }
.rm-to-line { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rm-date { font-size: 11.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }

/* TAM EKRAN (FULL-BLEED) BEYAZ E-POSTA KAĞIDI — Çift scroll veya kutu içinde kutu yok */
.reader-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f7f7f9;
  color: #18181b;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}
.reader-email-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  display: block;
}
.reader-body.dark-paper {
  background: #18181c;
  color: #f0f0f5;
}

/* ═══ OUTLOOK İSKELETLİ & J MAIL KOYU TEMALI SATIR İÇİ HTML YAZMA / YANITLAMA EKRANI ═══ */
.compose-only {
  display: none !important;
}
.rt-compose-badge {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(168, 102, 255, 0.14);
  border: 1px solid rgba(168, 102, 255, 0.45);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rt-compose-badge .oc-mode-label-short {
  display: none;
}
.rt-compose-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.rt-compose-right .rt-compose-text-short {
  display: none;
}
.rt-compose-right .compose-draft-btn {
  border-color: rgba(168, 102, 255, 0.4);
  background: rgba(168, 102, 255, 0.12);
  color: #e9d5ff;
}
.rt-compose-right .compose-draft-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
@media (max-width: 768px) {
  .reader-fixed-top.composing-inline .reader-toolbar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .reader-fixed-top.composing-inline .rt-actions {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .rt-compose-badge {
    padding: 6px 10px;
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rt-compose-badge .oc-mode-label-full {
    display: none;
  }
  .rt-compose-badge .oc-mode-label-short {
    display: inline;
  }
  .rt-compose-right {
    gap: 6px;
  }
  .rt-compose-right .compose-action-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .rt-compose-right .rt-compose-text-full {
    display: none;
  }
  .rt-compose-right .rt-compose-text-short {
    display: inline;
  }
}
.reader-fixed-top.composing-inline .compose-only {
  display: inline-flex !important;
}
.reader-fixed-top.composing-inline .read-only-btn,
.reader-fixed-top.composing-inline .reader-header-meta {
  display: none !important;
}
.reader-fixed-top.no-active-msg .active-msg-btn {
  display: none !important;
}

.reader-compose-pane {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.oc-fixed-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* İmza HTML Editörü Çekmecesi (Görsel Zengin HTML + Ham HTML Kaynak Kodu) */
.oc-signature-drawer {
  padding: 12px 18px 14px;
  background: linear-gradient(180deg, rgba(144, 64, 255, 0.14), rgba(14, 20, 38, 0.98));
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.oc-sig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--accent-2);
}
.oc-sig-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.oc-sig-mode-tabs {
  display: inline-flex;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.oc-sig-tab {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.14s;
}
.oc-sig-tab.active {
  background: linear-gradient(135deg, #9040ff, #a866ff);
  color: #ffffff;
}
.oc-sig-tab:hover:not(.active) {
  color: var(--text);
}
.oc-sig-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.oc-sig-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.oc-signature-input {
  background: var(--bg-void);
  border: 2px solid rgba(168, 102, 255, 0.45);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 76px;
  max-height: 165px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  outline: none;
}
.oc-signature-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(168, 102, 255, 0.16);
}
.oc-signature-code {
  width: 100%;
  background: #050811;
  border: 2px solid rgba(144, 64, 255, 0.55);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 92px;
  max-height: 180px;
  resize: vertical;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #a866ff;
  outline: none;
}
.oc-signature-code:focus {
  border-color: var(--accent-2);
}

/* Outlook İskelet Zarf Düzeni: Solda Büyük Gönder Butonu, Sağda Kimden / Kime / Bilgi / Konu (J Mail Koyu Tema) */
.oc-envelope {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 10px 16px 6px;
  background: var(--bg);
}
.oc-send-big-btn {
  width: 68px;
  min-height: 78px;
  border: 1px solid rgba(144, 64, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(144, 64, 255, 0.22), rgba(144, 64, 255, 0.18));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(144, 64, 255, 0.18);
}
.oc-send-big-btn i {
  font-size: 20px;
  color: var(--accent-2);
}
.oc-send-big-btn:hover {
  background: linear-gradient(135deg, #9040ff, #a866ff);
  border-color: var(--accent-2);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(144, 64, 255, 0.32);
}
.oc-send-big-btn:hover i {
  color: #ffffff;
}
.oc-send-big-btn:active {
  transform: scale(0.97);
}
.oc-send-big-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oc-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.oc-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 3px 0;
  min-height: 33px;
}
.oc-field-row.subject-row {
  border-bottom: none;
  padding-top: 5px;
}
.oc-pill-label {
  min-width: 86px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: background 0.14s, border-color 0.14s;
}
.oc-pill-label:hover {
  background: var(--card-2);
  border-color: var(--accent-2);
}
.oc-subj-label {
  min-width: 86px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}
.oc-field-row input,
.oc-field-row select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  padding: 4px 6px;
  outline: none;
  font-family: inherit;
}
.oc-field-row select option {
  background: var(--card);
  color: var(--text);
}
.oc-field-row input::placeholder {
  color: var(--faint);
}

/* HTML Biçimlendirme Çubuğu (J Mail Koyu Tema) */
.oc-format-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.oc-fmt-btn {
  width: 30px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.oc-fmt-btn:hover {
  background: var(--card-2);
  border-color: var(--border);
  color: var(--text);
}
.oc-fmt-btn.wide {
  width: auto;
  padding: 0 9px;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-2);
  border-color: rgba(168, 102, 255, 0.25);
  background: rgba(168, 102, 255, 0.08);
}
.oc-fmt-btn.wide.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.oc-fmt-btn.wide code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.oc-fmt-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}
.color-picker-label {
  position: relative;
  overflow: hidden;
}
.color-picker-label input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Kesin Çizgilerle Ayrılmış 3 Bağımsız Kutu: 1) Mesajınız  2) İmzanız (HTML)  3) Önceki E-Posta
   Beyaz Kağıt / Siyah Kağıt tüm içeriği (3 kutunun tamamını) bütünleşik olarak etkiler */
.oc-document-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #e6e6ec;
  color: #18181b;
  padding: 16px 20px 56px;
  display: block;
  transition: background 0.18s ease, color 0.18s ease;
}
.oc-document-scroll.dark-paper {
  background: var(--bg-void);
  color: var(--text);
}

.oc-section-card {
  display: block;
  width: 100%;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: visible;
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 4px 14px rgba(24, 24, 28, 0.08);
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.oc-section-head {
  border-radius: 9px 9px 0 0;
}
.oc-html-editor,
.oc-signature-block,
.oc-quoted-container {
  border-radius: 0 0 9px 9px;
}
.oc-document-scroll.dark-paper .oc-section-card {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.oc-section-card.message-box {
  border: 2px solid #9040ff;
}
.oc-section-card.message-box:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(168, 102, 255, 0.22);
}
.oc-section-card.signature-box {
  border: 2px solid #7c3aed;
}
.oc-section-card.signature-box:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(144, 64, 255, 0.22);
}
.oc-section-card.quoted-box {
  border: 2px solid #d97706;
}

.oc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 14px;
  background: #f5f3ff;
  border-bottom: 1.5px solid #ddd6fe;
}
.oc-section-head.sig {
  background: #f5f3ff;
  border-bottom: 1.5px solid #ddd6fe;
}
.oc-section-head.quoted {
  background: #fffbeb;
  border-bottom: 1.5px solid #fde68a;
}
.oc-document-scroll.dark-paper .oc-section-head {
  background: linear-gradient(90deg, rgba(144, 64, 255, 0.22), rgba(28, 28, 34, 0.95));
  border-bottom: 1.5px solid rgba(168, 102, 255, 0.35);
}
.oc-document-scroll.dark-paper .oc-section-head.sig {
  background: linear-gradient(90deg, rgba(144, 64, 255, 0.24), rgba(28, 28, 34, 0.95));
  border-bottom: 1.5px solid rgba(144, 64, 255, 0.45);
}
.oc-document-scroll.dark-paper .oc-section-head.quoted {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(28, 28, 34, 0.95));
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.4);
}
.oc-sec-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.oc-sec-badge.msg { color: #6d28d9; }
.oc-sec-badge.sig { color: #6d28d9; }
.oc-sec-badge.quoted { color: #b45309; }
.oc-document-scroll.dark-paper .oc-sec-badge.msg { color: #c084fc; }
.oc-document-scroll.dark-paper .oc-sec-badge.sig { color: #c084fc; }
.oc-document-scroll.dark-paper .oc-sec-badge.quoted { color: #fbbf24; }
.oc-sec-hint {
  font-size: 11px;
  color: #475569;
}
.oc-document-scroll.dark-paper .oc-sec-hint {
  color: var(--muted);
}
.oc-sec-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.oc-mini-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #c4b5fd;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.14s;
}
.oc-document-scroll.dark-paper .oc-mini-btn {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(144, 64, 255, 0.16);
  color: #e9d5ff;
}
.oc-mini-btn:hover {
  background: var(--accent);
  border-color: var(--accent-2);
  color: #ffffff;
}

/* Microsoft <o:p>&nbsp;</o:p> Kesin Ayraç Çizgisi */
.oc-op-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  user-select: none;
}
.oc-op-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(144, 64, 255, 0.45), rgba(124, 58, 237, 0.45), transparent);
}
.oc-op-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
  background: #ffffff;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  padding: 2px 10px;
}
.oc-document-scroll.dark-paper .oc-op-pill {
  color: var(--accent-2);
  background: var(--card);
  border-color: rgba(168, 102, 255, 0.35);
}

.oc-html-editor {
  min-height: 135px;
  padding: 14px 16px;
  outline: none;
  font-family: 'Plus Jakarta Sans', Calibri, 'Segoe UI', -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #18181b;
  background: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.oc-document-scroll.dark-paper .oc-html-editor {
  color: #f0f0f5;
  background: #16161a;
}
.oc-html-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}
.oc-document-scroll.dark-paper .oc-html-editor:empty::before {
  color: var(--faint);
}
.oc-signature-block {
  min-height: 58px;
  padding: 12px 16px;
  outline: none;
  font-family: 'Plus Jakarta Sans', Calibri, 'Segoe UI', -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #18181b;
  background: #ffffff;
}
.oc-document-scroll.dark-paper .oc-signature-block {
  color: #f0f0f5;
  background: #1c1c22;
}
.oc-document-scroll.dark-paper .oc-signature-block,
.oc-document-scroll.dark-paper .oc-signature-block div,
.oc-document-scroll.dark-paper .oc-signature-block span,
.oc-document-scroll.dark-paper .oc-signature-block b,
.oc-document-scroll.dark-paper .oc-signature-block p {
  color: inherit !important;
}
.oc-quoted-wrap {
  display: flex;
  flex-direction: column;
}
.oc-quoted-container {
  padding: 14px 16px;
  background: #ffffff;
  font-family: 'Plus Jakarta Sans', Calibri, 'Segoe UI', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #18181b;
}
.oc-document-scroll.dark-paper .oc-quoted-container {
  background: #16161a;
  color: #f0f0f5;
}
.oc-quoted-header {
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
  background: #f4f4f7;
  border: 1px solid #d4d4dc;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.oc-quoted-header b {
  color: #18181b;
}
.oc-document-scroll.dark-paper .oc-quoted-header {
  color: var(--muted);
  background: var(--card);
  border-color: var(--border);
}
.oc-document-scroll.dark-paper .oc-quoted-header b {
  color: var(--text);
}
.oc-quoted-body {
  background: #ffffff;
  color: #18181b;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid #d4d4dc;
  overflow-x: auto;
}
.oc-document-scroll.dark-paper .oc-quoted-body,
.oc-quoted-body.dark-paper {
  background: #18181c;
  color: #f0f0f5;
  border-color: var(--border);
}
.oc-quoted-body img {
  max-width: 100% !important;
  height: auto !important;
}
.oc-quoted-body table {
  max-width: 100% !important;
}

/* BUTTONS & MODALS */
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--text); background: var(--card-2); }
.btn-primary {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #9040ff, #a866ff);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary.sm { padding: 8px 14px; font-size: 12.5px; }
.btn-primary.full { width: 100%; }
.btn-ghost {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}
.compose-card { max-width: 600px; }
.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent-2); }
.form-hint { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.provider-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prov-chip {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.prov-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.prov-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent-2);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 102, 255, 0.16);
}
.prov-chip-logo,
.prov-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.imap-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
}
.imap-details summary { cursor: pointer; font-weight: 700; color: var(--accent-2); }

/* Manuel Kurulum (IMAP / POP3 & SMTP) Paneli */
#add-account-modal-card {
  max-width: 580px;
}
.manual-setup-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-md);
}
.manual-proto-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manual-proto-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-proto-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.manual-proto-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-void);
  border: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.manual-proto-tab i {
  font-size: 16px;
  color: var(--faint);
}
.manual-proto-tab strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
}
.manual-proto-tab small {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.25;
}
.manual-proto-tab:hover {
  border-color: rgba(52, 211, 153, 0.45);
}
.manual-proto-tab.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
.manual-proto-tab.active i,
.manual-proto-tab.active strong {
  color: #34d399;
}

.manual-quick-fill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.manual-qf-chip {
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.manual-qf-chip:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.manual-server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .manual-server-grid,
  .manual-proto-tabs {
    grid-template-columns: 1fr;
  }
}
.manual-server-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.manual-server-card .form-row label {
  font-size: 10.5px;
}
.manual-server-card .form-row input,
.manual-server-card .form-row select {
  padding: 7px 9px;
  font-size: 12.5px;
  color: var(--text);
}

.acc-pass-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.acc-pass-input-wrap input {
  width: 100%;
  padding-right: 38px;
}
.acc-pass-eye-btn {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-pass-eye-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.jmail-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-2);
  border: 1px solid var(--accent-2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.jmail-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mobile-only { display: none; }
.sidebar-backdrop { display: none; }
.modal-sheet-handle {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  flex-shrink: 0;
}
.modal-sheet-handle:active { cursor: grabbing; }
.modal-sheet-handle::after {
  content: '';
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.2s, background 0.2s;
}
.modal-sheet-handle:hover::after,
.modal-card.dragging .modal-sheet-handle::after {
  width: 58px;
  background: var(--accent-2);
}
.modal-card.dragging {
  transition: none !important;
}
.modal-card.expanded {
  max-height: 96vh !important;
}

.jmail-fab-compose {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9040ff, #a866ff);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 28px rgba(144, 64, 255, 0.48);
  z-index: 18;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jmail-fab-compose:active { transform: scale(0.93); }

/* TABLET GÖRÜNÜM (961px - 1220px) */
@media (max-width: 1220px) and (min-width: 961px) {
  .jmail-sidebar { width: 220px; }
  .jmail-list-col { width: 315px; }
  .reader-scroll { padding: 18px; }
}

/* RESPONSIVE MOBİL GÖRÜNÜM */
@media (max-width: 960px) {
  .mobile-only { display: inline-flex; }
  .jmail-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(84vw, 300px);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65);
  }
  .jmail-sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open,
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.68);
    backdrop-filter: blur(4px);
    z-index: 35;
  }
  .jmail-list-col {
    width: 100%;
    flex: 1;
    border-right: none;
  }
  .jmail-reader-col {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    background: var(--bg);
  }
  .jmail-reader-col.mobile-open,
  .jmail-shell.mobile-reading .jmail-reader-col {
    display: flex;
  }
  .reader-empty { display: none; }
  .reader-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .rt-actions {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .rt-btn {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .reader-header-meta {
    padding: 10px 12px 8px;
    gap: 6px;
  }
  .reader-subject-wrap h1 { font-size: 16.5px; }
  .reader-meta-card {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }
  .rm-date {
    width: 100%;
    padding-left: 46px;
    margin-top: -2px;
    font-size: 11px;
  }
  .reader-body {
    padding: 0;
  }
  .oc-envelope {
    padding: 6px 10px 4px;
    gap: 8px;
  }
  .oc-send-big-btn {
    width: 52px;
    min-height: 62px;
    font-size: 11.5px;
    gap: 5px;
  }
  .oc-field-row {
    min-height: 29px;
    padding: 2px 0;
    gap: 6px;
  }
  .oc-pill-label,
  .oc-subj-label {
    min-width: 66px;
    padding: 3px 7px;
    font-size: 11.5px;
  }
  .oc-format-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 10px;
  }
  .oc-format-bar::-webkit-scrollbar {
    display: none;
  }
  .oc-fmt-btn {
    flex-shrink: 0;
  }
  .oc-document-scroll {
    padding: 10px 10px 48px;
  }
  .oc-section-head {
    padding: 6px 10px;
    gap: 6px;
  }
  .oc-sec-hint {
    display: none;
  }
  .oc-html-editor {
    min-height: 120px;
    padding: 12px;
    font-size: 14px;
  }
  .oc-signature-block {
    min-height: 54px;
    padding: 10px 12px;
  }
  .oc-quoted-container {
    padding: 10px 12px;
  }
  .oc-quoted-body {
    padding: 10px 12px;
  }
  /* Mobilde modallar alttan kayar (Bottom Sheet) olarak açılsın */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.25s ease;
  }
  .modal-head { padding: 8px 18px 14px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
  }
  .form-grid-2 { grid-template-columns: 1fr; gap: 10px; }
}


/* MICROSOFT İLE GİRİŞ / BAĞLAN */
.btn-microsoft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid #d0d7de;
  transition: background 0.15s, transform 0.1s;
}
.btn-microsoft:hover { background: #f3f4f6; }
.btn-microsoft:active { transform: scale(0.98); }
.btn-microsoft.full { width: 100%; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ms-connect-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 120, 212, 0.1);
  border: 1px solid rgba(0, 120, 212, 0.4);
}
.ms-connect-box p { font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 0; }
.sb-acc-warn { color: #fbbf24; font-size: 12px; flex-shrink: 0; }
.hidden { display: none !important; }

.btn-yandex, .btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-yandex:hover { border-color: #fc3f1d; background: rgba(252, 63, 29, 0.12); }
.btn-google:hover { border-color: #ea4335; background: rgba(234, 67, 53, 0.12); }
.btn-yandex.full { width: 100%; }
.yandex-box { background: rgba(252, 63, 29, 0.08); border-color: rgba(252, 63, 29, 0.35); }
.google-box { background: rgba(234, 67, 53, 0.08); border-color: rgba(234, 67, 53, 0.35); }

.device-code-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(24, 24, 28, 0.92);
  border: 1px solid var(--accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.dc-code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(168, 102, 255, 0.15);
  border: 1px dashed var(--accent-2);
  color: #fff;
  cursor: pointer;
  user-select: all;
}
.dc-status {
  font-size: 12.5px;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* AKILLI ARAMA, SAĞ FİLTRE İKONU, SEKME BARI & KATEGORİ ETİKETLERİ */
.lh-search-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.lh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px 6px 13px;
  transition: border-color 0.15s;
}
.lh-search:focus-within {
  border-color: var(--accent-2);
}
.search-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-clear-btn:hover { color: #fff; background: var(--danger); }

.lh-filter-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13.5px;
  transition: all 0.15s;
}
.lh-filter-icon-btn:hover,
.lh-filter-icon-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-2);
  color: #fff;
}

.lh-filter-popover {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #222228;
  border: 1px solid var(--accent-2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lfp-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lfp-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lfp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lfp-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lfp-chip:hover { border-color: var(--accent-2); }
.lfp-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent-2);
  color: #fff;
}
.lfp-tag-add {
  display: flex;
  gap: 6px;
}
.lfp-tag-add input {
  flex: 1;
  min-width: 0;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
}
.lfp-tag-add input:focus { border-color: var(--accent-2); }

.mail-sort-select {
  background: var(--bg-void);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.mail-sort-select.full { width: 100%; }
.mail-sort-select:focus { border-color: var(--accent-2); }

/* ARAMA BARININ ÜSTÜNDE YAN YANA KATEGORİLER BARI */
.lh-categories-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
  user-select: none;
}
.lh-categories-bar::-webkit-scrollbar { display: none; }
.lh-cat-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lh-cat-pill i {
  font-size: 11px;
}
.lh-cat-pill:hover {
  color: var(--text);
  border-color: rgba(168, 102, 255, 0.45);
}
.lh-cat-pill.active {
  background: linear-gradient(135deg, rgba(144, 64, 255, 0.25), rgba(168, 102, 255, 0.22));
  border-color: var(--accent-2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 102, 255, 0.16);
}

/* ARAMA BUTONUNUN ÜSTÜNDE KÜÇÜLTÜLMÜŞ VE "FİLTRELER" BAŞLIKLI AKTİF ETİKET ALANI */
.active-category-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(24, 24, 28, 0.72);
  border: 1px dashed rgba(168, 102, 255, 0.32);
}
.act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.act-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.act-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.cat-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(168, 102, 255, 0.14);
  border: 1px solid rgba(168, 102, 255, 0.38);
  color: #f3e8ff;
  font-size: 10.5px;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.3;
}
.cat-tag-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 185px;
}
.cat-tag-pill button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  padding: 0 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-tag-pill button:hover {
  color: #f87171;
}
.cat-tag-close {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-tag-close:hover { background: var(--danger); }
.cat-tag-clear-all {
  margin-left: auto;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.cat-tag-clear-all:hover { background: var(--danger); color: #fff; }

/* SOL KLASÖR SÜRÜKLE-BIRAK & ROZET RENKLERİ */
.sb-badge.muted { background: var(--card-2); color: var(--muted); }
.sb-badge.warn { background: rgba(251, 146, 60, 0.22); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.4); }
.sb-item.drag-over {
  background: rgba(168, 102, 255, 0.22) !important;
  border: 1px dashed var(--accent-2);
  color: #fff !important;
  transform: scale(1.02);
}
.mail-item[draggable="true"] { cursor: grab; }
.mail-item[draggable="true"]:active { cursor: grabbing; }
.mi-junk-quick {
  color: var(--faint);
  font-size: 12.5px;
  padding: 2px 5px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.14s, color 0.14s, background 0.14s;
}
.mail-item:hover .mi-junk-quick { opacity: 1; }
.mi-junk-quick:hover {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.15);
}

/* SOL PANEL HESAP SAĞ TIK MENÜSÜ (CONTEXT MENU) */
.sb-acc-more {
  opacity: 0.55;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sb-acc-item:hover .sb-acc-more { opacity: 1; }
.sb-acc-more:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.acc-context-menu {
  position: fixed;
  z-index: 500;
  min-width: 240px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #222228;
  border: 1px solid rgba(168, 102, 255, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acm-header {
  padding: 7px 10px 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.12s;
}
.acm-item i { width: 16px; text-align: center; color: var(--muted); }
.acm-item:hover { background: var(--card-2); }
.acm-item:hover i { color: var(--accent-2); }
.acm-item.danger { color: #fca5a5; }
.acm-item.danger i { color: #f87171; }
.acm-item.danger:hover { background: rgba(248, 113, 113, 0.15); }
.acm-divider { height: 1px; background: var(--border); margin: 4px 0; }
.jlcm-url-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  margin: 0 4px 4px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-color-picker-row,
.color-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 40px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.color-swatch:hover {
  transform: scale(1.14);
  border-color: #ffffff;
}
.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-2);
  transform: scale(1.1);
}
.color-circle-custom {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.color-circle-custom:hover {
  transform: scale(1.14);
  border-style: solid;
  border-color: #ffffff;
}
.color-circle-custom.active {
  border-style: solid;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-2);
}
.color-circle-custom input[type="color"] {
  position: absolute;
  inset: -6px;
  width: 40px;
  height: 40px;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.edit-acc-email-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.edit-acc-provider-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* LİSTEDEKİ GÖNDERİCİ ETİKETİNE DOKUNARAK FİLTRELEME */
.mi-from-filterable {
  padding: 1px 5px;
  margin-left: -5px;
  border-radius: 5px;
  transition: background 0.14s, color 0.14s;
}
.mi-from-filterable:hover {
  background: rgba(168, 102, 255, 0.16);
  color: var(--accent-2) !important;
  text-decoration: underline;
}

/* ═══ 🛡️ Güvenlik Taraması Paneli & Güvenli Görüntüleme ═══════════════════ */
.reader-security {
  flex-shrink: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.reader-security.level-safe { border-color: rgba(52, 211, 153, 0.35); }
.reader-security.level-warning { border-color: rgba(251, 191, 36, 0.5); background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), var(--card)); }
.reader-security.level-danger { border-color: rgba(255, 92, 114, 0.65); background: linear-gradient(180deg, rgba(255, 92, 114, 0.14), var(--card)); }
.reader-security .sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  flex-wrap: nowrap;
  min-height: 34px;
}
.reader-security .sec-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.reader-security.level-safe .sec-icon { color: var(--success); }
.reader-security.level-warning .sec-icon { color: var(--warning); }
.reader-security.level-danger .sec-icon { color: var(--danger); }
.reader-security .sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.reader-security .sec-title strong {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-security .sec-inline-badge {
  font-size: 11px;
  color: var(--accent-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.reader-security .sec-chevron { color: var(--faint); transition: transform 0.2s; flex-shrink: 0; font-size: 12px; }
.reader-security.details-open .sec-chevron { transform: rotate(180deg); }
.reader-security .sec-collapsible-body {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 32, 0.35);
}
.reader-security.details-open .sec-collapsible-body {
  display: block;
}
.reader-security .sec-sub-text {
  padding: 8px 12px 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.reader-security .sec-details { display: block; padding: 4px 12px 10px 14px; }
.sec-findings { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sec-findings li { font-size: 12.5px; color: var(--text); line-height: 1.45; display: flex; gap: 7px; align-items: flex-start; }
.sec-findings li i { margin-top: 3px; }
.sec-findings li.sev-danger i { color: var(--danger); }
.sec-findings li.sev-warning i { color: var(--warning); }
.sec-findings li.sev-info i { color: var(--accent-2); }
.sec-findings li.sev-ok i { color: var(--success); }

.sec-mode-switch {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.sec-mode-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.sec-mode-switch button.active { background: var(--accent); color: #fff; }
.sec-mode-switch button:hover:not(.active) { color: var(--text); }

.sec-remote {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(15, 20, 32, 0.45);
}
.sec-remote > i { color: var(--accent-2); }
.sec-remote.trusted > i { color: var(--success); }
.sec-remote > span { flex: 1; min-width: 200px; }
.sec-remote b { color: var(--text); font-weight: 600; }
.sec-remote-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sec-btn {
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-btn:hover { border-color: var(--accent-2); }
.sec-btn.primary { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.45); color: var(--success); }

/* Ek dosyalar (Tıklanabilir & Popup İncelemeli) */
.reader-attachments {
  flex-shrink: 0;
  margin: 0;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.reader-attachments .att-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.reader-attachments .att-list { display: flex; flex-wrap: wrap; gap: 8px; }
.att-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.14s ease;
}
.att-chip:hover {
  border-color: var(--accent-2);
  background: rgba(168, 102, 255, 0.1);
}
.att-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.att-chip .att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; font-weight: 700; font-size: 12.5px; }
.att-chip small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.att-chip-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  flex-shrink: 0;
}
.att-action-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.14s ease;
  font-family: inherit;
}
.att-action-btn.inspect {
  background: rgba(168, 102, 255, 0.15);
  border-color: rgba(168, 102, 255, 0.4);
  color: var(--accent-2);
}
.att-action-btn.inspect:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.att-action-btn.preview {
  background: rgba(40, 40, 48, 0.65);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e6e6ec;
  padding: 4px 7px;
}
.att-action-btn.preview:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.att-action-btn.download {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.att-action-btn.download:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.att-chip.warning { border-color: rgba(251, 191, 36, 0.5); }
.att-chip.warning small { color: var(--warning); }
.att-chip.danger { border-color: rgba(255, 92, 114, 0.6); background: rgba(255, 92, 114, 0.1); }
.att-chip.danger small { color: var(--danger); }

/* Bağlantı Adresi İnceleme & Kopyalama Çubuğu */
.jm-link-inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 102, 255, 0.45);
  background: linear-gradient(90deg, rgba(168, 102, 255, 0.12), rgba(28, 28, 34, 0.96));
  font-size: 12px;
}
.jli-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.jli-left i { color: var(--accent-2); font-size: 14px; flex-shrink: 0; }
.jli-label { font-weight: 700; color: var(--text); white-space: nowrap; }
.jli-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-2);
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  user-select: all;
}
.jli-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* 🖼️ Güvenli Görsel & Ek Dosya İnceleme Popup Modalı */
.media-preview-card {
  max-width: 860px;
  width: 95vw;
}
.mp-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-security-banner {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
}
.mp-security-banner.safe { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.mp-security-banner.warning { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.1); }
.mp-security-banner.danger { border-color: rgba(255, 92, 114, 0.6); background: rgba(255, 92, 114, 0.12); }
.mp-stage {
  min-height: 260px;
  max-height: 62vh;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: repeating-conic-gradient(#18181c 0% 25%, #222228 0% 50%) 50% / 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.mp-pdf-stage-wrap {
  width: 100%;
  height: 56vh;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.mp-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.mp-pdf-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mp-mini-action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mp-mini-action-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.mp-mini-action-btn.primary {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
}
.mp-mini-action-btn.primary:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.mp-pdf-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}
.mp-zip-explorer,
.mp-doc-reader {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #1c1c22;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mp-zip-header,
.mp-doc-reader-head {
  padding: 9px 12px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.mp-zip-header small {
  color: var(--muted);
  font-size: 11px;
}
.mp-zip-list {
  display: flex;
  flex-direction: column;
  max-height: 46vh;
  overflow-y: auto;
}
.mp-zip-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-zip-item.danger {
  background: rgba(239, 68, 68, 0.1);
}
.mp-zip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-zip-name {
  flex: 1;
  min-width: 150px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-zip-size {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.mp-zip-badge {
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
}
.mp-zip-badge.safe {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}
.mp-zip-badge.danger {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}
.mp-zip-sample-pre,
.mp-code-pre {
  margin: 0;
  padding: 12px;
  background: #141418;
  color: #e9d5ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  max-height: 46vh;
  white-space: pre-wrap;
  word-break: break-word;
}
.mp-doc-reader-body {
  padding: 14px 16px;
  background: #ffffff;
  color: #18181b;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 46vh;
  overflow-y: auto;
}
.mp-video-player {
  max-width: 100%;
  max-height: 52vh;
  border-radius: 8px;
  background: #000;
}
.mp-stage.light-bg {
  background: repeating-conic-gradient(#f4f4f7 0% 25%, #e6e6ec 0% 50%) 50% / 20px 20px;
}
.mp-stage img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mp-placeholder {
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}
.mp-placeholder i {
  font-size: 36px;
  color: var(--accent-2);
}
.mp-meta-box {
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mp-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.mp-meta-row strong {
  color: var(--text);
  min-width: 90px;
  flex-shrink: 0;
}
.mp-meta-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-2);
  user-select: all;
}
.mp-modal-foot {
  flex-wrap: wrap;
  gap: 8px;
}

/* Listede güvenlik ikonları */
.mi-sec { margin-right: 4px; }
.mi-sec.danger { color: var(--danger); }
.mi-sec.warning { color: var(--warning); }

/* Formda veri varken arka plana tıklanınca uyarı titreşimi */
@keyframes jmModalShake {
  0%, 100% { translate: 0 0; }
  20% { translate: -8px 0; }
  40% { translate: 7px 0; }
  60% { translate: -5px 0; }
  80% { translate: 3px 0; }
}
.modal-card.shake { animation: jmModalShake 0.38s ease; }

@media (max-width: 640px) {
  .reader-security .sec-head {
    gap: 6px;
    padding: 5px 8px;
    flex-wrap: nowrap;
  }
  .reader-security .sec-title strong {
    font-size: 11.5px;
  }
  .reader-security .sec-inline-badge {
    display: none;
  }
  .sec-mode-switch {
    flex-shrink: 0;
  }
  .sec-mode-switch button {
    padding: 3px 7px;
    font-size: 10.5px;
  }
  .reader-security .sec-details { padding-left: 12px; }
  .att-chip .att-name { max-width: 150px; }
}

/* ═══ TOPLU SEÇİM (ORTA SÜTUNUN EN ALTINDA AÇILAN 2 SATIRLI DÜZEN) ═══════════ */
.lh-bulk-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  background: linear-gradient(180deg, rgba(30, 21, 50, 0.99), rgba(18, 14, 30, 0.99));
  border-top: 1.5px solid rgba(168, 102, 255, 0.55);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.52);
  flex-shrink: 0;
  z-index: 25;
}
.lbb-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.lbb-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(168, 102, 255, 0.25);
}
.lbb-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lbb-check-all {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(168, 102, 255, 0.2);
  border: 1px solid rgba(168, 102, 255, 0.55);
  color: #f3e8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lbb-check-all i {
  font-size: 13.5px;
}
.lbb-check-all:hover {
  background: rgba(168, 102, 255, 0.35);
  border-color: var(--accent-2);
  color: #fff;
}
.lbb-count {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.lbb-cancel-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.lbb-cancel-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.lbb-btn {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.14s;
}
.lbb-btn i {
  font-size: 13px;
}
.lbb-btn:hover {
  border-color: var(--accent-2);
  color: #fff;
}
.lbb-btn.warn {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.14);
}
.lbb-btn.warn:hover {
  background: rgba(251, 146, 60, 0.28);
  color: #fff;
}
.lbb-btn.focus {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}
.lbb-btn.focus i {
  color: #fbbf24;
}
.lbb-btn.focus.is-focused {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.26);
}
.lbb-btn.focus:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
}
.lbb-btn.focus:hover i {
  color: #0f172a;
}
.lbb-btn.restore {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.16);
}
.lbb-btn.restore:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.lbb-btn.danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.22);
}
.lbb-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.lbb-btn.ghost {
  padding: 5px 7px;
  color: var(--muted);
}

/* Liste öğesi seçim kutusu */
.mi-check-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(24, 24, 28, 0.65);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
  margin-right: 2px;
}
.mi-check-btn:hover {
  border-color: var(--accent-2);
  background: rgba(168, 102, 255, 0.14);
}
.mail-item.selected {
  background: linear-gradient(90deg, rgba(168, 102, 255, 0.18), rgba(144, 64, 255, 0.12)) !important;
  border-color: rgba(168, 102, 255, 0.55) !important;
}
.mail-item.selected .mi-check-btn,
.mi-check-btn.checked {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}

/* ═══ EK DOSYA EKLEME BUTONU & EKLENEN DOSYALAR ÇUBUĞU ═══════════════════════ */
.oc-fmt-btn.attach-btn {
  width: auto;
  padding: 0 11px;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f3e8ff;
  background: rgba(168, 102, 255, 0.16);
  border-color: rgba(168, 102, 255, 0.42);
}
.oc-fmt-btn.attach-btn:hover {
  background: var(--accent-2);
  color: #ffffff;
  border-color: var(--accent-2);
}
.oc-attachments-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(24, 24, 28, 0.92);
  border-top: 1px solid var(--border);
}
.oc-att-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid rgba(168, 102, 255, 0.38);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  max-width: 280px;
}
.oc-att-pill i.att-type-icon {
  color: var(--accent-2);
  font-size: 13.5px;
  flex-shrink: 0;
}
.oc-att-pill .oc-att-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-att-pill small {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}
.oc-att-remove {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.oc-att-remove:hover {
  background: var(--danger);
  color: #fff;
}
.oc-att-add-more {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(168, 102, 255, 0.45);
  background: transparent;
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.oc-att-add-more:hover {
  background: rgba(168, 102, 255, 0.12);
}
.reader-compose-pane.drag-over-file {
  outline: 2px dashed var(--accent-2);
  outline-offset: -4px;
}

/* ═══ 2. KUTU İÇİ DOĞRUDAN YERİNDE İMZA DÜZENLEME (ÜST PENCERE YOK) ══════════ */
.oc-mini-btn.active {
  background: #7c3aed;
  border-color: #6d28d9;
  color: #ffffff;
}
.oc-document-scroll.dark-paper .oc-mini-btn.active {
  background: #9040ff;
  border-color: #c084fc;
  color: #ffffff;
}
.oc-mini-btn.primary {
  background: #7c3aed;
  border-color: #6d28d9;
  color: #ffffff;
}
.oc-document-scroll.dark-paper .oc-mini-btn.primary {
  background: rgba(168, 102, 255, 0.22);
  border-color: rgba(168, 102, 255, 0.55);
  color: #f3e8ff;
}
.oc-mini-btn.primary:hover {
  background: #6d28d9;
  color: #fff;
}
.oc-sig-inline-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  background: #f4f4f7;
  border-bottom: 1px solid #e6e6ec;
  flex-wrap: wrap;
}
.oc-sig-inline-toolbar .oc-fmt-btn {
  color: #334155;
}
.oc-sig-inline-toolbar .oc-fmt-btn:hover {
  background: #e6e6ec;
  color: #18181b;
}
.oc-document-scroll.dark-paper .oc-sig-inline-toolbar {
  background: var(--card);
  border-bottom-color: var(--border);
}
.oc-document-scroll.dark-paper .oc-sig-inline-toolbar .oc-fmt-btn {
  color: var(--muted);
}
.oc-document-scroll.dark-paper .oc-sig-inline-toolbar .oc-fmt-btn:hover {
  background: var(--card-2);
  color: var(--text);
}
.oc-signature-code-inline {
  width: 100%;
  min-height: 110px;
  padding: 12px 16px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  background: #f4f4f7;
  color: #18181b;
  box-sizing: border-box;
}
.oc-document-scroll.dark-paper .oc-signature-code-inline {
  background: #141418;
  color: #c4b5fd;
}

.jmail-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ═══ KİME & BİLGİ (CC) AKILLI KİŞİ ÖNGÖRÜ / TEK TIKLA OTOMATİK TAMAMLAMA ═══ */
.oc-ac-row {
  position: relative;
}
.oc-ac-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oc-ac-wrap input {
  flex: 1;
  min-width: 140px;
}
.oc-ac-quick-pill {
  flex-shrink: 0;
  max-width: 340px;
  padding: 4px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(168, 102, 255, 0.18), rgba(144, 64, 255, 0.2));
  border: 1px solid rgba(168, 102, 255, 0.55);
  color: #f3e8ff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.14s ease;
}
.oc-ac-quick-pill:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.oc-ac-quick-pill kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(24, 24, 28, 0.65);
  color: #c4b5fd;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.oc-ac-quick-pill:hover kbd {
  background: rgba(8, 11, 18, 0.2);
  color: #ffffff;
}
.oc-ac-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-width: 560px;
  max-height: 270px;
  overflow-y: auto;
  background: #18181b;
  border: 1px solid rgba(168, 102, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  z-index: 1200;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oc-ac-head {
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oc-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  color: var(--text);
}
.oc-ac-item:hover,
.oc-ac-item.active {
  background: rgba(168, 102, 255, 0.16);
  border-color: rgba(168, 102, 255, 0.42);
}
.oc-ac-item .jm-sender-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.oc-ac-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.oc-ac-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f4f4f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-ac-email {
  font-size: 11.5px;
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-ac-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.oc-ac-badge.sent {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.38);
}
.oc-ac-badge.inbox {
  background: rgba(144, 64, 255, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(144, 64, 255, 0.38);
}
.oc-ac-accept-hint {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ═══ UZUN DÖNEMLİ ARŞİV DEPO (ARCHIVE VAULT) BUTON STİLLERİ ══════════════════ */
.mi-qbtn.archive {
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
}
.mi-qbtn.archive:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.lbb-btn.archive {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.16);
}
.lbb-btn.archive:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.rt-btn.archive {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.14);
}
.rt-btn.archive:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06281e;
}
.rt-btn.archive.is-archived {
  color: #e9d5ff;
  border-color: rgba(168, 102, 255, 0.45);
  background: rgba(168, 102, 255, 0.16);
}
.rt-btn.archive.is-archived:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}


/* ═══ LIGHT MODE OVERRIDES (ANTIGRAVITY.GOOGLE STİLİ FERAH & YÜKSEK KONTRAST) ═══ */
html.light .jmail-sidebar {
  background: var(--bg-void);
  border-right: 1px solid var(--border);
}
html.light .sb-top {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border);
}
html.light .sb-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
html.light .jmail-list-col {
  background: var(--bg);
  border-right: 1px solid var(--border);
}
html.light .list-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
html.light .lh-search {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(18, 19, 23, 0.04);
}
html.light .lh-search input {
  color: var(--text);
  font-weight: 600;
}
html.light .lh-search input::placeholder {
  color: var(--faint);
}
html.light .jmail-reader-col {
  background: var(--bg);
}
html.light .reader-toolbar {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border);
}
html.light .reader-fixed-top {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
html.light .reader-body:not(.dark-paper) {
  background: #FFFFFF;
  color: var(--text);
}

/* Sol Menü Öğeleri & Rozetler */
html.light .sb-section-title,
html.light .sb-section-head {
  color: var(--faint);
  font-weight: 800;
}
html.light .sb-item {
  color: var(--muted);
  font-weight: 600;
  outline: none !important;
}
html.light .sb-item:hover {
  background: #FFFFFF;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(18, 19, 23, 0.04);
}
html.light .sb-item.active {
  color: #6D28D9;
  background: rgba(124, 58, 237, 0.10);
  border-left: 3px solid #7C3AED;
  font-weight: 700;
}
html.light .sb-badge.muted {
  background: #E2E6F0;
  color: #121317;
  font-weight: 700;
}
html.light .sb-badge.warn {
  background: rgba(217, 119, 6, 0.14);
  color: #B45309;
  border-color: rgba(217, 119, 6, 0.32);
}
html.light .sb-acc-row:hover,
html.light .sb-acc-item:hover {
  background: #FFFFFF;
  border-color: var(--border);
}
html.light .sb-acc-row.active,
html.light .sb-acc-item.active {
  background: #FFFFFF;
  border-left-color: #7C3AED;
  box-shadow: 0 4px 12px rgba(18, 19, 23, 0.06);
}
html.light .sb-acc-avatar-wrap {
  background: #FFFFFF;
  border-color: var(--border);
}
html.light .sb-acc-more:hover {
  background: var(--card-2);
  color: var(--text);
}
html.light .btn-add-account {
  background: #FFFFFF;
  border: 1px dashed #C4CADB;
  color: var(--muted);
  font-weight: 700;
}
html.light .btn-add-account:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: #7C3AED;
  color: #6D28D9;
}

/* Sekme Barı (Tümü | Odaklanılmış | Okunmamış | Yıldızlı) — Antigravity Pill Stili */
html.light .mode-tab,
html.light .filter-chip,
html.light .lfp-chip {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(18, 19, 23, 0.03);
}
html.light .mode-tab:hover,
html.light .filter-chip:hover,
html.light .lfp-chip:hover {
  border-color: #7C3AED;
  color: #121317;
}
html.light .mode-tab.active,
html.light .filter-chip.active,
html.light .lfp-chip.active {
  background: #121317;
  border-color: #121317;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(18, 19, 23, 0.16);
}
html.light .icon-btn,
html.light .lh-filter-icon-btn {
  background: #FFFFFF;
  border-color: var(--border);
  color: var(--muted);
}
html.light .icon-btn:hover,
html.light .lh-filter-icon-btn:hover,
html.light .lh-filter-icon-btn.active {
  background: #121317;
  border-color: #121317;
  color: #FFFFFF;
}

/* E-Posta Liste Satırları (.mail-item) — Ferah & Keskin */
html.light .mail-item {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
html.light .mail-item:hover {
  background: #FFFFFF;
}
html.light .mail-item.active {
  background: #FFFFFF;
  border-left-color: #7C3AED;
  box-shadow: 0 4px 14px rgba(18, 19, 23, 0.05);
}
html.light .mail-item.unread {
  background: #FFFFFF;
  border-left-color: #7C3AED;
}
html.light .mail-item .mi-sender,
html.light .mail-item .mi-from {
  color: #121317;
  font-weight: 600;
}
html.light .mail-item.unread .mi-sender,
html.light .mail-item.unread .mi-from {
  color: #000000;
  font-weight: 800;
}
html.light .mi-subject {
  color: #5B21B6;
  font-weight: 600;
}
html.light .mail-item.unread .mi-subject {
  color: #6D28D9;
  font-weight: 800;
}
html.light .mi-date {
  color: #454854;
  font-weight: 600;
}
html.light .mi-snippet {
  color: #454854;
}
html.light .acc-badge {
  color: #5B21B6 !important;
  background: rgba(124, 58, 237, 0.10) !important;
  border: 1px solid rgba(124, 58, 237, 0.28) !important;
  font-weight: 700;
}
html.light .jm-sender-avatar {
  border-color: rgba(18, 19, 23, 0.12);
  box-shadow: 0 2px 6px rgba(18, 19, 23, 0.08);
}
html.light .mi-check-btn {
  background: #FFFFFF;
  border-color: #C4CADB;
}

/* Satır İçi Hızlı Aksiyon Butonları (.mi-qbtn) & Okuyucu Araç Çubuğu */
html.light .mi-qbtn {
  background: #FFFFFF;
  border-color: var(--border);
  color: var(--muted);
}
html.light .mi-qbtn.archive,
html.light .mi-qbtn.restore,
html.light .rt-btn.archive,
html.light .rt-btn.restore,
html.light .lbb-btn.archive,
html.light .lbb-btn.restore {
  color: #047857;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.28);
}
html.light .mi-qbtn.archive:hover,
html.light .mi-qbtn.restore:hover,
html.light .rt-btn.archive:hover,
html.light .rt-btn.restore:hover,
html.light .lbb-btn.archive:hover,
html.light .lbb-btn.restore:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}
html.light .rt-btn.archive.is-archived {
  color: #6D28D9;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.28);
}
html.light .mi-qbtn.junk,
html.light .rt-btn.warn,
html.light .lbb-btn.warn {
  color: #B45309;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.28);
}
html.light .mi-qbtn.junk:hover,
html.light .rt-btn.warn:hover,
html.light .lbb-btn.warn:hover {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
}
html.light .mi-qbtn.delete,
html.light .rt-btn.danger,
html.light .rt-btn.delete-btn,
html.light .rt-btn.unread-red,
html.light .lbb-btn.danger,
html.light .cat-tag-clear-all,
html.light .acm-item.danger {
  color: #BE123C;
  background: rgba(244, 63, 94, 0.10);
  border-color: rgba(244, 63, 94, 0.28);
}
html.light .rt-btn.danger i,
html.light .rt-btn.delete-btn i,
html.light .rt-btn.unread-red i,
html.light .acm-item.danger i {
  color: #E11D48;
}
html.light .mi-qbtn.delete:hover,
html.light .rt-btn.danger:hover,
html.light .rt-btn.delete-btn:hover,
html.light .rt-btn.unread-red:hover,
html.light .lbb-btn.danger:hover,
html.light .cat-tag-clear-all:hover {
  background: #E11D48;
  border-color: #E11D48;
  color: #FFFFFF;
}
html.light .rt-btn.danger:hover i,
html.light .rt-btn.delete-btn:hover i,
html.light .rt-btn.unread-red:hover i {
  color: #FFFFFF;
}

/* Açılır Menüler, Yazma Ekranı & Otomatik Tamamlama */
html.light .acc-context-menu,
html.light .lh-filter-popover,
html.light .lh-acc-dropdown-menu,
html.light .oc-ac-dropdown {
  background: #FFFFFF;
  border-color: var(--border);
  box-shadow: 0 18px 42px rgba(18, 19, 23, 0.14);
}
html.light .oc-attachments-bar,
html.light .active-category-tags {
  background: var(--bg-2);
  border-color: var(--border);
}
html.light .cat-tag-pill {
  color: #5B21B6;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.28);
}
html.light .rt-btn.primary-reply,
html.light .rt-compose-right .compose-draft-btn,
html.light .oc-fmt-btn.attach-btn,
html.light .oc-ac-quick-pill,
html.light .rt-zoom-btn.fit-btn.fit-active {
  color: #5B21B6;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.28);
}
html.light .rt-btn.primary-reply:hover,
html.light .rt-compose-right .compose-draft-btn:hover,
html.light .oc-fmt-btn.attach-btn:hover,
html.light .oc-ac-quick-pill:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
}
html.light .oc-send-big-btn {
  color: #5B21B6;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.32);
}
html.light .oc-send-big-btn:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, #7C3AED, #9040FF);
}
html.light .oc-ac-name {
  color: #121317;
}
html.light .oc-ac-email,
html.light .oc-ac-badge.inbox,
html.light .dc-status {
  color: #6D28D9;
}
html.light .oc-ac-badge.sent,
html.light .mp-zip-badge.safe {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}
html.light .lbb-count,
html.light .dc-code-pill {
  color: #5B21B6;
}
html.light .oc-signature-drawer {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), var(--bg-2));
  box-shadow: 0 8px 20px rgba(18, 19, 23, 0.08);
}

/* ─── Çoklu Hesap Seçici Dropdown (.lh-acc-dropdown-*) & Filtre Hesap Checkbox'ları ─── */
.lh-acc-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lh-acc-dropdown-btn {
  height: 34px;
  max-width: 190px;
  padding: 0 11px 0 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lh-acc-dropdown-btn:hover,
.lh-acc-dropdown-btn.open {
  border-color: var(--accent-2);
  background: var(--card-2);
}
.lh-acc-dropdown-btn.filtered {
  border-color: rgba(168, 102, 255, 0.55);
  background: rgba(144, 64, 255, 0.14);
  color: #e9d5ff;
}
.lh-acc-dd-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.lh-acc-dd-dots .dd-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35);
}
.lh-acc-dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.lh-acc-dd-caret {
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.16s ease;
  flex-shrink: 0;
}
.lh-acc-dropdown-btn.open .lh-acc-dd-caret {
  transform: rotate(180deg);
}
.lh-acc-dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 295px;
  max-width: calc(100vw - 28px);
  background: #14161f;
  border: 1px solid rgba(168, 102, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
  padding: 8px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lh-acc-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lh-acc-dd-all-btn,
.lfp-mini-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(168, 102, 255, 0.12);
  border: 1px solid rgba(168, 102, 255, 0.25);
  cursor: pointer;
  transition: all 0.14s ease;
}
.lh-acc-dd-all-btn:hover,
.lfp-mini-link:hover {
  background: var(--accent-2);
  color: #ffffff;
}
.lh-acc-dd-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 280px;
  overflow-y: auto;
}
.lh-acc-dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}
.lh-acc-dd-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.lh-acc-dd-item.checked {
  background: rgba(144, 64, 255, 0.13);
  border-color: rgba(168, 102, 255, 0.32);
}
.lh-acc-dd-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.lh-acc-dd-item.checked .lh-acc-dd-check {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.lh-acc-dd-prov {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lh-acc-dd-prov .dd-prov-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #14161f;
}
.lh-acc-dd-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lh-acc-dd-meta strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lh-acc-dd-meta small {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lh-acc-dd-only {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  opacity: 0;
  transition: all 0.14s ease;
  flex-shrink: 0;
}
.lh-acc-dd-item:hover .lh-acc-dd-only {
  opacity: 1;
}
.lh-acc-dd-only:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.lh-acc-dd-unread {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(168, 102, 255, 0.18);
  color: #c4b5fd;
  flex-shrink: 0;
}
.lfp-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lfp-acc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lfp-acc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lfp-acc-chip.active {
  background: rgba(144, 64, 255, 0.16);
  border-color: var(--accent-2);
  color: var(--text);
}
.lfp-acc-chip i.fa-check-square,
.lfp-acc-chip i.fa-square-o {
  font-size: 12.5px;
  color: var(--accent-2);
}

html.light .lh-acc-dropdown-btn {
  background: #FFFFFF;
  border-color: var(--border);
  color: #121317;
}
html.light .lh-acc-dropdown-btn.filtered {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.38);
  color: #5B21B6;
}
html.light .lh-acc-dd-item:hover {
  background: rgba(18, 19, 23, 0.04);
}
html.light .lh-acc-dd-item.checked {
  background: rgba(124, 58, 237, 0.09);
  border-color: rgba(124, 58, 237, 0.28);
}
html.light .lh-acc-dd-check {
  border-color: #94A3B8;
  background: #FFFFFF;
}
html.light .lh-acc-dd-item.checked .lh-acc-dd-check {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
}
html.light .lh-acc-dd-only {
  background: #F4F5F8;
  border-color: #CBD5E1;
  color: #454854;
}
html.light .lh-acc-dd-only:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
}
html.light .lh-acc-dd-unread {
  background: rgba(124, 58, 237, 0.12);
  color: #5B21B6;
}
html.light .lfp-acc-chip {
  background: #FFFFFF;
  border-color: var(--border);
  color: #454854;
}
html.light .lfp-acc-chip.active {
  background: rgba(124, 58, 237, 0.10);
  border-color: #7C3AED;
  color: #5B21B6;
}

/* ─── Ekli Mail Hesapları Sürükle-Bırak ve Yukarı/Aşağı Sıralama ─── */
.sb-acc-item.dragging-acc,
.lh-acc-dd-item.dragging-acc {
  opacity: 0.45;
}
.sb-acc-item.drag-over-acc,
.lh-acc-dd-item.drag-over-acc {
  border-top: 2px solid var(--accent-2) !important;
  background: rgba(168, 102, 255, 0.14);
}
.sb-acc-order-btns,
.lh-acc-dd-order-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.14s ease;
  flex-shrink: 0;
}
.sb-acc-item:hover .sb-acc-order-btns,
.lh-acc-dd-item:hover .lh-acc-dd-order-btns {
  opacity: 1;
}
.sb-acc-move,
.lh-acc-dd-move {
  width: 17px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.sb-acc-move:hover:not(:disabled),
.lh-acc-dd-move:hover:not(:disabled) {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.sb-acc-move:disabled,
.lh-acc-dd-move:disabled {
  opacity: 0.25;
  cursor: default;
}
html.light .sb-acc-move,
html.light .lh-acc-dd-move {
  background: #F4F5F8;
  border-color: #CBD5E1;
  color: #454854;
}
html.light .sb-acc-move:hover:not(:disabled),
html.light .lh-acc-dd-move:hover:not(:disabled) {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
}
