/* Free file manager for authors (/author-file-manager/, 2026-11-09) */
.fm-main { max-width: 1080px; }
.fm { padding: 14px; }
.fm-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fm-top .btn { margin: 0; }
#fm-search { flex: 1 1 220px; padding: 11px 12px; border-radius: 9px; border: 1px solid #3a3a3a; background: #0f0f0f; color: var(--text); font-size: 16px; }
.fm-body { display: grid; grid-template-columns: 220px 1fr; gap: 14px; margin-top: 14px; }
.fm-folders { display: flex; flex-direction: column; gap: 4px; }
.fm-folders button { display: flex; justify-content: space-between; gap: 8px; text-align: left; background: transparent; color: var(--text);
  border: 1px solid transparent; border-radius: 9px; padding: 9px 10px; font-size: 15px; cursor: pointer; }
.fm-folders button:hover { border-color: var(--line); }
.fm-folders button.on { background: var(--card); border-color: var(--gold); color: var(--gold-soft); }
.fm-folders .n { color: var(--muted); font-size: 13px; }
.fm-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fm-head h2 { margin: 0; font-size: 20px; }
.fm-drop { margin: 10px 0; padding: 16px; border: 1px dashed #4a4a4a; border-radius: 12px; color: var(--muted); text-align: center; font-size: 15px; }
.fm-drop.over { border-color: var(--gold); color: var(--gold-soft); background: #1d1806; }
.fm-list { list-style: none; padding: 0; margin: 0; }
.fm-list li { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.fm-ico { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--card); display: grid; place-items: center; font-size: 11px;
  font-weight: 700; color: var(--gold-soft); overflow: hidden; }
.fm-ico img { width: 100%; height: 100%; object-fit: cover; }
.fm-meta { flex: 1; min-width: 0; }
.fm-name { display: block; color: var(--text); background: none; border: 0; padding: 0; font-size: 16px; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fm-name:hover { color: var(--gold-soft); }
.fm-sub { color: var(--muted); font-size: 13px; }
.fm-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.fm-acts button, .fm-acts a { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 9px;
  font-size: 13px; cursor: pointer; text-decoration: none; }
.fm-acts button:hover, .fm-acts a:hover { border-color: var(--gold); color: var(--gold-soft); }
.fm-acts a.check { border-color: #5a4a14; color: var(--gold-soft); }
.fm-acts select { background: #0f0f0f; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px; font-size: 13px; max-width: 120px; }
.fm-empty { color: var(--muted); padding: 14px 6px; }
.fm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fm-small { padding: 7px 12px; font-size: 14px; margin: 0 0 0 6px; }
.fm-dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 16px; width: min(760px, 94vw); }
.fm-dialog::backdrop { background: rgba(0,0,0,.7); }
.fm-note-form input, .fm-note-form textarea { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #3a3a3a; background: #0f0f0f;
  color: var(--text); font: inherit; font-size: 16px; margin-bottom: 10px; }
.fm-note-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-viewer { width: min(1000px, 96vw); height: 88vh; }
.fm-view-bar { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.fm-view-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fm-view-body { height: calc(100% - 50px); overflow: auto; }
#fm-view-body img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#fm-view-body iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 8px; }
#fm-view-body pre { white-space: pre-wrap; font-size: 15px; }
@media (max-width: 700px) {
  .fm-body { grid-template-columns: 1fr; }
  .fm-folders { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .fm-folders button { flex: none; }
  .fm-list li { flex-wrap: wrap; }
  .fm-acts { width: 100%; justify-content: flex-start; padding-left: 48px; }
}
