/* Generated by scripts/sync-demo.js from Verdant-Desktop. Do not edit by hand. */

.vd { --bg: #f5f3ef; --surface: #eeece7; --surface2: #e7e4dd; --surface3: #e7e4dd; --border: #b4afa2; --green: #4a5e45; --green-mid: #5c7356; --green-light: #7a9470; --green-muted: #c8d5c4; --green-pale: #e8efe6; --text: #1e2119; --text-mid: #4a4d45; --text-muted: #6c7065; --white: #fafaf8; --accent: #3d5239; --user-row-bg: #efede7; --user-row-hover: #dcd7cd; --shadow-lg: 0 8px 32px rgba(30,33,25,0.14), 0 2px 8px rgba(30,33,25,0.06); --settings-danger-color: #8a3b3b; --settings-danger-color-border:#dcb9b9; }
.vd.dark { --bg: #1f1c18; --surface: #2a2622; --surface2: #353026; --surface3: #2a261c; --border: #4a4640; --green: #608158; --green-mid: #5c7356; --green-light: #7a9470; --green-muted: #2c372c; --green-pale: #2e362c; --text: #f0ebe3; --text-mid: #dad2c5; --text-muted: #b5ac9d; --white: #2a2622; --accent: #5b6d55; --user-row-bg: #4d473f; --user-row-hover: #3f3a33; --shadow-lg: 0 8px 32px rgba(30,33,25,0.28), 0 2px 8px rgba(30,33,25,0.12); --settings-danger-color: #f1a7a7; --settings-danger-color-border:#622222; }
/* shell.css */
.vd { -webkit-user-select: none; user-select: none; }
.vd ::selection { background-color: var(--green-muted); color: var(--text); }
.vd .app-header {
  height: 42px; min-height: 42px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 12px; gap: 12px;
}
.vd .app-header-left { display:flex; align-items:center; gap:9px; min-width:0; }
.vd .app-logo-mark { width:20px; height:20px; display:block; flex-shrink:0; }
.vd .app-title { font:500 13px 'Fraunces', serif; color:var(--text); letter-spacing:-0.2px; white-space:nowrap; }
.vd .app-subtitle { font:400 11px 'DM Sans', sans-serif; color:var(--text-muted); white-space:nowrap; }
.vd .app-header-controls { display:flex; align-items:center; gap:6px; }
.vd .app-win-btn { width:28px; height:24px; border-radius:7px; border:1px solid var(--border); background:var(--surface2); color:var(--text-mid); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:all .12s ease; }
.vd .app-win-btn:hover { background:var(--white); color:var(--text); }
.vd .app-win-btn.close:hover { background:#f3dfdf; border-color:#ddb5b5; color:#8a2e2e; }
.vd .app-win-btn svg { width:14px; height:14px; stroke-width:2.2; }
.vd .app-content { flex:1; min-height:0; display:flex; width:100%; overflow:hidden; height:calc(100% - 42px); position:relative; }
.vd .sidebar { width:220px; min-width:220px; background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; transition:width .25s cubic-bezier(.4,0,.2,1), min-width .25s cubic-bezier(.4,0,.2,1), border-top-right-radius .28s ease, border-bottom-right-radius .28s ease; }
.vd .sidebar-header { padding:20px 20px 10px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vd .sidebar-menu-label { font-family:'Fraunces',serif; font-size:21px; font-weight:500; letter-spacing:-0.3px; color:var(--text); text-align:left; }
.vd .sidebar-collapse-btn { width:28px; height:28px; border:1px solid var(--border); background:var(--surface2); border-radius:7px; color:var(--text-mid); display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; transition:background .12s, color .12s; }
.vd .sidebar-collapse-btn:hover { background:var(--white); color:var(--text); }
.vd .sidebar-collapse-btn svg { width:16px; height:16px; }
.vd .sidebar-menu-label, .vd .nav-text, .vd .compose-btn-label, .vd .user-info { overflow:hidden; white-space:nowrap; max-width:200px; transition:opacity .15s ease, max-width .28s cubic-bezier(.4,0,.2,1); }
.vd.sidebar-collapsed .sidebar:not(.sidebar-float) { width:52px; min-width:52px; }
.vd.sidebar-collapsed .sidebar-header { justify-content:flex-end; padding:20px 12px 10px; gap:0; }
.vd.sidebar-collapsed .sidebar-menu-label { opacity:0; max-width:0; }
.vd.sidebar-collapsed .nav-item { width:30px; height:30px; padding:0; justify-content:center; gap:0; margin:0 11px 1px auto; }
.vd.sidebar-collapsed .nav-text { opacity:0; max-width:0; }
.vd.sidebar-collapsed .nav-badge { display:none; }
.vd.sidebar-collapsed .compose-wrap { padding:24px 0 10px; }
.vd.sidebar-collapsed .compose-btn { width:30px; height:30px; padding:0; justify-content:center; gap:0; margin:0 11px 0 auto; }
.vd.sidebar-collapsed .compose-btn-label { opacity:0; max-width:0; }
.vd.sidebar-collapsed .sidebar-section { padding:6px 0; }
.vd.sidebar-collapsed .user-info { opacity:0; max-width:0; }
.vd.sidebar-collapsed .user-row { justify-content:flex-end; padding:6px 12px; gap:0; }
.vd.sidebar-collapsed .sidebar-footer { padding:14px 0; }
.vd.sidebar-collapsed .sidebar-float { position:absolute; left:-168px; top:0; bottom:0; width:220px; min-width:220px; z-index:30; box-shadow:8px 0 20px rgba(0,0,0,.08); border-top-right-radius:10px; border-bottom-right-radius:10px; transition:transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease, border-top-right-radius .28s ease, border-bottom-right-radius .28s ease; will-change:transform; }
.vd.sidebar-collapsed .sidebar-float-expanded { transform:translateX(168px); }
.vd.sidebar-collapsed .sidebar-float ~ .email-list-pane { margin-left:52px; }
.vd.sidebar-collapsed .sidebar-float-exit ~ .email-list-pane { margin-left:0; transition:none; }
.vd.sidebar-collapsed .sidebar-float-exit { transition:none; }
.vd.sidebar-collapsed .sidebar-float-expanded .sidebar-header { justify-content:space-between; padding:20px 20px 10px; gap:8px; }
.vd.sidebar-collapsed .sidebar-float-expanded .sidebar-menu-label { opacity:1; max-width:200px; }
.vd.sidebar-collapsed .sidebar-float-expanded .nav-item { width:auto; height:auto; margin:0 0 1px; justify-content:flex-start; padding:7px 10px; gap:9px; }
.vd.sidebar-collapsed .sidebar-float-expanded .nav-text { opacity:1; max-width:200px; }
.vd.sidebar-collapsed .sidebar-float-expanded .nav-badge { display:block; }
.vd.sidebar-collapsed .sidebar-float-expanded .compose-wrap { padding:24px 12px 10px; }
.vd.sidebar-collapsed .sidebar-float-expanded .compose-btn { width:100%; height:auto; margin:0; justify-content:flex-start; padding:9px 14px; gap:7px; }
.vd.sidebar-collapsed .sidebar-float-expanded .compose-btn-label { opacity:1; max-width:200px; }
.vd.sidebar-collapsed .sidebar-float-expanded .sidebar-section { padding:6px 12px 6px; }
.vd.sidebar-collapsed .sidebar-float-expanded .user-info { opacity:1; max-width:200px; }
.vd.sidebar-collapsed .sidebar-float-expanded .user-row { justify-content:flex-start; padding:6px; gap:10px; }
.vd.sidebar-collapsed .sidebar-float-expanded .sidebar-footer { padding:14px 16px; }
.vd .compose-btn { width:100%; padding:9px 14px; background:var(--green); color:var(--white); border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:7px; transition:background 0.15s, transform 0.1s; }
.vd .compose-btn:hover { background:var(--accent); transform:translateY(-1px); }
.vd .compose-btn svg { width:15px; height:15px; opacity:0.9; }
.vd .sidebar-section { padding:6px 12px 6px; flex:0 1 auto; overflow-y:auto; }
.vd .nav-item { display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:7px; cursor:pointer; font-size:13.5px; color:var(--text-mid); border:1px solid transparent; transition:background 0.12s, color 0.12s, border-color 0.12s; margin-bottom:1px; user-select:none; }
.vd .nav-item:hover { background:var(--surface2); color:var(--text); }
.vd .nav-item.active { background:var(--green-pale); border-color:var(--green-muted); color:var(--green); font-weight:500; }
.vd .nav-item svg { width:16px; height:16px; opacity:0.7; flex-shrink:0; }
.vd .nav-item.active svg { opacity:1; }
.vd .inbox-expand-btn { margin-left:auto; border:0; background:transparent; color:inherit; cursor:pointer; font-size:14px; padding:0 3px; flex-shrink:0; }
.vd.sidebar-collapsed .smart-categories, .vd.sidebar-collapsed .smart-organize-btn { display:none; }
.vd.sidebar-collapsed .sidebar-float-expanded .smart-categories:not([hidden]) { display:block; }
.vd.sidebar-collapsed .sidebar-float-expanded .smart-organize-btn:not([hidden]) { display:flex; width:calc(100% - 20px); margin:4px 10px 8px; }
.vd.sidebar-collapsed .inbox-expand-btn { display:none; }
.vd.sidebar-collapsed .sidebar-float-expanded .inbox-expand-btn { display:flex; margin-left:auto; }
.vd .nav-badge { margin-left:auto; background:var(--green); color:white; font-size:10px; font-weight:500; padding:1px 6px; border-radius:20px; line-height:16px; }
.vd .nav-badge.subtle { background:var(--surface2); color:var(--text); opacity:1; font-weight:500; }
.vd .compose-wrap { padding:24px 12px 10px; }
.vd .sidebar-footer { padding:14px 16px; margin-top:auto; }
.vd .user-row { display:flex; align-items:center; gap:10px; cursor:pointer; padding:6px; border-radius:8px; background:var(--user-row-bg); transition:background 0.12s; }
.vd .user-row:hover { background:var(--user-row-hover); }
.vd .avatar { width:28px; height:28px; border-radius:50%; background:var(--green-mid); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:white; flex-shrink:0; }
.vd .user-info { flex:1; min-width:0; }
.vd .user-name { font-size:12.5px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vd .user-email { font-size:10.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vd .email-list-pane { width:320px; min-width:320px; max-width:68%; background:var(--white); display:flex; flex-direction:column; overflow:hidden; }
.vd .list-sync-bar {
  position:relative; height:3px; flex-shrink:0;
  background:var(--surface2); overflow:hidden; pointer-events:none;
  opacity:0; transition:opacity .25s ease;
}
.vd .list-sync-bar.visible { opacity:1; }
.vd .list-sync-bar-inner {
  position:absolute; inset:0;
  background:linear-gradient(90deg, var(--surface2) 0%, var(--green) 40%, var(--green-light) 60%, var(--surface2) 100%);
  background-size:200% 100%;
  animation:list-sync-shimmer 1.4s linear infinite;
}
@keyframes list-sync-shimmer {
  0% { background-position:200% 0; }
  100% { background-position:-200% 0; }
}
.vd .boot-screen {
  position:absolute; inset:0; z-index:99999;
  background:var(--bg); display:flex; align-items:center; justify-content:center;
}
.vd .boot-spinner {
  width:32px; height:32px; border:3px solid rgba(74,94,69,.2);
  border-top-color:var(--green); border-radius:50%; animation:list-spin .7s linear infinite;
}
.vd .list-loading { display:flex; align-items:center; justify-content:center; height:100%; min-height:180px; }
.vd .list-spinner {
  width:22px; height:22px; border:2.5px solid rgba(74,94,69,.22);
  border-top-color:var(--green); border-radius:50%; animation:list-spin .7s linear infinite;
}
@keyframes list-spin { to { transform:rotate(360deg); } }
.vd .pane-resizer { width:8px; cursor:col-resize; background:linear-gradient(to right, transparent 0, transparent 3px, var(--border) 3px, var(--border) 5px, transparent 5px, transparent 8px); flex-shrink:0; transition:background .12s; }
.vd .pane-resizer:hover { background:linear-gradient(to right, transparent 0, transparent 3px, var(--green-light) 3px, var(--green-light) 5px, transparent 5px, transparent 8px); }
.vd.resizing { cursor:col-resize; user-select:none; }
.vd .list-header { padding:18px 18px 12px; border-bottom:1px solid var(--border); }
.vd .list-title-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.vd .list-title { font-family:'Fraunces',serif; font-size:18px; font-weight:400; letter-spacing:-0.4px; color:var(--text); }
.vd .list-count { font-size:12px; color:var(--text-muted); background:var(--surface2); padding:2px 8px; border-radius:20px; }
.vd .search-bar { display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:7px 11px; margin-bottom:10px; transition:border-color 0.15s, box-shadow 0.15s; }
.vd .search-bar:focus-within { border-color:var(--green-light); box-shadow:0 0 0 2px rgba(74,94,69,0.1); }
.vd .search-bar svg { width:15px; height:15px; color:var(--text-muted); flex-shrink:0; }
.vd .search-bar input { flex:1; border:none; background:none; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--text); outline:none; -webkit-user-select:text; user-select:text; }
.vd .search-bar input::placeholder { color:var(--text-muted); }
.vd .filter-chips { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; transition:opacity .18s ease, transform .18s ease; }
.vd .filter-chips::-webkit-scrollbar { display:none; }
.vd .filter-bar { position:relative; min-height:32px; }
.vd .filter-bar.bulk-mode .filter-chips { opacity:0; transform:translateY(4px); pointer-events:none; }
.vd .bulk-bar {
  position:absolute; left:0; right:0; top:0;
  display:flex; align-items:center; justify-content:flex-start; gap:8px;
  opacity:0; visibility:hidden; transform:translateY(-4px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.vd .filter-bar.bulk-mode .bulk-bar { opacity:1; visibility:visible; transform:translateY(0); }
.vd .bulk-master {
  width:28px; height:26px; display:flex; align-items:center; justify-content:center;
  appearance:none; -webkit-appearance:none; border:none; background:transparent; cursor:pointer; color:var(--text-mid);
  transition:background .12s, color .12s;
}
.vd .bulk-master:hover { background:var(--surface2); }
.vd .bulk-master-box {
  position:relative;
  width:16px; height:16px; border:1.5px solid var(--border); border-radius:5px;
  background:var(--white); display:flex; align-items:center; justify-content:center; color:var(--green);
  transition:background .12s, border-color .12s, color .12s;
}
.vd .bulk-ic-check, .vd .bulk-ic-dash { position:absolute; display:flex; align-items:center; justify-content:center; }
.vd .bulk-master-box svg { width:11px; height:11px; opacity:0; transition:opacity .12s; }
.vd .bulk-master.state-all .bulk-master-box { background:var(--green); border-color:var(--green); color:#fff; }
.vd .bulk-master.state-all .bulk-ic-check svg { opacity:1; }
.vd .bulk-master.state-some .bulk-ic-dash svg { opacity:1; }
.vd .bulk-actions { display:flex; align-items:center; gap:6px; }
.vd .bulk-action {
  padding:5px 8px; border-radius:7px; font-size:12px; white-space:nowrap; cursor:pointer;
  appearance:none; -webkit-appearance:none; border:none; background:transparent; color:var(--text-mid);
  display:inline-flex; align-items:center; gap:5px;
  transition:all 0.12s;
}
.vd .bulk-action:hover { background:var(--surface2); color:var(--text); }
.vd .bulk-action svg { width:14px; height:14px; }
.vd .bulk-action.danger:hover { background:#f3dfdf; color:#8a2e2e; }
.vd .bulk-action.active { background:var(--green-pale); color:var(--green); }
.vd .bulk-bar.empty .bulk-action { opacity:.45; pointer-events:none; }
.vd .bulk-action.close {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vd .bulk-action.close:hover {
  background: var(--surface2);
  color: var(--text);
}
.vd .bulk-action.close svg {
  width: 14px;
  height: 14px;
}
.vd .chip { padding:4px 10px; border-radius:20px; font-size:12px; white-space:nowrap; cursor:pointer; border:1px solid var(--border); background:transparent; color:var(--text-mid); transition:all 0.12s; }
.vd .chip:hover { background:var(--surface2); }
.vd .chip.active { background:var(--green-pale); border-color:var(--green-muted); color:var(--green); font-weight:500; }
.vd .email-list { flex:1; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
.vd .email-item { padding:13px 18px; border-bottom:1px solid var(--surface); cursor:pointer; transition:background 0.1s; position:relative; }
.vd .email-item:hover { background:var(--surface); }
.vd .email-item.active { background:var(--green-pale); border-left:2px solid var(--green); }
.vd .email-list.multi-select .email-item { padding-left:40px; }
.vd .email-list.multi-select .unread-dot { display:none; }
.vd .email-item.selected { background:var(--green-pale); }
.vd .email-checkbox {
  position:absolute; left:8px; top:50%;
  transform:translateY(-50%);
  width:16px; height:16px;
  border:1.5px solid var(--border);
  border-radius:5px;
  background:var(--white);
  color:#fff;
  display:none; align-items:center; justify-content:center;
  pointer-events:none;
  transition:background .12s, border-color .12s;
}
.vd .email-list.multi-select .email-checkbox { display:flex; }
.vd .email-checkbox svg { width:11px; height:11px; opacity:0; transition:opacity .12s; }
.vd .email-item.selected .email-checkbox { background:var(--green); border-color:var(--green); }
.vd .email-item.selected .email-checkbox svg { opacity:1; }
.vd .email-item.unread .email-sender { font-weight:600; color:var(--text); }
.vd .email-item.unread .email-subject { font-weight:500; }
.vd .star-badge {
  position:absolute; right:100px; top:50%;
  transform: translateY(-50%);
  color:var(--green);
  display:flex; align-items:center; justify-content:center;
  pointer-events:none; z-index:2;
}
.vd .star-badge svg { width:18px; height:18px; }
.vd .star-badge.pop { animation: star-pop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes star-pop {
  0%   { opacity:0; transform: translateY(-50%) scale(.2) rotate(-40deg); }
  60%  { opacity:1; transform: translateY(-50%) scale(1.3) rotate(8deg); }
  100% { opacity:1; transform: translateY(-50%) scale(1) rotate(0); }
}
.vd .unread-dot { position:absolute; top:50%; left:8px; transform:translateY(-50%); width:5px; height:5px; background:var(--green); border-radius:50%; }
.vd .email-subject { font-size:13px; color:var(--text); margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vd .email-preview { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.4; }
.vd .email-sender { font-size:13px; color:var(--text-mid); }
.vd .email-time { font-size:11px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.vd .reading-pane { flex:1; display:flex; flex-direction:column; overflow:hidden; background:var(--white); }
.vd .reading-header { padding:20px 32px 16px; border-bottom:1px solid var(--border); }
.vd .reading-actions { display:flex; align-items:center; gap:8px; margin-bottom:18px; }
.vd .icon-btn { width:32px; height:32px; border-radius:7px; border:1px solid var(--border); background:transparent; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); transition:all 0.12s; }
.vd .icon-btn:hover { background:var(--surface); color:var(--text); }
.vd .icon-btn svg { width:16px; height:16px; }
.vd .reading-subject { font-family:'Fraunces',serif; font-size:22px; font-weight:400; letter-spacing:-0.5px; color:var(--text); margin-bottom:14px; line-height:1.3; }
.vd .reading-meta { display:flex; align-items:center; gap:12px; }
.vd .meta-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg, var(--green-mid), var(--green-light)); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; color:white; flex-shrink:0; overflow:hidden; }
.vd .meta-info { flex:1; }
.vd .meta-from { font-size:13.5px; font-weight:500; color:var(--text); }
.vd .meta-to { font-size:12px; color:var(--text-muted); margin-top:1px; }
.vd .meta-to .rcpt-row { display:flex; gap:8px; align-items:baseline; line-height:1.7; }
.vd .meta-to .rcpt-label { font-weight:600; color:var(--text-muted); min-width:34px; flex-shrink:0; }
.vd .meta-to .rcpt-value { color:var(--text); word-break:break-word; }
.vd .meta-date { font-size:12px; color:var(--text-muted); }
.vd .reading-body { flex:1; overflow-y:auto; padding:20px 24px; scrollbar-width:thin; scrollbar-color:var(--border) transparent; display:flex; flex-direction:column; }
.vd .email-body-text, .vd .email-body-text * { -webkit-user-select:text; user-select:text; }
.vd .email-body-text { font-size:14.5px; line-height:1.75; color:var(--text-mid); width:100%; flex:1; display:flex; flex-direction:column; }
.vd .email-body-text iframe { width:100%; height:100%; }
.vd .email-body-text p { margin-bottom:16px; }
.vd .email-body-text p:last-child { margin-bottom:0; }
.vd .modal-overlay { position:absolute; inset:0; background:rgba(30,33,25,0.35); backdrop-filter:blur(4px); display:flex; align-items:flex-end; justify-content:flex-end; padding:24px; z-index:100; opacity:0; pointer-events:none; transition:opacity 0.2s; }
.vd .modal-overlay.open { opacity:1; pointer-events:all; }
.vd .compose-modal { width:480px; background:var(--white); border-radius:14px; box-shadow:var(--shadow-lg), 0 0 0 1px var(--border); display:flex; flex-direction:column; overflow:hidden; transform:translateY(16px) scale(0.98); transition:transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); height:auto; }
.vd .modal-overlay.open .compose-modal { transform:translateY(0) scale(1); }
.vd .modal-header { padding:14px 18px; background:var(--green); display:flex; align-items:center; justify-content:space-between; }
.vd .modal-title { font-family:'Fraunces',serif; font-size:14px; font-weight:400; color:white; letter-spacing:-0.2px; }
.vd .modal-close { width:24px; height:24px; border-radius:6px; border:none; background:rgba(255,255,255,0.15); color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; line-height:1; transition:background 0.12s; }
.vd .modal-close:hover { background:rgba(255,255,255,0.25); }
.vd .modal-header-actions { display:flex; align-items:center; gap:6px; }
.vd .modal-fields { padding:0 18px; }
.vd .modal-field { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--surface2); }
.vd .modal-field label { font-size:12px; color:var(--text-muted); width:36px; flex-shrink:0; }
.vd .modal-field input { flex:1; border:none; background:none; font-family:'DM Sans',sans-serif; font-size:13.5px; color:var(--text); outline:none; -webkit-user-select:text; user-select:text; }
.vd .modal-field input::placeholder { color:var(--text-muted); }
.vd .compose-recipient-wrap { flex:1; position:relative; min-width:0; }
.vd .compose-recipient-input { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-height:24px; }
.vd .compose-recipient-input input { flex:1 1 140px; min-width:120px; -webkit-user-select:text; user-select:text; }
.vd .compose-recipient-chip { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:2px 8px; border-radius:999px; border:1px solid var(--green-muted); background:var(--green-pale); color:var(--green); font:500 12px 'DM Sans',sans-serif; }
.vd .compose-recipient-chip-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:260px; }
.vd .compose-recipient-chip-remove { border:0; background:transparent; color:inherit; font:500 12px 'DM Sans',sans-serif; cursor:pointer; line-height:1; padding:0; }
.vd .compose-recipient-suggest { display:none; position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:2600; background:var(--white); border:1px solid var(--border); border-radius:9px; box-shadow:0 10px 24px rgba(0,0,0,.14); max-height:180px; overflow-y:auto; }
.vd .compose-recipient-suggest.open { display:block; }
.vd .compose-recipient-option { width:100%; border:0; background:transparent; color:var(--text); text-align:left; padding:8px 10px; display:grid; gap:1px; cursor:pointer; }
.vd .compose-recipient-option:hover, .vd .compose-recipient-option.active { background:var(--green-pale); }
.vd .compose-recipient-option-name { font:500 12px 'DM Sans', sans-serif; }
.vd .compose-recipient-option-email { font:400 11px 'DM Sans', sans-serif; color:var(--text-muted); }
.vd .modal-body { margin:4px 18px 0; min-height:140px; flex:1; overflow-y:auto; max-height:340px; }
.vd .compose-editor { width:100%; min-height:100px; max-height:320px; overflow-y:auto; border:none; background:none; font-family:'DM Sans',sans-serif; font-size:13.5px; color:var(--text); outline:none; line-height:1.65; padding:12px 0; white-space:pre-wrap; word-break:break-word; -webkit-user-select:text; user-select:text; }
.vd .compose-editor:empty::before { content:attr(data-placeholder); color:var(--text-muted); pointer-events:none; }
.vd .compose-editor h2 { font:500 20px 'Fraunces',serif; color:var(--text); margin:8px 0; }
.vd .compose-editor blockquote { border-left:3px solid var(--green-light); background:var(--green-pale); margin:8px 0; padding:8px 10px; color:var(--text-mid); }
.vd .compose-editor pre { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:10px; margin:8px 0; overflow-x:auto; }
.vd .compose-editor ul { margin:8px 0 8px 18px; }
.vd .compose-format-toolbar { display:none; width:fit-content; margin:4px 18px 0; padding:6px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface); flex-wrap:wrap; gap:5px; }
.vd .compose-format-toolbar.open { display:flex; }
.vd .compose-format-btn { width:26px; height:26px; border-radius:999px; border:1px solid var(--border); background:var(--white); color:var(--text-mid); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background 0.12s, color 0.12s, border-color 0.12s; }
.vd .compose-format-btn svg { width:14px; height:14px; }
.vd .compose-format-btn:hover { background:var(--green-pale); color:var(--green); }
.vd .compose-format-btn.active { background:var(--green-pale); color:var(--green); border-color:var(--green-muted); }
.vd .compose-attachments { margin:0 18px 10px; display:flex; flex-wrap:wrap; gap:6px; min-height:20px; }
.vd .compose-attachment { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; border:1px solid var(--green-muted); background:var(--green-pale); color:var(--green); font-size:11px; max-width:100%; }
.vd .compose-attachment-name { max-width:180px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vd .compose-attachment-remove { border:none; background:transparent; color:var(--green); font-size:12px; line-height:1; cursor:pointer; }
.vd .modal-footer { padding:12px 18px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.vd .modal-tools { display:flex; gap:6px; }
.vd .modal-tool { width:30px; height:30px; border-radius:6px; border:1px solid transparent; background:transparent; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.12s; }
.vd .modal-tool:hover { background:var(--surface); border-color:var(--border); color:var(--text); }
.vd .modal-tool svg { width:16px; height:16px; }
.vd .modal-tool.active { background:var(--green-pale); border-color:var(--green-muted); color:var(--green); }
.vd .modal-tool.compose-clear-btn:hover { background:#f5dede; color:#8a2e2e; border-color:#d79f9f; }
.vd .send-btn { padding:8px 18px; background:var(--green); color:white; border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:7px; transition:background 0.15s, transform 0.1s; }
.vd .send-btn:hover { background:var(--accent); transform:translateY(-1px); }
.vd .send-btn svg { width:15px; height:15px; }
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.vd .email-item { animation:fadeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.vd .inbox-expand-btn { margin-left:auto; width:24px; height:24px; border:0; background:transparent; color:inherit; display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:5px; }
.vd .inbox-expand-btn:hover { background:var(--surface2); }
.vd .inbox-expand-btn svg { width:15px; height:15px; }
.vd .inbox-expand-btn[hidden] { display:none !important; }
.vd .smart-categories { padding:0 0 3px 18px; }
.vd .smart-categories[hidden] { display:none; }
.vd .smart-category { padding:6px 7px; font-size:12.5px; }
.vd .smart-category .nav-badge { margin-left:6px; }
.vd .smart-organize-btn[hidden] { display:none !important; }
.vd .smart-category-dot { width:7px; height:7px; border-radius:50%; background:var(--category-color); flex-shrink:0; }
.vd .smart-category-name { min-width:0; text-overflow:ellipsis; }
.vd .smart-rename { width:22px; height:22px; margin-left:auto; border:0; border-radius:5px; background:transparent; color:var(--text-muted); display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; }
.vd .smart-category:hover .smart-rename, .vd .smart-category.editing .smart-rename { opacity:1; }
.vd .smart-rename:hover { background:var(--surface2); color:var(--text); }
.vd .smart-rename svg { width:13px; height:13px; }
.vd .smart-rename-input { min-width:0; width:100%; border:1px solid var(--green-light); border-radius:4px; padding:2px 4px; color:var(--text); background:var(--white); font:inherit; outline:none; user-select:text; }
.vd .smart-organize-btn { width:calc(100% - 18px); margin:2px 0 4px 18px; padding:7px 8px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--text-mid); display:flex; align-items:center; gap:8px; cursor:pointer; font:inherit; font-size:12.5px; text-align:left; }
.vd .smart-organize-btn:hover { background:var(--surface2); color:var(--text); }
.vd .smart-organize-btn svg:last-child { width:14px; height:14px; margin-left:auto; }
.vd .smart-organize-btn svg:first-child { width:15px; height:15px; color:var(--green); }

/* dynamic.css */
.vd .verdant-overlay { position:absolute; inset: 0; z-index: 2100; background: rgba(31,28,24,.42); backdrop-filter: blur(2px); display:flex; align-items:center; justify-content:center; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.vd .verdant-overlay.open { opacity: 1; pointer-events: auto; }
.vd .verdant-panel { width:min(640px, 94vw); max-height: 86vh; overflow:auto; background: var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow: 0 22px 52px rgba(37,35,31,.18); padding: 20px; transform: translateY(12px) scale(.98); transition: transform .18s ease; }
.vd .verdant-overlay.open .verdant-panel { transform: translateY(0) scale(1); }
.vd .verdant-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.vd .verdant-head h2 { font: 500 24px 'Fraunces', serif; color: var(--text); }
.vd .verdant-close { border:1px solid var(--border); background: var(--surface2); border-radius:8px; width:30px; height:30px; cursor:pointer; color:var(--text); }
.vd .verdant-panel p { font: 400 13px 'DM Sans', sans-serif; color: var(--text-mid); line-height:1.5; margin-bottom:12px; }
.vd .verdant-actions { display:flex; gap:10px; justify-content:flex-end; }
.vd .lang-reload-panel { width:min(440px, 94vw); display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; padding:38px 32px; }
.vd .lang-reload-icon { width:52px; height:52px; border-radius:50%; background:var(--green-pale); color:var(--green); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.vd .lang-reload-icon svg { width:26px; height:26px; }
.vd .lang-reload-title { font:500 20px 'Fraunces', serif; color:var(--text); letter-spacing:-.3px; margin:0; }
.vd .lang-reload-body { font:400 13px/1.55 'DM Sans', sans-serif; color:var(--text-mid); margin:0; max-width:340px; }
.vd .lang-reload-btn { margin-top:8px; padding:9px 28px; background:var(--green); color:#fff; border:none; border-radius:8px; font:500 13px 'DM Sans', sans-serif; cursor:pointer; transition:all .12s; }
.vd .lang-reload-btn:hover { background:var(--accent); transform:translateY(-1px); }
.vd .lang-reload-btn:active { transform:scale(.98); }
.vd .verdant-btn { padding:8px 14px; border-radius:8px; border:1px solid var(--border); background: var(--surface2); color: var(--text); font: 500 12px 'DM Sans', sans-serif; cursor:pointer; }
.vd .verdant-btn.primary { background: var(--green); color:#fff; border-color: var(--green); }
.vd .email-item-main { display:flex; align-items:flex-start; gap:10px; width:100%; }
.vd .email-item { position:relative; }
.vd .email-item-inner { position:relative; padding-right:76px; flex:1; min-width:0; }
.vd .email-top { display:block; min-height:16px; margin-bottom:3px; }
.vd .email-sender { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%); }
.vd .email-time { position:absolute; right:18px; top:13px; width:72px; text-align:right; white-space:nowrap; font-variant-numeric: tabular-nums; letter-spacing:.01em; z-index:2; }
.vd .sender-avatar { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font:600 11px 'DM Sans', sans-serif; color:#fff; background: linear-gradient(135deg, var(--green-mid), var(--green-light)); overflow:hidden; }
.vd .sender-avatar img, .vd .meta-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.vd .sender-avatar.has-image, .vd .meta-avatar.has-image { background: var(--surface2); color: transparent; }
.vd .email-body-text pre { white-space: pre-wrap; word-break: break-word; background: var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 14px; }
.vd .action-menu { position:absolute; right:0; top:34px; width:190px; background: var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 26px rgba(0,0,0,.12); padding:6px; z-index:1300; }
.vd .action-menu button { width:100%; text-align:left; border:0; background:transparent; color:var(--text); padding:8px 10px; border-radius:8px; font:400 12px 'DM Sans', sans-serif; cursor:pointer; }
.vd .action-menu button:hover { background: var(--surface2); }
.vd .settings-grid { display:grid; gap:10px; margin-top:12px; }
.vd .settings-row { display:grid; grid-template-columns: 1fr 160px; align-items:center; gap:10px; }
.vd .settings-row input, .vd .settings-row select { height:34px; border-radius:8px; border:1px solid var(--border); background: var(--bg); padding:0 10px; font:400 12px 'DM Sans', sans-serif; -webkit-user-select:text; user-select:text; }
.vd .settings-switch { position:relative; padding-left:44px; min-height:24px; display:flex; align-items:center; gap:8px; font:400 12px 'DM Sans', sans-serif; color:var(--text); cursor:pointer; user-select:none; }
.vd .settings-switch input[type="checkbox"] { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.vd .settings-switch::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:34px; height:20px; background:var(--surface2); border:1px solid var(--border); border-radius:10px; transition:all .2s ease; box-sizing:border-box; }
.vd .settings-switch::after { content:''; position:absolute; left:2px; top:50%; transform:translateY(-50%); width:16px; height:16px; background:#fff; border-radius:50%; transition:all .2s ease; box-shadow:0 1px 3px rgba(0,0,0,.15); }
.vd .settings-switch:has(input:checked)::before { background:var(--green); border-color:var(--green); }
.vd .settings-switch:has(input:checked)::after { left:16px; }
.vd .settings-switch:has(input:focus-visible)::before { outline:2px solid var(--green-light); outline-offset:2px; }
.vd .colorscheme-options { display:flex; flex-direction:column; gap:10px; }
.vd .colorscheme-option { display:flex; align-items:center; gap:10px; cursor:pointer; font:400 12px 'DM Sans', sans-serif; color:var(--text); }
.vd .colorscheme-option input[type="radio"] { appearance:none; -webkit-appearance:none; width:18px; height:18px; border:2px solid var(--border); border-radius:50%; background:var(--surface2); position:relative; cursor:pointer; transition:all 0.15s ease; flex-shrink:0; }
.vd .colorscheme-option input[type="radio"]:checked { border-color:var(--green); background:var(--green-pale); }
.vd .colorscheme-option input[type="radio"]:checked::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:8px; height:8px; border-radius:50%; background:var(--green); }
.vd .colorscheme-option input[type="radio"]:hover { border-color:var(--green-muted); }
.vd .colorscheme-label { user-select:none; }
.vd .settings-tabs { display:flex; gap:8px; margin-top:10px; border-bottom:1px solid var(--border); padding-bottom:10px; }
.vd .settings-tab { border:1px solid var(--border); background: var(--surface2); color:var(--text-mid); border-radius:999px; padding:6px 12px; font:500 12px 'DM Sans', sans-serif; cursor:pointer; }
.vd .settings-tab.active { background: var(--green-pale); border-color: var(--green-muted); color: var(--green); }
.vd .settings-pane { display:none; margin-top:12px; }
.vd .settings-pane.active { display:grid; gap:10px; }
.vd .settings-card { border:1px solid var(--border); border-radius:10px; background: var(--bg); padding:12px; display:grid; gap:8px; }
.vd .settings-info-row { display:flex; justify-content:space-between; gap:12px; font:400 12px 'DM Sans', sans-serif; color:var(--text-mid); }
.vd .settings-info-row strong { color: var(--text); font-weight:500; }
.vd .settings-help { font:400 12px/1.5 'DM Sans', sans-serif; color:var(--text-mid); margin-top:2px; }
.vd .settings-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.vd .settings-danger { color:var(--settings-danger-color); border-color:var(--settings-danger-color-border); background: var(--surface3); }
.vd .settings-section-label { font: 500 10px 'DM Sans', sans-serif; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-muted); margin-top: 14px; margin-bottom: 4px; padding: 0 2px;}
.vd .settings-section-label:first-child { margin-top: 0; }
.vd .toast-wrap { position:absolute; top:12px; left:50%; transform: translateX(-50%); z-index:2400; display:grid; gap:8px; }
.vd .toast { min-width:220px; max-width:520px; padding:10px 14px; border-radius:10px; border:1px solid var(--border); background: var(--surface); color: var(--text); font:500 12px 'DM Sans', sans-serif; box-shadow:0 10px 28px rgba(0,0,0,.12); animation: toast-in .22s ease forwards; }
.vd .toast.info { border-color: var(--green-muted); }
.vd .toast.error { border-color: #c08d8d; color: #7a2d2d; }
@keyframes toast-in { from { opacity:0; transform: translateY(-14px);} to { opacity:1; transform: translateY(0);} }
.vd .suppress-anim .email-item { animation:none !important; }
.vd .email-list.list-switching { opacity:.58; transition:opacity .12s ease; pointer-events:none; }
.vd .email-list:not(.list-switching) { transition:opacity .16s ease; }
.vd #email-list .email-item.dust-out { animation:none !important; opacity:0; transition:opacity 0.15s ease-out; pointer-events:none; }
.vd .dust-layer { position:absolute; inset:0; pointer-events:none; z-index:3000; }
.vd .dust-particle { position:absolute; border-radius:50%; pointer-events:none; will-change:transform, opacity; }
.vd .pager { display:flex; gap:6px; justify-content:center; padding:10px 12px 14px; border-top:1px solid var(--border); background: var(--surface); }
.vd .pager button { border:1px solid var(--border); background: var(--surface2); color: var(--text); border-radius:8px; padding:6px 10px; cursor:pointer; font:500 12px 'DM Sans', sans-serif; }
.vd .pager button.active { background: var(--green); color:#fff; border-color: var(--green); }
.vd .list-fetch-indicator { padding:10px 14px; text-align:center; color:var(--text-muted); font:500 12px 'DM Sans', sans-serif; border-top:1px dashed var(--border); }
.vd .search-bar { position: relative; }
.vd .search-row { display:flex; align-items:stretch; margin-bottom:10px; }
.vd .search-row .search-bar { margin-bottom:0; flex:1; }
.vd .search-row .search-bar.has-deep-btn { border-top-right-radius:0; border-bottom-right-radius:0; }
.vd .deep-search-btn { display:inline-flex; align-items:center; border:1px solid var(--green-mid); border-left:none; background: var(--green-mid); color:#fff; border-radius:0 8px 8px 0; padding:0 14px; font:500 11px 'DM Sans', sans-serif; cursor:pointer; white-space:nowrap; }
.vd .deep-search-btn:disabled { opacity:.6; cursor:default; }
.vd .email-attachments { border:1px solid var(--border); border-radius:10px; background: var(--surface); padding:10px; margin-bottom:12px; }
.vd .email-attachments-title { font:600 12px 'DM Sans', sans-serif; color:var(--text-mid); margin-bottom:8px; }
.vd .email-attachment-list { display:grid; gap:6px; }
.vd .email-attachment-item { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--border); background: var(--white); border-radius:8px; padding:8px 10px; }
.vd .email-attachment-meta { min-width:0; display:grid; gap:2px; }
.vd .email-attachment-name { font:500 12px 'DM Sans', sans-serif; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vd .email-attachment-sub { font:400 11px 'DM Sans', sans-serif; color:var(--text-muted); }
.vd .email-attachment-download { border:1px solid var(--border); background: var(--surface2); color: var(--text); border-radius:8px; padding:5px 9px; font:500 11px 'DM Sans', sans-serif; cursor:pointer; }
.vd .attachment-download-modal { position:absolute; inset: 0; z-index: 2500; background: rgba(31,28,24,.18); pointer-events:none; }
.vd .attachment-download-card { position:absolute; right:14px; top:14px; width:min(340px, calc(100vw - 28px)); background: var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px; box-shadow: 0 16px 34px rgba(37,35,31,.2); display:flex; align-items:center; gap:10px; transform: translateX(120%); opacity:0; transition: transform .24s ease, opacity .24s ease; }
.vd .attachment-download-modal.open .attachment-download-card { transform: translateX(0); opacity:1; }
.vd .attachment-download-icon { width:18px; height:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--green); }
.vd .attachment-download-icon.is-spinning { border:2px solid var(--green-muted); border-top-color: var(--green); border-radius:50%; animation: verdant-spin .8s linear infinite; }
.vd .attachment-download-icon.is-success { border:0; animation:none; }
.vd .attachment-download-icon.is-success svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.vd .attachment-download-text { font:500 12px 'DM Sans', sans-serif; color: var(--text); }
@keyframes verdant-spin { to { transform: rotate(360deg); } }
.vd .sending-popup {
  position:absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(30,33,25,0.14);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.vd .sending-popup.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.vd .sending-popup .spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--green-muted);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: verdant-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.vd .sending-popup .text {
  font: 500 13px 'DM Sans', sans-serif;
  color: var(--text);
  white-space: nowrap;
}
.vd .sending-popup .cancel-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--text);
  font: 500 12px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}
.vd .sending-popup .cancel-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-muted);
  color: var(--green);
}
.vd.reading-pane-hidden .reading-pane { display: none !important; }
.vd.reading-pane-hidden .pane-resizer { display: none !important; }
.vd.reading-pane-hidden .email-list-pane { flex:1 1 auto !important; width:auto !important; min-width:0 !important; max-width:none !important; border-right:0 !important; }
.vd .unsubscribe-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  font: 500 12px 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.vd .unsubscribe-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-muted);
}
.vd .unsubscribe-btn.unsubscribed {
  color: var(--text-muted);
  cursor: default;
  opacity: .6;
}
.vd .unsubscribe-btn.unsubscribed:hover {
  background: transparent;
  border-color: var(--border);
}
.vd .unsubscribe-panel p {
  word-break: break-word;
}
.vd .icon-btn.active { background: var(--green-pale); color: var(--green); border:1px solid var(--green-muted); }
.vd .icon-btn.danger:hover { background:#f5dede !important; color:#8a2e2e !important; border:1px solid #d79f9f; }
.vd .compose-maximized { width:min(1100px, 96vw) !important; height:min(90vh, 920px) !important; display:flex !important; flex-direction:column !important; }
.vd .compose-maximized .modal-body { flex:1 !important; max-height:none !important; height:auto !important; overflow-y:auto; display:flex; flex-direction:column; }
.vd .compose-maximized .compose-editor { flex:1; min-height:0; max-height:none !important; height:100%; }
.vd .compose-maximized .modal-footer { flex-shrink:0; }
.vd #compose-max-btn { display:flex; align-items:center; justify-content:center; }
.vd #compose-max-btn svg { width:18px; height:18px; }
.vd .thread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 0 5px;
  height: 16px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font: 500 10px 'DM Sans', sans-serif;
  color: var(--text-muted);
  vertical-align: middle;
}
.vd .thread-loading {
  padding: 40px 32px;
  font: 400 13px 'DM Sans', sans-serif;
  color: var(--text-muted);
}
.vd .thread-participant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 16px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vd .thread-participant-label {
  font: 400 13px 'DM Sans', sans-serif;
  color: var(--text-mid);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vd .thread-message-total {
  font: 400 12px 'DM Sans', sans-serif;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.vd .thread-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vd .thread-bubble {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.12s;
}
.vd .thread-bubble:hover {
  border-color: var(--green-muted);
}
.vd .thread-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.vd .thread-bubble-header:hover {
  background: var(--surface);
}
.vd .thread-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 10px 'DM Sans', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  overflow: hidden;
}
.vd .thread-bubble-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vd .thread-bubble-avatar.has-image {
  background: var(--surface2);
}
.vd .thread-bubble-meta-collapsed {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  overflow: hidden;
}
.vd .thread-bubble-sender {
  font: 500 13px 'DM Sans', sans-serif;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-user-select: text;
  user-select: text;
}
.vd .thread-bubble-preview {
  font: 400 13px 'DM Sans', sans-serif;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.vd .thread-bubble-date {
  font: 400 11px 'DM Sans', sans-serif;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.vd .thread-bubble-attach-icon {
  font-size: 12px;
  flex-shrink: 0;
}
.vd .thread-bubble-meta-expanded {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vd .thread-bubble-to {
  font: 400 11px 'DM Sans', sans-serif;
  color: var(--text-muted);
  -webkit-user-select: text;
  user-select: text;
  cursor: pointer;
}
.vd .thread-bubble-to .rcpt-row { display:flex; gap:8px; align-items:baseline; line-height:1.7; }
.vd .thread-bubble-to .rcpt-label { font-weight:600; color:var(--text-muted); min-width:34px; flex-shrink:0; }
.vd .thread-bubble-to .rcpt-value { color:var(--text); word-break:break-word; }
.vd .thread-bubble-body {
  padding: 4px 16px 16px 54px;
  border-top: 1px solid var(--surface2);
}
.vd .thread-bubble-content, .vd .thread-bubble-content * {
  -webkit-user-select: text;
  user-select: text;
}
.vd .thread-bubble-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-mid);
  overflow-x: auto;
}
.vd .thread-bubble-actions {
  padding: 10px 16px 14px 54px;
  border-top: 1px solid var(--surface2);
}
.vd .thread-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text-mid);
  font: 500 12px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.12s;
}
.vd .thread-reply-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-muted);
  color: var(--green);
}
.vd .thread-bubble-attachments {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  max-width: 420px;
}
.vd .thread-attachments-label {
  font: 600 11px 'DM Sans', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.vd .thread-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  margin-bottom: 4px;
}
.vd .thread-attachment-item:last-child { margin-bottom: 0; }
.vd .thread-attachment-name {
  font: 400 12px 'DM Sans', sans-serif;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.vd .thread-attachment-dl {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 8px;
  font: 500 11px 'DM Sans', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.vd .thread-attachment-dl:hover {
  background: var(--green-pale);
  border-color: var(--green-muted);
  color: var(--green);
}
.vd .thread-attachment-dl:disabled { opacity: 0.6; cursor: default; }
.vd .thread-bubble.collapsed {
  background: var(--surface);
}
.vd .thread-bubble.expanded {
  background: var(--white);
  border-color: var(--green-muted);
}
.vd .settings-inbox-list {
  display: grid;
  gap: 6px;
}
.vd .settings-inbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.12s;
}
.vd .settings-inbox-item:hover {
  border-color: var(--green-muted);
}
.vd .settings-inbox-main {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.vd .settings-inbox-main strong {
  font: 500 13px 'DM Sans', sans-serif;
  color: var(--text);
}
.vd .settings-inbox-email {
  font: 400 11px 'DM Sans', sans-serif;
  color: var(--text-muted);
}
.vd .settings-inbox-provider {
  font: 400 11px 'DM Sans', sans-serif;
  color: var(--text-mid);
}
.vd .settings-inbox-actions {
  flex-shrink: 0;
}
.vd .settings-shortcut-list {
  display: grid;
  gap: 4px;
}
.vd .settings-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.vd .settings-shortcut-label {
  font: 400 12px 'DM Sans', sans-serif;
  color: var(--text);
  min-width: 0;
}
.vd .settings-shortcut-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vd .settings-shortcut-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font: 500 11px 'DM Sans', sans-serif;
  color: var(--text);
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}
.vd .settings-shortcut-key.listening {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green);
  animation: pulse-border 1s ease infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(50,140,80,.3); }
  50% { box-shadow: 0 0 0 4px rgba(50,140,80,.1); }
}
.vd .settings-shortcut-edit, .vd .settings-shortcut-unset {
  padding: 4px 8px;
  font-size: 11px;
  height: 26px;
  display: inline-flex;
  align-items: center;
}
.vd .settings-radio-group {
  display: grid;
  gap: 6px;
  margin-left: 26px;
}
.vd .settings-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 12px 'DM Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
}
.vd .settings-radio input[type="radio"] {
  accent-color: var(--green);
  margin: 0;
}
.vd .theme-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}
.vd .theme-tab {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 9px;
  color: var(--text-muted);
  font: 500 12px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color .22s ease, transform .22s ease;
}
.vd .theme-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: inherit;
  background: transparent;
  transform: scale(.94);
  opacity: 0;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease, background .22s ease, border-color .22s ease;
}
.vd .theme-tab:hover { color: var(--text); }
.vd .theme-tab.active {
  color: var(--green);
  transform: translateY(-1px);
}
.vd .theme-tab.active::before {
  border-color: var(--green-muted);
  background: var(--green-pale);
  box-shadow: 0 3px 10px rgba(50, 90, 55, .1);
  transform: scale(1);
  opacity: 1;
}
.vd .theme-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vd .theme-tab:has(input:focus-visible) {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}
.vd .theme-tab-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.vd .theme-tab-icon-light {
  border: 2px solid currentColor;
  border-radius: 50%;
}
.vd .theme-tab-icon-light::before, .vd .theme-tab-icon-light::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 50%;
}
.vd .theme-tab-icon-light::after { transform: rotate(90deg); }
.vd .theme-tab-icon-dark {
  border-radius: 50%;
  background: currentColor;
  overflow: hidden;
}
.vd .theme-tab-icon-dark::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  top: -3px;
  left: 4px;
  border-radius: 50%;
  background: var(--surface2);
  transition: background .22s ease;
}
@keyframes theme-switch {
  0% { filter: saturate(.8); }
  45% { filter: saturate(1.25); }
  100% { filter: saturate(1); }
}
.vd.theme-switching { animation: theme-switch .36s ease both; }
.vd .settings-text-size-card {
  display: grid;
  gap: 16px;
}
.vd .settings-text-size-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font: 400 12px 'DM Sans', sans-serif;
  color: var(--text-mid);
}
.vd .settings-text-size-heading strong {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.vd .settings-range-wrap {
  display: grid;
  gap: 8px;
}
.vd .settings-range {
  --range-position: 0%;
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  outline: none;
  cursor: grab;
  background: linear-gradient(to right, var(--green) var(--range-position), var(--surface2) var(--range-position));
  transition: background .22s ease;
}
.vd .settings-range:active { cursor: grabbing; }
.vd .settings-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(37, 60, 37, .24), 0 0 0 1px var(--green-muted);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.vd .settings-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(37, 60, 37, .24), 0 0 0 1px var(--green-muted);
}
.vd .settings-range:hover::-webkit-slider-thumb, .vd .settings-range:focus-visible::-webkit-slider-thumb { transform: scale(1.14); }
.vd .settings-range-labels {
  display: flex;
  justify-content: space-between;
  font: 400 10px 'DM Sans', sans-serif;
  color: var(--text-muted);
}
.vd[data-text-size="medium"] #root { zoom: 1.06; }
.vd[data-text-size="large"] #root { zoom: 1.12; }

