/* Finder cues: translucent sidebar, floating toolbar controls, dimensional folders. */
#directory-explorer {
  --window: #fff;
  --ink: #383b40;
  --muted: #899098;
  --line: #e8ebee;
  --select: #dceafa;
  --select-ink: #28639c;
  color-scheme: light;
  width: 100%;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
#directory-explorer * { box-sizing: border-box; }
#directory-explorer .dp-window { height: 478px; }
#directory-explorer button { font: inherit; color: inherit; cursor: pointer; }
#directory-explorer .dp-heading { gap: 12px; }
#directory-explorer .dp-view-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ffffffd9;
  border-radius: 20px;
  background: #ffffffc4;
  box-shadow: 0 4px 15px #20364d08;
}
#directory-explorer .dp-view-button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 27px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #80848a;
}
#directory-explorer .dp-view-button[aria-pressed="true"] { background: #e9ebee; color: #50555b; }
#directory-explorer .dp-view-button svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#directory-explorer .dp-interactive { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 0 0 17px 17px; }
#directory-explorer .dp-mono { color: var(--muted); font: 10px/1.5 "SF Mono", Menlo, monospace; }
#directory-explorer .dp-path { display: flex; flex: 0 0 auto; align-items: baseline; gap: 12px; padding: 6px 15px 12px; background: #fafbfbe8; border-bottom: 1px solid var(--line); }
#directory-explorer #dp-location-kind { flex: 0 0 auto; padding-top: 5px; }
#directory-explorer .dp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 1px; min-height: 28px; }
#directory-explorer .dp-crumb { border: 0; border-radius: 4px; padding: 4px 5px; background: none; font: 11px/1.5 "SF Mono", Menlo, monospace; }
#directory-explorer .dp-crumb:hover { background: #e8edf2; }
#directory-explorer .dp-crumb[aria-current] { color: #406d8c; background: #e6f1f8; }
#directory-explorer .dp-slash { margin: 0 1px; color: #aeb6bf; font-size: 11px; }
#directory-explorer .dp-panes { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); overflow: auto; scrollbar-width: thin; }
#directory-explorer .dp-pane { min-width: 0; overflow: auto; scrollbar-width: thin; }
#directory-explorer .dp-agent-pane { background: linear-gradient(135deg, #eaf1f6e6, #f5f8fbe8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#directory-explorer .dp-finder-pane { background: #fff; border-left: 1px solid #e5ebf0; }
#directory-explorer .dp-pane-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 15px 15px 10px; color: #6e757e; font-size: 11px; font-weight: 500; }
#directory-explorer .dp-tree { position: relative; isolation: isolate; padding: 4px 8px 12px; }
#directory-explorer .dp-selection { position: absolute; z-index: -1; top: 0; left: 8px; right: 8px; height: 27px; border-radius: 5px; background: var(--select); transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
#directory-explorer .dp-row { display: block; width: 100%; min-height: 27px; border: 0; border-radius: 5px; padding: 3px 7px; background: none; color: #515c69; font: 11px/21px "SF Mono", Menlo, monospace; white-space: pre; text-align: left; }
#directory-explorer .dp-row:hover { background: #cddbe829; }
#directory-explorer .dp-row[aria-current] { color: var(--select-ink); }
#directory-explorer .dp-prefix { color: #aab5c0; }
#directory-explorer .dp-agent-read { margin: 0 15px 16px; padding-top: 12px; border-top: 1px solid #dce5ed; }
#directory-explorer .dp-agent-read pre { margin: 7px 0 0; padding: 0; border: 0; background: transparent; color: #586573; font: 11px/1.7 "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
#directory-explorer .dp-list-heading { display: flex; justify-content: space-between; margin: 0 12px 4px; padding: 3px 8px 6px; border-bottom: 1px solid var(--line); color: #939aa2; font-size: 10px; }
#directory-explorer .dp-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); align-content: start; gap: 6px; padding: 8px 12px 20px; }
#directory-explorer .dp-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 3px 2px 8px; border: 0; border-radius: 8px; background: none; color: #3e444b; text-align: center; }
#directory-explorer .dp-item-icon { display: grid; place-items: center; width: 78px; height: 74px; border-radius: 10px; transition: background 180ms; }
#directory-explorer .dp-item svg { display: block; width: 58px; height: 51px; overflow: visible; filter: drop-shadow(0 2px 1.5px #213e4d26); }
#directory-explorer .dp-item .dp-file-icon { width: 43px; height: 49px; }
#directory-explorer .dp-item-name { max-width: 100%; padding: 2px 4px; border-radius: 4px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
#directory-explorer .dp-item-kind { display: none; color: #969da6; font-size: 10px; }
#directory-explorer .dp-item:hover .dp-item-icon { background: #eceef1; }
#directory-explorer .dp-item.is-target .dp-item-icon { background: #e5e7e9; }
#directory-explorer .dp-item.is-target .dp-item-name { color: #fff; background: #0866d8; }
#directory-explorer[data-view="list"] .dp-files { grid-template-columns: 1fr; gap: 2px; padding: 2px 8px 12px; }
#directory-explorer[data-view="list"] .dp-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 8px; min-height: 34px; border-radius: 5px; text-align: left; }
#directory-explorer[data-view="list"] .dp-item:nth-child(even) { background: #f4f5f7; }
#directory-explorer[data-view="list"] .dp-item-icon { width: 24px; height: 24px; background: none; }
#directory-explorer[data-view="list"] .dp-item svg { width: 24px; height: 22px; }
#directory-explorer[data-view="list"] .dp-item .dp-file-icon { width: 18px; height: 23px; }
#directory-explorer[data-view="list"] .dp-item-kind { display: inline; }
#directory-explorer[data-view="list"] .dp-item-name { font-size: 11px; }
#directory-explorer[data-view="list"] .dp-item:hover { background: #eaf1f8; }
#directory-explorer[data-view="list"] .dp-item.is-target { background: #dceafa; }
#directory-explorer[data-view="list"] .dp-item.is-target .dp-item-name { color: #185eac; background: none; }
#directory-explorer .dp-document { margin: 8px 18px 22px; padding: 22px 20px; border: 1px solid #e9edf1; border-radius: 5px; background: #fff; box-shadow: 0 5px 18px #2a435411; }
#directory-explorer .dp-document .dp-file-icon { display: block; width: 28px; height: 32px; }
#directory-explorer .dp-document-title { margin: 18px 0 12px; font-size: 15px; font-weight: 600; color: #47515d; }
#directory-explorer .dp-document p { margin: 0 0 12px; color: #7a838e; font: 12px/1.7 -apple-system, BlinkMacSystemFont, sans-serif; }
#directory-explorer .dp-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 29px 10px 15px; background: #f8fafbec; border-top: 1px solid var(--line); }
#directory-explorer .dp-status { max-width: 230px; font-size: 9px; }
#directory-explorer .dp-controls-group { display: flex; gap: 5px; align-items: center; }
#directory-explorer .dp-control { min-height: 28px; padding: 4px 10px; border: 1px solid #e3e7ec; border-radius: 7px; background: #ffffffdb; color: #667481; font-size: 11px; box-shadow: 0 1px 2px #00000004; }
#directory-explorer .dp-control:hover:not(:disabled) { background: #eaf3fa; }
#directory-explorer .dp-control:disabled { opacity: .4; cursor: default; }
#directory-explorer .dp-play { min-width: 58px; color: #487caa; }
#directory-explorer .dp-fallback { margin: 0; padding: 18px; overflow-x: auto; color: var(--ink); background: #fff; font: 12px/1.8 "SF Mono", Menlo, monospace; }
@container article-window (max-width: 540px) {
  #directory-explorer .dp-panes { grid-template-columns: 1fr; grid-template-rows: max-content minmax(230px, 1fr); }
  #directory-explorer .dp-pane { overflow: visible; }
  #directory-explorer .dp-finder-pane { border-left: 0; border-top: 1px solid var(--line); }
  #directory-explorer .dp-files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #directory-explorer .dp-item-icon { width: 68px; height: 66px; }
  #directory-explorer .dp-path { display: block; }
  #directory-explorer #dp-location-kind { margin-bottom: 4px; }
  #directory-explorer .dp-heading { gap: 9px; }
  #directory-explorer .dp-controls { gap: 6px; }
  #directory-explorer .dp-status { flex-basis: 100%; }
  #directory-explorer .dp-controls-group { margin-left: auto; }
}
@media (max-width: 600px) {
  #directory-explorer .dp-window { height: min(744px, calc(100svh - 60px)); }
}
@media (pointer: coarse) {
  #directory-explorer .dp-crumb, #directory-explorer .dp-control { min-height: 36px; }
  #directory-explorer .dp-view-button { width: 32px; height: 32px; }
  #directory-explorer .dp-row { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #directory-explorer *, #directory-explorer *::before, #directory-explorer *::after { transition: none !important; animation: none !important; }
}
#directory-explorer .dp-agent-pane .dp-pane-label {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eff5fae8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
