.pc-projects {
  --pc-live: var(--admin-projects-pc-live); --pc-draft: var(--admin-projects-pc-draft); --pc-review: var(--admin-projects-pc-review); --pc-flag: var(--admin-projects-pc-draft);
  --pc-edge: var(--surface-switch-background-10); --pc-divider: var(--admin-projects-pc-divider); --pc-fill: var(--surface-switch-shadow-5);
}
.pc-projects .greeting { padding: 22px 28px; margin-bottom: 22px; }
.pc-projects .greeting h1 { font-size:clamp(26px,3vw,32px); }
.pc-projects .glass {
  border: 1px solid var(--pc-edge); border-radius: 19px;
  background: linear-gradient(132deg,var(--pc-projects-background),var(--pc-projects-background-2));
  backdrop-filter: blur(25px) saturate(85%);
  box-shadow: inset 0 1px var(--pc-projects-shadow), 0 12px 32px var(--surface-switch-shadow-3);
}
.pc-toolbar { padding: 15px; }
.pc-controls, .pc-filters, .pc-control-actions { display: flex; align-items: center; gap: 8px; }
.pc-controls { flex-wrap: wrap; }
.pc-control-actions { margin-left: auto; }
.pc-search {
  display: flex; flex: 1 1 160px; align-items: center; gap: 8px; max-width: 330px;
  min-height: 36px; padding: 0 10px; border: 1px solid var(--pc-edge); border-radius: 9px; background: var(--pc-search-background);
}
.pc-search span { font-size: 19px; line-height: 1; }
.pc-search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; padding: 8px 0; font-size: 12px; }
.pc-search input::placeholder { color: var(--muted); }
.pc-filters { flex-wrap: wrap; }
.pc-filter, .pc-control-actions select {
  border: 1px solid var(--pc-edge); border-radius: 20px; min-height: 33px;
  background: var(--pc-fill); color: var(--text); padding: 5px 10px; white-space: nowrap; font-size: 10px;
}
.pc-filter { display: inline-flex; align-items: center; gap: 6px; }
.pc-filter span { font-variant-numeric: tabular-nums; opacity: .8; }
.pc-filter[aria-pressed=true] { background: var(--pc-filter-background); border-color: var(--pc-filter-border); color: var(--account-avatar-panel-background); }
.pc-filter:hover:not([aria-pressed=true]), .pc-layout button:hover { background: var(--pc-filter-background-2); }
.pc-control-actions select { border-radius: 8px; max-width: 150px; }
/* Custom chevron (native arrow sat flush on the edge): draw it 11px in. */
.pc-control-actions select {
  appearance: none; -webkit-appearance: none;
  padding: 5px 30px 5px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a90a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
}
.pc-control-actions select option { color: var(--pc-control-actions-text); background: var(--pc-control-actions-background); }
.pc-controls .primary { white-space: nowrap; font-size: 11px; padding: 9px 12px; }
.pc-status-overview {
  display: grid; grid-template-columns: auto minmax(85px,1fr) auto; align-items: center;
  gap: 18px; padding: 16px 5px 2px; margin-top: 16px; border-top: 1px solid var(--pc-divider); font-size: 11px;
}
.pc-status-overview b { font-weight: 600; }
.pc-overview-bar { display: flex; height: 9px; border-radius: 20px; overflow: hidden; }
.pc-overview-bar i:first-child { background: linear-gradient(var(--pc-overview-bar-background),var(--pc-overview-bar-background-2)); transform-origin: left; animation: fill-rise .8s var(--motion-ease) both; }
.pc-overview-bar i:last-child { background: linear-gradient(var(--strength-bar-background-2),var(--pc-overview-bar-background-3)); flex: 1; }
.pc-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pc-published { --pc-dot: var(--pc-live); }.pc-draft { --pc-dot: var(--pc-draft); }
.pc-review { --pc-dot: var(--pc-review); }.pc-flagged { --pc-dot: var(--pc-flag); }
.pc-filter:not(.pc-all)::before, .pc-legend span::before, .pc-status::before {
  content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--pc-dot);
}
.pc-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px, .41fr); gap: 18px; margin-top: 20px; align-items: start; }
.pc-results, .pc-insights { min-width: 0; padding: 17px; }
.pc-projects h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.pc-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 1px 0 13px; gap: 12px; }
.pc-list-heading h2 span, .pc-list-heading p, .pc-muted { color: var(--muted); }
.pc-list-heading p { font-size: 10px; margin: 4px 0 0; }
.pc-layout { background: var(--pc-fill); border: 1px solid var(--pc-edge); border-radius: 9px; padding: 2px; display: flex; gap: 1px; }
.pc-layout button { min-width: 31px; height: 27px; background: transparent; border: 0; border-radius: 6px; color: var(--text); }
.pc-layout [aria-pressed=true] { background: var(--pc-layout-background); }
.pc-table-scroll { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pc-table-scroll::-webkit-scrollbar { display: none; }
.pc-project-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; font-variant-numeric: tabular-nums; }
.pc-project-table th, .pc-project-table td { border-top: 1px solid var(--pc-divider); padding: 12px 6px; }
.pc-project-table th { color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.pc-project-table td:nth-child(n+4) { white-space: nowrap; }
.pc-project-table tbody tr { transition: background .2s; }
.pc-project-table tbody tr:hover, .pc-row-selected { background: var(--pc-project-table-background); }
.pc-identity {
  border: 0; background: none; color: var(--text); display: flex; align-items: center; gap: 10px;
  min-width: 136px; padding: 0; text-align: left;
}
.pc-identity img.project-photo { width: 44px; height: 44px; border-radius: 8px; }
.pc-identity b, .pc-insight-title button { font-weight: 650; }
.pc-identity small { display: block; color: var(--muted); line-height: 1.45; font-size: 10px; margin-top: 3px; }
.pc-owner { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 10px; }
.pc-owner .avatar { width: 21px; height: 21px; font-size: 8px; border-radius: 50%; }
.pc-category, .pc-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--pc-edge);
  border-radius: 20px; font-size: 9px; white-space: nowrap; background: var(--pc-fill); vertical-align: middle;
}
.pc-status { border-color: color-mix(in srgb,var(--pc-dot) 38%,transparent); background: color-mix(in srgb,var(--pc-dot) 12%,transparent); }
.pc-row-action { border: 0; background: var(--pc-fill); border-radius: 6px; padding: 5px 7px; color: var(--text); }
.pc-row-action:hover, .pc-insight-title button:hover { text-decoration: underline; }
.pc-insights>h2 { margin-bottom: 15px; }
.pc-insights>h2 span { margin-right: 5px; }
.pc-insight-cover { position: relative; }
.pc-insight-cover img.project-photo { display: block; width: 100%; height: 110px; border-radius: 12px; }
.pc-insight-cover button { position: absolute; top: 50%; translate: 0 -50%; border: 1px solid var(--auth-fix-background-2); width: 26px; height: 26px; border-radius: 50%; background: var(--pc-insight-cover-background); color: var(--surface-switch-text-3); font-size: 18px; line-height: 1; }
.pc-insight-cover button:hover { background: var(--pc-insight-cover-background-2); }
.pc-prev { left: 8px; }.pc-next { right: 8px; }
.pc-insight-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px; }
.pc-insight-title button { padding: 0; border: 0; background: none; color: var(--text); font-size: 15px; text-align: left; overflow-wrap: anywhere; }
.pc-insight-title button span { font-size: 10px; color: var(--muted); }
.pc-insight-description { font-size: 10px; color: var(--muted); margin: 5px 0 12px; }
.pc-insight-metrics { display: grid; grid-template-columns: repeat(3,1fr); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.pc-insight-metrics>div { display: flex; align-items: center; gap: 6px; padding: 3px 6px; min-width: 0; }
.pc-insight-metrics>div+div { border-left: 1px solid var(--pc-divider); }
.pc-insight-metrics>div>span { display: grid; place-items: center; border: 1px solid var(--pc-edge); border-radius: 7px; width: 25px; height: 25px; flex: 0 0 25px; }
.pc-insight-metrics b { display: block; font-size: 12px; }
.pc-insight-metrics small { display: block; font-size: 9px; color: var(--muted); }
.pc-aside-section { border-top: 1px solid var(--pc-divider); padding-top: 11px; margin-top: 11px; }
.pc-aside-section>div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 7px; }
.pc-aside-section h3 { font-size: 12px; margin: 0; }
.pc-aside-section .outline,.pc-queue .outline { font-size: 9px; padding: 5px 8px; border-radius: 7px; white-space: nowrap; }
.pc-activity-list { list-style: none; margin: 0; padding: 0; }
.pc-activity-list button { display: flex; align-items: center; gap: 7px; padding: 4px 0; background: transparent; border: 0; color: var(--text); font-size: 10px; text-align: left; }
.pc-activity-list button:hover { text-decoration: underline; }
.pc-activity-list button>span:not(.vx-ui-icon), .pc-case-number { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 7px; background: var(--pc-activity-list-background); }
.pc-queue { display: grid; gap: 5px; }
.pc-queue article {
  display: flex; align-items: center; gap: 8px; padding: 7px; background: var(--pc-fill);
  border: 1px solid var(--pc-divider); border-radius: 9px; min-width: 0;
}
.pc-queue article>div { flex: 1; min-width: 0; }
.pc-queue article b, .pc-queue article small { display: block; }
.pc-queue article b { font-size: 10px; }
.pc-queue article small { font-size: 9px; color: var(--muted); margin-top: 3px; }
.pc-queue article .project-photo { width: 48px; height: 35px; }
.pc-muted { font-size: 11px; line-height: 1.6; }
.pc-empty { padding: 24px 10px; text-align: center; }
.pc-empty p { color: var(--muted); font-size: 12px; }
.pc-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pc-project-grid article { padding: 12px; border: 1px solid var(--pc-divider); border-radius: 10px; }
.pc-grid-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 11px; font-size: 10px; }
.pc-undo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-theme=light] .pc-projects { --pc-edge: var(--admin-projects-pc-edge); --pc-divider: var(--admin-projects-pc-divider-2); --pc-fill: var(--admin-projects-pc-fill); --pc-live: var(--admin-projects-pc-live-2); --pc-draft: var(--admin-projects-pc-draft-2); --pc-review: var(--admin-projects-pc-review-2); --pc-flag: var(--admin-projects-pc-flag); }
html[data-theme=light] .pc-projects .glass { background: linear-gradient(130deg,var(--pc-projects-background-3),var(--field-background)); box-shadow: inset 0 1px var(--pc-projects-shadow-2), 0 12px 28px var(--pc-projects-shadow-3); }
html[data-theme=light] .pc-search { background: var(--field-background); }
html[data-theme=light] .pc-filter[aria-pressed=true] { background: var(--pc-filter-background-3); color: var(--surface-switch-text-3); }
@media(max-width: 1260px) {
  .pc-workspace { grid-template-columns: minmax(0,1fr) 270px; }
  .pc-status-overview { gap: 10px; }.pc-legend { gap: 9px; }
}
@media(max-width: 1060px) {
  .pc-workspace { grid-template-columns: minmax(0,1fr); }
  .pc-insight-cover img.project-photo { height: 150px; }
}
@media(max-width: 700px) {
  .pc-projects .greeting { padding: 16px; }
  .pc-control-actions { margin-left: 0; }.pc-search,.pc-filters { flex-basis: 100%; }
  .pc-status-overview { grid-template-columns: 1fr; }.pc-project-grid { grid-template-columns: 1fr; }
  .pc-project-table { min-width: 610px; }.pc-results,.pc-insights { padding: 12px; }
}

/* Keep each label distinct in the monochrome project status legend. */
:is(.pc-filter,.pc-legend span,.pc-status):is(.pc-draft,.pc-review,.pc-flagged)::before {
  box-sizing:border-box; border:1px solid var(--pc-dot);
}
:is(.pc-filter,.pc-legend span,.pc-status).pc-draft::before { background:transparent; }
:is(.pc-filter,.pc-legend span,.pc-status).pc-review::before { border-radius:1px; transform:rotate(45deg); background:transparent; }
:is(.pc-filter,.pc-legend span,.pc-status).pc-flagged::before { border-radius:1px; }
.pc-projects img.project-photo { filter:saturate(.46); }
html[data-theme=light] .pc-overview-bar i:first-child { background:linear-gradient(var(--admin-projects-pc-review-2),var(--pc-overview-bar-background-4)); }
html[data-theme=light] .pc-overview-bar i:last-child { background:linear-gradient(var(--pc-overview-bar-background-5),var(--pc-overview-bar-background-6)); }
