/* Folders of the rider's own (folders.js): the ⋮ button, its menu and the dialogs. Day and night through the shell. */
.folder-more {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--shell-muted); cursor: pointer; opacity: 0.55;
}
.folder-more:hover, .folder-more:focus-visible, .folder-more[aria-expanded="true"] { opacity: 1; background: var(--shell-hover); color: var(--shell-fg); }
@media (hover: none) { .folder-more { opacity: 1; } }

.folder-menu {
  position: fixed; z-index: 1000; min-width: 190px; padding: 4px; border-radius: var(--radius-sm); background: var(--shell-panel);
  box-shadow: var(--shadow-card);
}
.folder-menu button {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--shell-fg);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.folder-menu button:hover, .folder-menu button:focus-visible { background: var(--shell-hover); }

.folder-dialog {
  width: min(420px, calc(100vw - 32px)); padding: var(--space-6); border: 0; border-radius: var(--radius-lg); background: var(--shell-panel);
  color: var(--shell-fg); box-shadow: var(--shadow-card);
}
.folder-dialog::backdrop { background: color-mix(in srgb, var(--secondary) 50%, transparent); }
.folder-dialog h2 { margin: 0 0 14px; font: 700 22px/1.2 "Plus Jakarta Sans", sans-serif; }
.folder-dialog input[type="text"] {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--shell-fg); font: inherit; font-size: 14.5px;
}
.folder-list { display: flex; flex-direction: column; max-height: min(320px, 45vh); overflow: auto; padding: 4px; border-radius: var(--radius-sm); background: var(--shell-fill); }
.folder-list label {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px calc(8px + var(--depth, 0) * 18px);
  border-radius: var(--radius-sm); font-size: 14px; cursor: pointer;
}
.folder-list label:hover { background: var(--shell-hover); }
.folder-list input { margin: 0; accent-color: var(--ink); }
.folder-list label:first-child span { color: var(--shell-muted); }
.folder-new { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.folder-where { font-size: 12.5px; color: var(--shell-muted); }
.folder-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.folder-actions button {
  height: 38px; padding: 0 16px; border: 1px solid var(--shell-quiet-line); border-radius: var(--radius-sm); background: none;
  color: var(--shell-fg); font: inherit; font-weight: 600; cursor: pointer;
}
.folder-actions .folder-ok { border-color: var(--shell-dark); background: var(--shell-dark); color: var(--shell-on-dark); }
.folder-actions .folder-ok.danger { border-color: var(--error); background: var(--surface-muted); color: var(--error); }
.folder-text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }

.folder-dialog input[type="text"]:hover { border-color: var(--ink-muted); }
.folder-dialog input[type="text"]:focus { border-color: var(--ink); }
