/* DP Mail - Vault drive (see vault-addon js). */
.topnav .dpm-vt-nav { cursor: pointer; }
.dpm-vt-attach, .att-card .dpm-vt-btn {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; cursor: pointer;
  font: 500 12.5px/1 var(--font-ui, system-ui, sans-serif); color: var(--text);
}
.dpm-vt-attach { border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; }
.dpm-vt-attach:hover { background: var(--hover, rgba(127,127,127,.12)); }
.att-card .dpm-vt-btn { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 9px; align-self: stretch; }
.att-card .dpm-vt-btn:hover { background: var(--hover, rgba(127,127,127,.08)); }
html.dpm-compact .att-card .dpm-vt-btn span { display: none; }
@media (pointer: coarse) { html.dpm-compact .att-card .dpm-vt-btn span { display: inline; } }

.dpm-vt-veil { position: fixed; inset: 0; z-index: 110; background: #0a142266; display: flex; align-items: center; justify-content: center; }
.dpm-vt-veil.dpm-vt-sheetveil { z-index: 125; align-items: flex-end; }
@media (min-width: 640px) { .dpm-vt-veil.dpm-vt-sheetveil { align-items: center; } }
.dpm-vt-win { width: min(820px, 100%); height: min(640px, 100%); display: flex; flex-direction: column; background: var(--panel, #fff); color: var(--text); border-radius: 14px; box-shadow: 0 20px 60px #0f192866; overflow: hidden; position: relative; }
@media (max-width: 639px) { .dpm-vt-win { height: 100%; border-radius: 0; } }
.dpm-vt-win.drop::after { content: 'Drop files to upload here'; position: absolute; inset: 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent, #2563eb); border-radius: 12px; background: rgba(37,99,235,.08); font-weight: 600; font-size: 16px; pointer-events: none; }
.dpm-vt-drive.busy .dpm-vt-list { opacity: .55; pointer-events: none; }
.dpm-vt-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.dpm-vt-title { font-size: 18px; font-weight: 600; flex: none; }
.dpm-vt-who { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpm-vt-x { border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.dpm-vt-x:hover { background: var(--hover, rgba(127,127,127,.12)); }
.dpm-vt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 12px; font-size: 13.5px; }
.dpm-vt-crumb { border: 0; background: transparent; color: var(--accent, #2563eb); cursor: pointer; padding: 4px 6px; border-radius: 6px; font: inherit; }
.dpm-vt-crumb:hover { background: var(--hover, rgba(127,127,127,.12)); }
.dpm-vt-sep { color: var(--muted); }
.dpm-vt-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 10px; border-bottom: 1px solid var(--line); }
.dpm-vt-tools .btn { height: 30px; padding: 0 12px; }
.dpm-vt-dis { margin-left: auto; }
.dpm-vt-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dpm-vt-empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.dpm-vt-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 46px; }
.dpm-vt-row:hover, .dpm-vt-row:focus-visible { background: var(--hover, rgba(127,127,127,.08)); outline: 0; }
.dpm-vt-ic { display: inline-flex; flex: none; }
.dpm-vt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.dpm-vt-row.dir .dpm-vt-name { font-weight: 600; }
.dpm-vt-meta { flex: none; color: var(--muted); font-size: 12.5px; }
.dpm-vt-more { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 20px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.dpm-vt-more:hover { background: var(--hover, rgba(127,127,127,.15)); }
.dpm-vt-cb { width: 18px; height: 18px; flex: none; }
.dpm-vt-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); min-height: 20px; }
.dpm-vt-note { flex: 1; font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dpm-vt-foot .btn { height: 34px; }
@media (max-width: 639px) { .dpm-vt-meta { display: none; } }

.dpm-vt-sheet { width: min(440px, 100%); background: var(--panel, #fff); color: var(--text); border-radius: 16px 16px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px #0f192840; }
@media (min-width: 640px) { .dpm-vt-sheet { border-radius: 14px; } }
.dpm-vt-sheet h3 { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.dpm-vt-sheet p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dpm-vt-linkbox { width: 100%; box-sizing: border-box; height: 38px; margin: 0 0 12px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg, transparent); color: var(--text); font: inherit; font-size: 14px; }
.dpm-vt-openlink { display: flex; justify-content: center; align-items: center; height: 40px; margin: 0 0 10px; text-decoration: none; }
.dpm-vt-acts { display: flex; flex-direction: column; gap: 8px; }
.dpm-vt-acts .btn { height: 42px; font-size: 15px; justify-content: center; }
@media (min-width: 640px) { .dpm-vt-acts { flex-direction: row-reverse; flex-wrap: wrap; } .dpm-vt-acts .btn { height: 34px; font-size: 14px; } }

.dpm-vt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 140; max-width: min(92vw, 520px); background: #0f1a2b; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 30px #0006; transition: opacity .3s; }
.dpm-vt-toast.bad { background: #912018; }
.dpm-vt-toast.out { opacity: 0; }
html.dpm-vt-open body { overflow: hidden; }

.dpm-vt-sidename { display: inline-flex; align-items: center; gap: 8px; }
.dpm-vt-sidename svg { width: 16px; height: 16px; flex: none; }

.att-card .dpm-vt-edit { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; cursor: pointer; font: 500 12.5px/1 var(--font-ui, system-ui, sans-serif); color: var(--text); border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 9px; align-self: stretch; }
.att-card .dpm-vt-edit:hover { background: var(--hover, rgba(127,127,127,.08)); }
html.dpm-compact .att-card .dpm-vt-edit span { display: none; }
@media (pointer: coarse) { html.dpm-compact .att-card .dpm-vt-edit span { display: inline; } }
.dpm-vt-bar { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.dpm-vt-barrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px 6px 10px; border: 1px solid #b9cdf3; background: #eef3fd; border-radius: 10px; font-size: 13px; }
.dpm-vt-barrow .btn { height: 26px; padding: 0 10px; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; }
.dpm-vt-barname { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dpm-vt-baric { display: inline-flex; }
@media (prefers-color-scheme: dark) { .dpm-vt-barrow { background: rgba(60,110,220,.16); border-color: rgba(90,140,240,.5); } }
:root[data-theme="dark"] .dpm-vt-barrow { background: rgba(60,110,220,.16); border-color: rgba(90,140,240,.5); }

.dpm-vt-quota { margin: 4px 8px 0; padding: 6px 8px; font-size: 12px; color: var(--muted); }
.dpm-vt-qbar { height: 5px; margin-top: 5px; border-radius: 3px; background: var(--line, rgba(127,127,127,.25)); overflow: hidden; }
.dpm-vt-qbar i { display: block; height: 100%; width: 0; background: var(--accent, #2563eb); border-radius: 3px; transition: width .3s; }
.dpm-vt-quota.warn .dpm-vt-qbar i { background: #d97706; }
.dpm-vt-quota.full .dpm-vt-qbar i { background: #c0362c; }

/* Drive sits at the bottom of the sidebar, directly above the Mailbox storage card */
.dpm-vt-side { margin-top: auto; }
.dpm-vt-side + .quota { margin-top: 12px; }

.dpm-vt-bar{height:8px;border-radius:4px;background:rgba(128,128,128,.25);overflow:hidden;margin:12px 0}.dpm-vt-bar i{display:block;height:100%;width:0;background:#2e7d32;transition:width .4s}
