:root { color-scheme: light dark; font-family: system-ui, sans-serif; --accent: #6386f7; }
* { box-sizing: border-box; }
body { margin: 0; background: Canvas; color: CanvasText; }
#folder-list { height: 100vh; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
header { flex: none; min-width: 0; }
h1 { margin: 0; font-size: 22px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#children { flex: 1; min-height: 0; min-width: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.child { flex: none; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: color-mix(in srgb, CanvasText 4%, Canvas); color: CanvasText; font: inherit; text-align: left; cursor: pointer; }
.child:hover { border-color: var(--accent); background: color-mix(in srgb, Canvas 90%, var(--accent)); }
.child:focus-visible, #folder-list:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.name { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.empty { margin: 0; padding: 8px 0; color: color-mix(in srgb, CanvasText 60%, Canvas); font-size: 14px; }
#folder-list[data-presentation="compact"] { padding: 10px; gap: 8px; }
#folder-list[data-presentation="compact"] h1 { font-size: 16px; }
#folder-list[data-presentation="compact"] .child { min-height: 32px; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; padding: 5px 6px; border-radius: 6px; }
#folder-list[data-presentation="compact"] .icon { width: 18px; height: 18px; }
#folder-list[data-presentation="compact"] .name,
#folder-list[data-presentation="compact"] .empty { font-size: 12px; }
