.pd { display: block; min-width: 0; }
.pd-heading { margin-bottom: 17px; }
.pd-heading h1 { min-width: 0; }
.pd-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 0;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .88rem;
}
.pd-summary span + span { margin-left: 13px; padding-left: 13px; border-left: 1px solid var(--line); }
.pd-summary strong { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 730; }
.pd-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px 18px;
  padding: clamp(11px, 1.5vw, 15px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.pd-search { position: relative; min-width: 0; }
.pd-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.pd-search input,
.pd-sort select {
  min-height: 43px;
  min-width: 0;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
}
.pd-search input { width: 100%; padding: 6px 44px 6px 37px; }
.pd-search input::-webkit-search-cancel-button { appearance: none; }
.pd-search button {
  position: absolute;
  right: 4px;
  top: 3px;
  bottom: 3px;
  width: 37px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}
.pd-search button:hover { background: var(--surface-hover); color: var(--ink); }
.pd-sort { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); white-space: nowrap; font-size: .83rem; font-weight: 620; }
.pd-sort select { padding: 5px 8px; font-weight: 500; }
.pd-results { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.pd-results:empty { margin: 0; }
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: clamp(12px, 1.65vw, 20px);
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}
.pd-entry { min-width: 0; }
.pd-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 13px;
  min-width: 0;
  height: 100%;
  padding: clamp(15px, 2vw, 21px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pd-card:hover { border-color: var(--accent-line); box-shadow: 0 3px 12px #24212413; text-decoration: none; }
.pd-card-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pd-folder {
  display: grid;
  flex: 0 0 41px;
  height: 41px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.pd-folder svg { width: 21px; height: 21px; }
.pd-prefix {
  min-width: 0;
  padding: 3px 8px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent-hover);
  background: var(--surface-soft);
  font: 690 .77rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .055em;
}
.pd-arrow { margin-left: auto; flex: 0 0 auto; color: var(--muted); font-size: 1.42rem; line-height: 1; }
.pd-card:hover .pd-arrow { color: var(--accent-hover); }
.pd-card-title { min-width: 0; overflow-wrap: anywhere; }
.pd-card-title h2 { font-size: 1.12rem; }
.pd-card-title p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: .84rem;
}
.pd-work { display: grid; gap: 6px; }
.pd-work-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .77rem;
  font-variant-numeric: tabular-nums;
}
.pd-work-label strong { color: var(--ink); font-weight: 670; }
.pd-work progress,
.pd-empty-track {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--accent);
}
.pd-work progress::-webkit-progress-bar { background: var(--line); }
.pd-work progress::-webkit-progress-value { background: var(--accent); }
.pd-work progress::-moz-progress-bar { background: var(--accent); }
.pd-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  min-height: 39px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .77rem;
}
.pd-avatars { display: inline-flex; align-items: center; margin-left: 2px; }
.pd-avatars .avatar,
.pd-more-avatars {
  display: inline-grid;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  margin-left: -2px;
  box-shadow: 0 0 0 2px var(--white);
}
.pd-more-avatars { border-radius: 50%; background: var(--surface-hover); color: var(--ink); font-size: .61rem; font-weight: 680; }
.pd-empty {
  margin-top: 17px;
  padding: clamp(20px, 5vw, 42px);
  border: 1px dashed var(--control-line);
  border-radius: 13px;
  background: var(--surface-soft);
  text-align: center;
}
.pd-empty p { margin-top: 6px; color: var(--muted); }
@media (max-width: 620px) {
  .pd-summary { margin-bottom: 16px; }
  .pd-controls { grid-template-columns: minmax(0, 1fr); }
  .pd-sort select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-card { transition: none; }
}

@media (pointer: coarse) {
  .pd-search input, .pd-sort select { font-size: 16px; }
}
