/* Explorer enhancements share the established cream/orange Vault palette. */
#files {
  min-height: 320px;
  align-content: start;
  padding: 12px 12px 72px;
  margin: 4px -12px 0;
  border-radius: 18px;
  touch-action: pan-y pinch-zoom;
}
#files:focus-visible { outline: 2px solid #5abd79; outline-offset: 3px; }
#files .folder-item > .file-select { position: relative; z-index: 3; align-self: start; justify-self: start; }
#files[data-view=icons] .folder-open { padding-top: 28px; }
#files[data-view=list] .folder-open { grid-area: 1 / 2 / 2 / 4; padding: 3px; }
#files[data-view=list] .folder-controls { position: static; grid-area: 1 / 5; justify-self: end; }
#files .file-select { accent-color: #5ac27b; cursor: pointer; }
#files .file-item.is-selected { border-color: #6cc688; background: linear-gradient(150deg, #dff6e6, #c3edd0); box-shadow: 0 0 0 1px #67cb8745; }
#files .folder-controls { z-index: 3; }
.explorer-parent-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 12px 15px;
  color: #317045;
  border: 1px dashed #93c8a4;
  border-radius: 12px;
  background: #e6f8ec99;
  text-align: left;
}
.explorer-parent-drop > span { font-size: 24px; line-height: 1; }
.explorer-parent-drop small { margin-left: auto; color: #967251; font-size: .72rem; font-weight: 450; }
.explorer-parent-drop:hover { background: #ccf0d7; border-color: #68c084; }
.explorer-parent-drop.explorer-drop-target { background: #afe7c1; border-color: #51b470; outline: 2px solid #74cd90; }
.file-menu { background: linear-gradient(155deg, #d2f1dc, #a6e5ba); border-color: #86cc9c; box-shadow: inset 0 1px #eefaf2, 0 14px 35px #2f5a3d29; padding: 6px; }
.file-menu button { padding: 9px 13px; min-height: 38px; border-radius: 7px; font-size: .86rem; }
.file-menu button:hover, .file-menu button:focus-visible { background: #ebf9ef; color: #2f6f43; }
.file-menu button:disabled { opacity: .45; }
.explorer-move-dialog h2 { overflow-wrap: anywhere; }
.explorer-move-dialog label { display: grid; gap: 9px; margin: 15px 0; }
.explorer-move-dialog select { max-width: 100%; }
.explorer-preview-notice { padding: 8px 16px; text-align: center; font: 600 12px/1.5 system-ui,sans-serif; letter-spacing: .03em; color: #356c47; background: #c6eed3; border-bottom: 1px solid #9fd6b1; }
@media (max-width: 600px) {
  #files { min-height: 290px; padding-bottom: 90px; }
  .explorer-parent-drop { flex-wrap: wrap; padding: 10px 12px; }
  .explorer-parent-drop small { margin-left: 31px; flex-basis: 100%; }
  #files[data-view=list] .folder-controls { grid-area: 1 / 4 / 3; }
  #files[data-view=list] .folder-open { grid-area: 1 / 2 / 3 / 4; }
}
