.pm-desk { --pm-border: var(--line); --pm-soft: var(--raised); min-width: 0; }
.pm-desk .page-head { margin-bottom: 22px; }
.pm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-top: 1px solid var(--pm-border); border-bottom: 1px solid var(--pm-border); }
.pm-views { display: flex; gap: 3px; padding: 3px; background: var(--raised); border-radius: 8px; }
.pm-views .button { border: 0; background: transparent; padding: 7px 14px; }
.pm-views [aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: 0 1px 4px #261d3612; }
.pm-search { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 8px; margin: 0; }
.pm-search input, .pm-search select { min-height: 37px; margin: 0; width: auto; max-width: 210px; padding: 7px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.pm-search input { flex: 1 1 190px; max-width: 320px; }
.pm-toolbar .button { min-height: 36px; font-size: 12px; white-space: nowrap; }
.pm-columns { position: relative; font-size: 12px; }
.pm-columns summary { cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pm-columns > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; min-width: 220px; max-height: 340px; overflow: auto; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 35px #261d361b; border-radius: 9px; padding: 9px; }
.pm-columns label, .pm-person-options label, .pm-checkbox { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 8px; margin: 0; font-size: 13px; font-weight: 500; }
.pm-columns input, .pm-person-options input, .pm-checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.pm-source-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 12px 0 18px; }
.pm-result-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; margin: 20px 0 12px; }
.pm-result-line > span { color: var(--muted); }
.pm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 23px; padding: 2px 7px; border-radius: 6px; background: var(--raised); color: var(--muted); font-size: 11px; font-weight: 650; }
.pm-table-scroll { overflow: auto; max-width: 100%; padding-bottom: 5px; }
.pm-group { margin: 0 0 22px; min-width: max-content; border-left: 4px solid var(--pm-accent); border-radius: 6px; }
.pm-group h2 { margin: 0; font-size: 14px; background: var(--raised); }
.pm-group-toggle { border: 0; background: transparent; color: var(--ink); display: flex; gap: 10px; align-items: center; padding: 13px; text-align: left; min-height: 46px; }
.pm-group-toggle > span:first-child { color: var(--pm-accent); font-size: 14px; }
.pm-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; font-size: 12px; background: var(--panel); border-right: 1px solid var(--line); }
.pm-table th, .pm-table td { padding: 0; height: 43px; min-width: 165px; width: 165px; max-width: 240px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: middle; text-align: left; }
.pm-table thead th { background: var(--raised); color: var(--muted); font-size: 11px; font-weight: 600; padding: 9px 12px; height: 33px; }
.pm-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 280px; width: 280px; max-width: 340px; background: var(--panel); box-shadow: 3px 0 5px #30244205; }
.pm-table thead th:first-child { background: var(--raised); }
.pm-table tbody tr:hover > th, .pm-table tbody tr:hover > td { background: var(--raised); }
.pm-project-name { display: block; width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 12px 14px; line-height: 1.4; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.pm-project-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pm-cell { display: block; width: 100%; min-height: 42px; padding: 10px 12px; background: transparent; border: 0; color: var(--ink); font-size: 12px; text-align: left; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.pm-cell:hover { background: var(--raised); box-shadow: inset 0 0 0 1px var(--accent); }
.pm-status { color: var(--ink); background: color-mix(in srgb, var(--pm-status) 20%, var(--panel)); border-left: 3px solid var(--pm-status); font-weight: 600; }
button.pm-status:hover { background: color-mix(in srgb, var(--pm-status) 30%, var(--panel)); }
.pm-readonly { color: var(--muted); }
.pm-row-note { display: block; font-weight: 400; color: var(--orange); font-size: 10px; padding: 0 14px 9px; }
.pm-table .pm-work-link { margin: 6px 9px; padding: 6px 9px; font-size: 11px; background: var(--panel); white-space: nowrap; }
.pm-table .pm-empty-group, .pm-empty-group { padding: 17px; color: var(--muted); font-size: 12px; font-weight: 400; }
.pm-pagination { display: flex; gap: 9px; margin: 8px 0 22px; }
.pm-board { display: grid; grid-auto-flow: column; grid-auto-columns: 305px; align-items: start; gap: 16px; overflow: auto; max-width: 100%; padding: 0 2px 20px; }
.pm-board-group { background: var(--raised); border-top: 4px solid var(--pm-accent); border-radius: 9px; padding: 13px; }
.pm-board-group h2 { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 2px 1px 15px; }
.pm-board-group > .button { width: 100%; margin-top: 12px; font-size: 11px; }
.pm-board-items { display: grid; gap: 12px; }
.pm-board-card { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 0 0 12px; box-shadow: 0 2px 4px #30244204; }
.pm-board-card .pm-project-name { font-size: 13px; padding: 15px 13px; }
.pm-board-card dl { margin: 0 12px 10px; }
.pm-board-card dl > div { display: grid; grid-template-columns: 77px minmax(0,1fr); align-items: center; gap: 5px; padding: 3px 0; }
.pm-board-card dt { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.pm-board-card dd { margin: 0; min-width: 0; }
.pm-board-card .pm-cell { min-height: 29px; font-size: 11px; padding: 5px 7px; border-radius: 4px; }
.pm-board-card .pm-work-link { margin: 3px 12px 0; font-size: 11px; padding: 6px 10px; }
.pm-native { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.pm-native h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; }
.pm-native p { font-size: 12px; }
.pm-native-list { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pm-native-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.pm-native-row:last-child { border-bottom: 0; }
.pm-native-row .pm-project-name { padding: 0; }
.pm-native-row small { color: var(--muted); display: block; margin-top: 4px; font-size: 11px; }
.pm-native-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pm-native-actions .button { padding: 7px 10px; font-size: 11px; }
.pm-detail form { margin: 20px 0; }
.pm-detail h2 { margin-top: 28px; font-size: 17px; }
.pm-detail .pm-detail-fields { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.pm-detail-fields > div { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0,1fr); border-bottom: 1px solid var(--line); }
.pm-detail-fields > div:last-child { border: 0; }
.pm-detail-fields dt { font-size: 12px; color: var(--muted); padding: 13px 12px; background: var(--raised); }
.pm-detail-fields dd { margin: 0; min-width: 0; }
.pm-detail-fields .pm-cell { white-space: normal; overflow-wrap: anywhere; }
.pm-person-options { border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 380px; overflow: auto; }
.pm-person-options legend { padding: 0 7px; font-size: 12px; }
.pm-date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.pm-date-range input { display: block; width: 100%; margin-top: 6px; }
.pm-history { padding: 0; list-style: none; margin: 15px 0; }
.pm-history li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.pm-history p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 6px; }
.pm-history small { font-size: 11px; color: var(--muted); }
.pm-provenance { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 15px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.pm-provenance summary { cursor: pointer; }
.pm-provenance p { line-height: 1.8; }
.pm-contact-results > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-contact-results small { display: block; font-size: 11px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.pm-contact-results [aria-pressed="true"] { background: var(--raised); border-color: var(--accent); }
@media (max-width: 760px) {
  .pm-toolbar { gap: 9px; }
  .pm-search { flex-basis: 100%; order: 2; }
  .pm-search input { max-width: none; flex-basis: 100%; }
  .pm-search select { flex: 1; min-width: 105px; max-width: 100%; }
  .pm-table th:first-child { min-width: 190px; width: 190px; max-width: 190px; }
  .pm-table td, .pm-table th { min-width: 145px; width: 145px; }
  .pm-board { grid-auto-columns: 280px; }
  .pm-native-row { align-items: flex-start; gap: 12px; flex-direction: column; }
  .pm-native-actions { flex-wrap: wrap; }
  .pm-native .section-top { flex-wrap: wrap; gap: 10px; }
  .pm-columns > div { right: auto; left: 0; }
  .pm-detail .decision-bar { flex-wrap: wrap; }
}