/* contextmenu.css */
.vd .email-context-menu {
    position:absolute;
    z-index: 2300;
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(30, 33, 25, .18);
    padding: 6px;
    transform-origin: top left;
    animation: context-menu-in .14s cubic-bezier(.34, 1.56, .64, 1) forwards;
    -webkit-user-select: none;
    user-select: none;
}
@keyframes context-menu-in {
    from { opacity: 0; transform: scale(.96) translateY(-4px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.vd .email-context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-mid);
    font: 500 12px 'DM Sans', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background .1s, color .1s;
}
.vd .email-context-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.vd .email-context-item:hover { background: var(--surface2); color: var(--text); }
.vd .email-context-item.danger { color: var(--settings-danger-color); }
.vd .email-context-item.danger:hover { background: var(--surface2); color: var(--settings-danger-color); }
.vd .email-context-sep {
    height: 1px;
    background: var(--border);
    margin: 5px 8px;
    opacity: .5;
}
.vd .category-popup { position:absolute; z-index:1000; min-width:190px; padding:6px; border:1px solid var(--border); border-radius:10px; background:var(--white); box-shadow:var(--shadow-lg); }
.vd .category-popup-title { padding:6px 9px 5px; color:var(--text-muted); font-size:11px; }
.vd .category-popup-item { width:100%; display:flex; align-items:center; gap:8px; padding:8px 9px; border:0; border-radius:6px; background:transparent; color:var(--text); text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.vd .category-popup-item:hover { background:var(--surface2); }
.vd .category-popup-dot { width:8px; height:8px; border-radius:50%; background:var(--category-color); flex-shrink:0; }
