/* ════ VAULT ════ */
#vault-screen { background: var(--bg); animation: slideUp .28s ease; }

.v-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 54px 18px 14px;
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.v-title { font-size: 20px; font-weight: 700; }

.lock-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--orange-light);
}
.lock-btn svg { width: 15px; height: 15px; }
.lock-btn:active { background: #fde0c4; }

/* Tabs */
.v-tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 10px;
  overflow-x: auto;
}
.v-tabs::-webkit-scrollbar { display: none; }

.vtab {
  all: unset;
  cursor: pointer;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.vtab.active { color: var(--orange); border-bottom-color: var(--orange); }

.bdg {
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Body & panels */
.v-body { flex: 1; overflow-y: auto; padding: 14px; }
.v-body::-webkit-scrollbar { width: 3px; }
.v-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 2px; }

.vpanel { display: none; }
.vpanel.active { display: block; }

/* Add strip */
.add-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity .1s;
}
.add-strip:active { opacity: .75; }
.add-strip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.add-strip-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.add-strip-ic svg { width: 18px; height: 18px; }
.add-strip-t { font-size: 15px; font-weight: 600; }
.add-strip-s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Grid */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

.fcard {
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e5e5ea;
}
.fcard img, .fcard video { width: 100%; height: 100%; object-fit: cover; display: block; }

.fcard-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}
.fcard:hover .fcard-del,
.show-del .fcard-del { opacity: 1; }
.fcard-del svg { width: 11px; height: 11px; }

.fcard-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  padding: 8px;
}
.fcard-file svg { width: 28px; height: 28px; color: #aeaeb2; }

.fcard-fn {
  font-size: 9px;
  color: #636366;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
  max-height: 36px;
  overflow: hidden;
}

.vid-lbl {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,.55);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
  color: white;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ════ SELECTION MODE ════ */
.sel-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: var(--btn-shadow);
  gap: 8px;
}
.sel-bar.visible { display: flex; }
.sel-bar-info { font-size: 14px; font-weight: 600; color: var(--text-dim); flex: 1; }
.sel-bar-info span { color: var(--orange); }

.sel-actions { display: flex; gap: 8px; }

.sel-act-btn {
  all: unset;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .1s;
}
.sel-act-btn:active { opacity: .7; }
.sel-act-btn.restore { background: #e8f5e9; color: #2e7d32; }
.sel-act-btn.delete  { background: #fff0f0; color: #e05555; }
.sel-act-btn svg { width: 14px; height: 14px; }

.sel-toggle-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--orange-light);
  margin-left: auto;
  transition: opacity .1s;
}
.sel-toggle-btn:active { opacity: .7; }
.sel-toggle-btn svg { width: 14px; height: 14px; }

.add-and-sel {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}
.add-and-sel .add-strip { flex: 1; margin-bottom: 0; }

/* Card checkbox overlay */
.fcard.sel-mode { cursor: default; }
.fcard.sel-mode img,
.fcard.sel-mode video { filter: brightness(0.85); }
.fcard.sel-mode.selected img,
.fcard.sel-mode.selected video { filter: brightness(0.65); }

.fcard-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid white;
  background: rgba(0,0,0,.3);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  z-index: 5;
}
.sel-mode .fcard-check { display: flex; }
.selected .fcard-check { background: var(--orange); border-color: var(--orange); }
.fcard-check svg { width: 11px; height: 11px; color: white; opacity: 0; transition: opacity .1s; }
.selected .fcard-check svg { opacity: 1; }

/* Gallery note */
.gallery-note {
  background: #fff8f0;
  border: 1.5px solid #ffd0a0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gallery-note svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.gallery-note-text { font-size: 12px; color: #7a5c3a; line-height: 1.5; }
.gallery-note-text strong { color: var(--orange); }
.gallery-note.hidden { display: none; }

/* Empty */
.empty { text-align: center; padding: 52px 24px; }
.empty svg { width: 52px; height: 52px; color: #c7c7cc; margin: 0 auto 16px; display: block; }
.empty-t { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.empty-d { font-size: 14px; color: var(--text-dim); }

/* ════ SETTINGS ════ */
.slabel { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); padding: 0 4px; margin-bottom: 8px; margin-top: 2px; }

.scard {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--btn-shadow);
}

.srow {
  display: flex;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  cursor: pointer;
  gap: 12px;
  transition: opacity .1s;
}
.srow:last-child { border-bottom: none; }
.srow:active { opacity: .6; }

.srow-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.srow-ic svg { width: 18px; height: 18px; }
.srow-ic.or { background: var(--orange-light); color: var(--orange); }
.srow-ic.rd { background: #fff0f0; color: #e05555; }

.srow-info { flex: 1; }
.srow-t { font-size: 15px; font-weight: 500; }
.srow-d { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.srow-t.red { color: #e05555; }

.srow-arr { color: #c7c7cc; }
.srow-arr svg { width: 14px; height: 14px; }
