#mail-app [hidden] { display: none; }
.drop.mv-compact { padding: 18px 24px; }
.drop.mv-compact .plus { display: none; }
.mv-ico { flex: none; vertical-align: -3px; }
.status { overflow-wrap: anywhere; }
.status:empty { display: none; }

.mv-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mv-file { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 3px; color: var(--fg-dim); font: inherit; font-size: 12px; padding: 4px 10px; cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-file:hover { color: var(--hl); border-color: var(--hl); }
.mv-file.on { color: var(--fg); border-color: var(--hl); border-left-width: 2px; }

.mv-enc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--fg-dim); margin-top: 14px; }
.mv-enc select, .mv-listbar select, .mv-listbar input { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 3px; color: var(--fg); font: inherit; font-size: 12px; padding: 7px 10px; }
.mv-enc select:focus, .mv-listbar select:focus, .mv-listbar input:focus { outline: none; border-color: var(--hl); }

.mv-browser { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mv-browser.with-folders { grid-template-columns: 210px minmax(0, 1fr); }
.mv-folders { border: 1px solid var(--rule); border-radius: 3px; background: var(--bg-2); max-height: 372px; overflow: auto; padding: 4px 0; }
.mv-folder { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: none; border-left: 2px solid transparent; color: var(--fg-dim); font: inherit; font-size: 12px; padding: 5px 8px; cursor: pointer; text-align: left; }
.mv-folder:hover { color: var(--hl); }
.mv-folder.on { color: var(--fg); border-left-color: var(--hl); background: var(--bg-3); }
.mv-folder.empty { color: var(--fg-muted); }
.mv-folder .mv-ico { color: var(--hl); }
.mv-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-fcount { color: var(--fg-muted); font-size: 11px; }

.mv-listwrap { min-width: 0; }
.mv-listbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mv-listbar input { flex: 1; min-width: 150px; }
.mv-count { color: var(--fg-muted); font-size: 11px; white-space: nowrap; margin-left: auto; }
.mv-list { position: relative; height: 322px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg-2); }
.mv-list:focus-visible { outline: 1px solid var(--hl); outline-offset: 1px; }
.mv-spacer { width: 1px; }
.mv-row { position: absolute; left: 0; right: 0; height: 46px; padding: 5px 10px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; font-size: 12px; }
.mv-row:hover { background: var(--bg-3); }
.mv-row.on { background: var(--bg-3); border-left-color: var(--hl); }
.mv-r1, .mv-r2 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mv-rs { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); font-weight: 600; font-size: 13px; }
.mv-rd { flex: none; color: var(--fg-muted); font-size: 11px; white-space: nowrap; }
.mv-rf { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-dim); }
.mv-rl { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); font-size: 11px; }
.mv-rclip { flex: none; color: var(--hl); line-height: 0; align-self: center; }
.mv-rclip .mv-ico { width: 13px; height: 13px; }

.mv-message { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 18px; }
.mv-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--rule); border-radius: 3px; color: var(--fg-dim); font: inherit; font-size: 12px; padding: 5px 10px; cursor: pointer; margin-bottom: 12px; max-width: 100%; }
.mv-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-back:hover { color: var(--hl); border-color: var(--hl); }
.mv-subject { font-size: 18px; font-weight: 700; margin: 0 0 12px; overflow-wrap: anywhere; line-height: 1.35; }
.mv-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0 0 14px; font-size: 13px; }
.mv-meta dt { color: var(--fg-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.mv-meta dd { margin: 0; color: var(--fg-dim); overflow-wrap: anywhere; }
.mv-link { background: none; border: none; padding: 0; font: inherit; color: var(--hl); cursor: pointer; }
.mv-link:hover { color: var(--accent); }

.mv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mv-actions:empty { display: none; }
.mv-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--rule); border-radius: 3px; color: var(--fg-dim); font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; }
.mv-btn:hover { color: var(--hl); border-color: var(--hl); }
.mv-btn:disabled, .mv-mini:disabled, .files-head .act:disabled { opacity: 0.45; cursor: default; }

.mv-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); }
.mv-tabs:empty { display: none; }
.mv-tab { background: none; border: 1px solid transparent; border-bottom: none; border-radius: 3px 3px 0 0; color: var(--fg-muted); font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; margin-bottom: -1px; }
.mv-tab:hover { color: var(--hl); }
.mv-tab.on { color: var(--fg); border-color: var(--rule); background: var(--bg-2); border-bottom: 1px solid var(--bg-2); }
.mv-notice { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--fg-dim); background: var(--bg-2); border: 1px solid var(--rule); border-top: none; border-left: 2px solid var(--ok); padding: 7px 11px; }
.mv-notice .mv-ico { color: var(--ok); margin-top: 2px; }
.mv-frame { display: block; width: 100%; height: 520px; min-height: 160px; border: 1px solid var(--rule); border-top: none; border-radius: 0 0 3px 3px; background: #fff; resize: vertical; }
.mv-text { margin: 0; padding: 14px; border: 1px solid var(--rule); border-top: none; border-radius: 0 0 3px 3px; background: var(--bg-2); color: var(--fg); font: inherit; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 640px; overflow: auto; }
.mv-empty { color: var(--fg-muted); font-size: 12px; margin: 12px 0; }

.mv-atts .frow { grid-template-columns: 20px minmax(0, 1fr) max-content max-content; }
.mv-atts .frow .ico { line-height: 0; }
.mv-tag { margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; }
.mv-attacts { display: flex; gap: 6px; }
.mv-mini { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--rule); border-radius: 3px; color: var(--fg-dim); font: inherit; font-size: 11px; padding: 3px 8px; cursor: pointer; }
.mv-mini:hover { color: var(--hl); border-color: var(--hl); }
.mv-mini .mv-ico { width: 13px; height: 13px; }
.mv-btn:focus-visible, .mv-mini:focus-visible, .mv-tab:focus-visible, .mv-folder:focus-visible, .mv-file:focus-visible, .mv-back:focus-visible, .mv-link:focus-visible { outline: 1px solid var(--hl); outline-offset: 1px; }

@media (max-width: 640px) {
  .mv-browser.with-folders { grid-template-columns: minmax(0, 1fr); }
  .mv-folders { max-height: 170px; }
  .mv-atts .frow { grid-template-columns: 20px minmax(0, 1fr) max-content; }
  .mv-atts .frow .sz { display: none; }
  .mv-mini.mv-dl span { display: none; }
  .mv-frame { height: 440px; }
}
