/* Настройки, сейф, экран пароля */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.card h3 { font-size: 14px; margin: 10px 0 4px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row > .grow { flex: 1; min-width: 140px; }
.field-label { width: 110px; color: var(--muted); font-size: 13px; }
details.provider { border-top: 1px solid var(--line); padding: 6px 0; }
details.provider > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.state-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.state-dot.on { background: #34a853; }
.meter { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.meter-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meter-line span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.log { max-height: 180px; overflow: auto; background: var(--side); border-radius: 8px; padding: 8px; font: 11px ui-monospace, monospace; white-space: pre-wrap; }
.qr { display: block; width: min(300px, 100%); margin: 8px auto; border-radius: 10px; background: #fff; padding: 8px; }
.link-text { word-break: break-all; font: 12px ui-monospace, monospace; background: var(--side); border-radius: 8px; padding: 8px; user-select: all; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.doc-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.doc-card:hover { border-color: var(--accent); }
.doc-card small { display: block; color: var(--muted); }
.secret { min-width: 180px; text-align: left; font-family: ui-monospace, monospace; background: var(--side); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; white-space: pre-wrap; }
.secret.hiddenvalue { filter: blur(3px); letter-spacing: 3px; }
.recovery-code { font: 17px ui-monospace, monospace; user-select: all; background: var(--side); border-radius: 10px; padding: 14px; text-align: center; word-spacing: 6px; word-break: break-all; }
.doc-preview { width: 100%; height: 65vh; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #fff; }
.doc-preview.blurred { filter: blur(14px); pointer-events: none; }
#view-vault { user-select: none; }
#view-vault input, #view-vault textarea, .recovery-code { user-select: text; }
#lock-screen { position: fixed; inset: 0; z-index: 25; background: var(--bg); display: grid; place-content: center; padding: 20px; overflow: auto; }
#lock-screen .card { max-width: 520px; }
.vault-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; overflow-wrap: anywhere; }
.vault-card .icon { color: var(--accent); }
#vault-name { margin: 6px 0; font-size: 18px; overflow-wrap: anywhere; }
#vault-removed { margin-top: 14px; }
#vault-removed summary { cursor: pointer; color: var(--muted); }

/* Сейф: плитки папок, карточки с размытым превью, просмотр документа */
.vbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.vbar h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.vbar h2 .icon { color: var(--accent); }
.vtools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vcrumbs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 160px; flex-wrap: wrap; color: var(--muted); }
.vcrumb { background: none; border: 0; border-radius: 8px; padding: 4px 8px; font-size: 14px; color: var(--text); }
.vcrumb:hover, .vcrumb.drop { background: var(--hover); outline: 2px solid var(--accent); outline-offset: -2px; }
.vsearch { width: min(260px, 100%); border-radius: 20px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 18px; }
.vfolder { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.vfolder > .icon { width: 34px; height: 34px; color: #e6a23c; }
.vfolder:hover, .vfolder.drop { border-color: var(--accent); }
.vfolder.drop { background: #1e96eb14; }
.vfolder-name { font-weight: 600; overflow-wrap: anywhere; }
.vfolder small, .vdoc small { color: var(--muted); }
.vfolder-tool { position: absolute; top: 6px; width: 28px; height: 28px; opacity: 0; transition: opacity .15s; }
.vfolder-tool:first-of-type { right: 38px; }
.vfolder-tool.danger { right: 6px; }
.vfolder:hover .vfolder-tool, .vfolder:focus-within .vfolder-tool { opacity: 1; }
@media (hover: none) { .vfolder-tool { opacity: 1; } }
.vdoc { display: flex; flex-direction: column; gap: 3px; padding: 8px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.vdoc:hover { border-color: var(--accent); box-shadow: 0 4px 16px #0002; }
.vdoc-title { font-weight: 600; padding: 4px 4px 0; overflow-wrap: anywhere; }
.vdoc small { padding: 0 4px 4px; }
.vthumb { position: relative; display: grid; place-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #1e96eb22, #8a63d233); }
.vthumb-icon { color: var(--accent); opacity: .8; }
.vthumb-icon .icon { width: 34px; height: 34px; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(9px) saturate(.85); transform: scale(1.15); }
.vthumb.ready .vthumb-icon { display: none; }
.vempty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 10px; color: var(--muted); text-align: center; }
.vempty .icon { width: 40px; height: 40px; opacity: .5; }
.vsettings summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.vview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .vview { grid-template-columns: minmax(0, 1fr); } }
.vstage { position: relative; min-height: 220px; border-radius: 16px; overflow: hidden; background: var(--side); border: 1px solid var(--line); transition: filter .25s; }
.vstage.blurred { filter: blur(14px); pointer-events: none; user-select: none; }
.vstage .vthumb { aspect-ratio: 4 / 3; border-radius: 0; }
.vstage .vthumb img { filter: none; transform: none; object-fit: contain; }
.vfull { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.vstage .pdf-viewer { height: 70vh; }
.vinfo h2 { display: flex; align-items: center; gap: 6px; font-size: 18px; overflow-wrap: anywhere; }
.vrename { width: 28px; height: 28px; }
.vinfo .secret { flex: 1; }
.vsettings { margin-top: 18px; }
