html[data-argus-theme] .app-frame:has(.claude-canvas-plain) .sidebar.project-files-drawer {
  position: fixed;
  z-index: 24;
  inset: 0 auto 0 86px;
  transform: none;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 98px));
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-r-3);
  background: var(--ref-glass);
  color: var(--ref-ink);
  box-shadow: var(--ref-shadow);
  backdrop-filter: blur(18px);
  font: 13px/1.4 var(--ref-f-ui);
}
body:has(.sidebar.project-files-drawer) > .uiopt-prop-pop {
  visibility: hidden;
}
.project-files-drawer button,
.project-files-drawer summary {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.project-files-drawer :is(summary,button)::-webkit-details-marker { display: none; }
.project-files-drawer summary { list-style: none; }
.project-files-drawer :is(button,summary,input):focus-visible { outline: 2px solid var(--ref-ink); outline-offset: -2px; }
.project-files-drawer :is(.pfd-head,.pfd-tools,.pfd-crumb,.pfd-foot) { flex: none; }
.project-files-drawer .pending-recover-canvas {
  position: static;
  flex: none;
  min-width: 0;
  max-width: none;
  margin: 0 12px 10px;
  background: var(--ref-surface);
  border-color: var(--ref-line);
  box-shadow: none;
}
.project-files-drawer .pending-recover-canvas :is(.pr-toggle,.pr-meta,.pr-act button) { color: var(--ref-ink); }
.project-files-drawer .pfd-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 0 18px; }
.project-files-drawer .pfd-tabs { display: flex; gap: 22px; }
.project-files-drawer .pfd-tabs button {
  padding: 12px 0 10px;
  border-bottom: 1.5px solid transparent;
  color: var(--ref-ink-3);
  font: 18px/1.2 var(--ref-f-hand);
  white-space: nowrap;
}
.project-files-drawer .pfd-tabs [aria-current] { border-color: var(--ref-ink); color: var(--ref-ink); }
.project-files-drawer :is(.pfd-close,.pfd-add > summary,.pfd-path button) {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ref-r-2);
  color: var(--ref-ink-2);
}
.project-files-drawer :is(.pfd-close,.pfd-add > summary,.pfd-path button):hover { background: var(--ref-line); color: var(--ref-ink); }
.project-files-drawer .pfd-tools { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px 18px; }
.project-files-drawer .pfd-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--ref-r-2);
  background: var(--ref-surface-2);
  color: var(--ref-ink-3);
}
.project-files-drawer .pfd-search:focus-within { border-color: var(--ref-line-2); color: var(--ref-ink); }
.project-files-drawer :is(.pfd-search,.pfd-edit) input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ref-ink);
  font: inherit;
}
.project-files-drawer .pfd-search input::placeholder { color: var(--ref-ink-3); }
.project-files-drawer .pfd-search input:focus { outline: 0; }
.project-files-drawer .pfd-view { display: flex; padding: 2px; border-radius: var(--ref-r-2); background: var(--ref-surface-2); }
.project-files-drawer .pfd-view button { display: grid; place-items: center; width: 30px; height: 32px; border-radius: var(--ref-r-1); color: var(--ref-ink-3); }
.project-files-drawer .pfd-view button[aria-pressed=true] { background: var(--ref-accent); color: var(--ref-accent-ink); }
.project-files-drawer .pfd-view button:disabled { opacity: .6; cursor: default; }
.project-files-drawer .pfd-add { position: relative; }
.project-files-drawer .pfd-add-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 3;
  min-width: 146px;
  padding: 4px;
  border: 1px solid var(--ref-line-2);
  border-radius: var(--ref-r-2);
  background: var(--ref-surface);
  box-shadow: var(--ref-shadow);
}
.project-files-drawer .pfd-add-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 9px; border-radius: var(--ref-r-1); white-space: nowrap; }
.project-files-drawer .pfd-add-menu button:hover { background: var(--ref-line); }
.project-files-drawer .pfd-add-menu button:disabled { color: var(--ref-ink-3); cursor: default; }
.project-files-drawer .pfd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 2px 18px 10px;
  color: var(--ref-ink-3);
  font-size: 11px;
  line-height: 1.2;
}
.project-files-drawer .pfd-crumb button { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.project-files-drawer .pfd-crumb [aria-current] { color: var(--ref-ink); }
.project-files-drawer .pfd-crumb button:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-files-drawer .pfd-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 12px 12px 18px;
}
.project-files-drawer .pfd-material { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px 12px 18px; }
.project-files-drawer .pfd-material .material-toolbar { padding-inline: 0; }
.project-files-drawer .pfd-material .pfd-crumb { padding-inline: 0; }
.project-files-drawer .pfd-pinterest { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.project-files-drawer .pfd-pinterest a {
  overflow: hidden;
  min-width: 0;
  border-radius: var(--ref-r-1);
  background: var(--ref-surface-2);
  color: var(--ref-ink);
  text-decoration: none;
}
.project-files-drawer .pfd-pinterest img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-files-drawer .pfd-pinterest span { display: block; padding: 6px 8px; }
.project-files-drawer .pfd-folder { display: flex; min-width: 0; margin-left: -8px; border-radius: var(--ref-r-1); }
.project-files-drawer .pfd-folder > [data-pfd-folder] { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 42px; padding: 0 0 0 8px; text-align: left; }
.project-files-drawer .pfd-folder > [data-pfd-folder] > span { flex: 1; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.project-files-drawer .pfd-folder > [data-pfd-folder] > :is(small,svg) { flex: none; color: var(--ref-ink-3); }
.project-files-drawer .pfd-folder small { font: 500 11px/1 var(--ref-f-mono); }
.project-files-drawer :is(.pfd-folder,.pfd-file--list):is(:hover,:focus-within,.focused) { background: var(--ref-line); }
.project-files-drawer .pfd-label { margin: 14px 0 8px; color: var(--ref-ink-3); font: 500 11px/1.2 var(--ref-f-ui); }
.project-files-drawer .pfd-files--grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.project-files-drawer .pfd-file { position: relative; min-width: 0; border-radius: var(--ref-r-1); }
.project-files-drawer .pfd-file-main { display: flex; align-items: center; width: 100%; min-width: 0; text-align: left; }
.project-files-drawer .pfd-thumb { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--ref-surface-2); }
.project-files-drawer .pfd-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.project-files-drawer .pfd-document { display: grid; justify-items: center; gap: 2px; color: var(--ref-ink-2); }
.project-files-drawer .pfd-document b { font: 500 9px/1.1 var(--ref-f-mono); }
.project-files-drawer .pfd-file--grid .pfd-file-main { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: inherit; }
.project-files-drawer .pfd-file--grid .pfd-thumb { position: absolute; inset: 0; }
.project-files-drawer .pfd-file--grid .pfd-filename {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 7px 6px;
  background: linear-gradient(transparent,rgba(0,0,0,.78));
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.project-files-drawer .pfd-file--grid:is(:hover,:focus-within,.focused) .pfd-filename { opacity: 1; }
.project-files-drawer .pfd-file--grid:has(.pfd-document) .pfd-filename {
  padding:5px 7px;
  background:var(--ref-surface-2);
  color:var(--ref-ink);
  opacity:1;
}
.project-files-drawer .pfd-file--grid:has(.pfd-document) .pfd-filename small { color:var(--ref-ink-2); }
.project-files-drawer .pfd-file--grid .pfd-document { padding-bottom:26px; }
.project-files-drawer .pfd-file--grid .pfd-filename b { font-size: 11px; }
.project-files-drawer .pfd-file--grid .pfd-filename small { color: #ddd; }
.project-files-drawer .pfd-file--grid .pfd-file-action { display: none; }
.project-files-drawer .pfd-file--grid.on::after { content: ""; position: absolute; top: 6px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ref-hi); pointer-events: none; }
.project-files-drawer .pfd-file--list { display: flex; margin-left: -8px; }
.project-files-drawer .pfd-file--list .pfd-file-main { gap: 10px; min-height: 48px; padding: 6px 0 6px 8px; }
.project-files-drawer .pfd-file--list .pfd-thumb { width: 48px; height: 36px; border-radius: 2px; }
.project-files-drawer .pfd-filename { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.project-files-drawer .pfd-filename :is(b,small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-files-drawer .pfd-filename b { font-weight: 500; }
.project-files-drawer .pfd-filename small { color: var(--ref-ink-3); font-size: 10px; }
.project-files-drawer .pfd-file-action { display: flex; flex: none; align-items: center; gap: 4px; color: var(--ref-ink-2); font-size: 11px; }
.project-files-drawer .pfd-file-action i,
.project-files-drawer .pfd-foot summary i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ref-ink-3); }
.project-files-drawer .pfd-file-action i,
.project-files-drawer [data-pfd-sync-state=synced] { background: var(--ref-hi); }
.project-files-drawer [data-pfd-sync-state=uploading] { background: var(--ref-accent); }
.project-files-drawer .pfd-file-action .pfd-placed + span { display: none; }
.project-files-drawer .pfd-file-main:is(:hover,:focus-visible) .pfd-placed { display: none; }
.project-files-drawer .pfd-file-main:is(:hover,:focus-visible) .pfd-placed + span { display: inline; }
.project-files-drawer .pfd-row-menu { display: grid; flex: none; place-items: center; align-self: center; width: 28px; height: 36px; border-radius: var(--ref-r-1); color: var(--ref-ink-3); }
.project-files-drawer .pfd-row-menu:hover { background: var(--ref-surface-2); color: var(--ref-ink); }
.project-files-drawer .pfd-file--grid .pfd-row-menu { position: absolute; top: 3px; right: 3px; width: 25px; height: 25px; color: var(--ref-ink); background: var(--ref-glass); opacity: 0; }
.project-files-drawer .pfd-file--grid:is(:hover,:focus-within) .pfd-row-menu { opacity: 1; }
.project-files-drawer .pfd-edit { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 6px; padding: 0 8px; background: var(--ref-surface-2); }
.project-files-drawer .pfd-empty { margin: 35px 0; text-align: center; color: var(--ref-ink-3); line-height: 1.9; }
.project-files-drawer .pfd-foot { border-top: 1px solid var(--ref-line); padding: 0 12px 0 18px; }
.project-files-drawer .pfd-foot summary { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ref-ink-2); font-size: 11px; }
.project-files-drawer .pfd-foot summary span { flex: 1; }
.project-files-drawer .pfd-foot summary small { white-space: nowrap; }
.project-files-drawer .pfd-foot[open] summary > svg { transform: rotate(90deg); }
.project-files-drawer .pfd-path { display: flex; align-items: center; gap: 6px; padding-bottom: 9px; color: var(--ref-ink-3); font-size: 11px; }
.project-files-drawer .pfd-path code { flex: 1; overflow-wrap: anywhere; font: 11px/1.5 var(--ref-f-mono); }
.project-files-drawer .pfd-drop {
  position: absolute;
  inset: 6px;
  z-index: 4;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1.5px dashed var(--ref-hi);
  border-radius: var(--ref-r-2);
  background: var(--ref-surface);
  pointer-events: none;
}
.project-files-drawer.pfd-dragging .pfd-drop { display: grid; }
@media (pointer:coarse) {
  .project-files-drawer .pfd-search input { font-size: 16px; }
  .project-files-drawer :is(.pfd-file--grid .pfd-filename,.pfd-file--grid .pfd-row-menu) { opacity: 1; }
}
@media (max-width:560px) {
  html[data-argus-theme] .app-frame:has(.claude-canvas-plain) .sidebar.project-files-drawer {
    inset: 0 12px 0 12px;
    transform: none;
    width: auto;
    max-width: none !important;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .project-files-drawer .pfd-row-menu { width: 36px; }
}
