/* Shared table/detail layout; reuse the established PLM shell and local fonts. */
@media(min-width:1101px){.shell:not(.compact-sidebar){grid-template-columns:224px minmax(0,1fr)}.shell:not(.compact-sidebar)>.sidebar{width:224px}}
.data-workspace{overflow:visible}
.pdm-category-nav{display:flex;flex-direction:column;margin:0 8px 8px 28px;padding-left:12px;border-left:1px solid #69615b}
.pdm-category-nav button{min-height:36px;padding:6px 10px;border:0;background:transparent;color:#e6e1df;font-size:14px;text-align:left;font-weight:400}
.pdm-category-nav button:hover{background:#4b4540}
.pdm-category-nav button.active{color:#fff;background:#5b514a;border-left:3px solid #e96428;padding-left:7px}
.pdm-naming-hint{font-size:14px;line-height:24px;color:#626262;margin:0 0 20px}
.compact-sidebar .pdm-category-nav{display:none}
@media(max-width:800px){.pdm-category-nav{display:none}}
.dw-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:20px;border-bottom:1px solid var(--line)}
.dw-filters .field{min-width:125px;flex:1;font-size:14px;gap:8px}
.dw-filters .field:first-child{flex:2;min-width:180px}
.dw-filters .field>span{font-size:14px;font-weight:400;color:var(--muted)}
.dw-filters input,.dw-filters select{height:44px;font-size:14px;min-width:0;width:100%}
.dw-filters button{min-height:44px}
.dw-layout{display:block;min-width:0}
.dw-layout.has-selection{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px)}
.dw-list{min-width:0}
.dw-list .panel-head{padding:18px 20px}
.dw-list .panel-head h2{font-size:20px;line-height:28px}
.dw-list .records-table th,.dw-list .records-table td{font-size:14px;line-height:22px;padding:12px 16px;vertical-align:middle;min-height:44px}
.dw-list .records-table th{white-space:nowrap}
.dw-list .records-table .record-title{font-size:14px;font-weight:400;max-width:230px}
.dw-list .records-table td{overflow-wrap:anywhere}
.dw-list .records-table td.danger{color:#c52a2a}
.dw-selected{background:#fff4ee!important}
.dw-detail{border-left:1px solid var(--line);padding:20px;min-width:0;overflow-wrap:anywhere}
.dw-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.dw-detail-heading p{margin:0 0 8px;font-size:14px;color:var(--muted)}
.dw-detail h2{font-size:20px;line-height:28px;margin:0 0 12px}
.dw-detail h3{font-size:16px;line-height:24px;margin:20px 0 10px}
.dw-detail p{font-size:14px;line-height:23px;margin:8px 0}
.dw-detail .field{margin:16px 0;font-size:14px}
.dw-detail .field>span{font-size:14px}
.dw-detail .field select{font-size:14px;width:100%;min-height:44px}
.dw-text{white-space:pre-wrap}
.dw-body{border-top:1px solid var(--line);padding-top:16px;margin:16px 0;font-size:14px;line-height:24px}
.dw-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.dw-actions button{font-size:14px;min-height:40px}
.dw-file{padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:24px}
.dw-file>div{display:flex;gap:18px}
.dw-file img{display:block;max-width:100%;max-height:240px;object-fit:contain;margin:12px 0}
.dw-history{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:14px}
.dw-history summary{font-size:14px;cursor:pointer}
.dw-checks{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:14px;padding:8px 0}
.dw-checks label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:400}
.dw-checks input{width:16px;height:16px;margin:0}
.dw-evidence-picker{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;max-height:240px;overflow:auto;font-size:14px}
.dw-evidence-picker label{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:400}
.dw-evidence-picker input{width:16px;height:16px;padding:0}
.dw-multi-label{position:relative}
.dw-multi-label details{position:relative;margin:0;padding:0;border:0}
.dw-multi-label summary{height:44px;display:flex;align-items:center;padding:10px 12px;border:1px solid #c7cbd0;border-radius:4px;background:#fff;cursor:pointer;font-size:14px;font-weight:400}
.dw-multi-menu{position:absolute;top:calc(100% + 4px);left:0;min-width:210px;max-height:310px;overflow:auto;padding:8px;background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px #0002;z-index:16}
.dw-multi-menu label{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;font-size:14px;font-weight:400}
.dw-multi-menu input{width:16px;height:16px;padding:0;margin:0}
.dw-multi-menu button{border:0;width:100%;justify-content:flex-start;font-size:14px}
.form-grid details.field>summary{font-size:14px;cursor:pointer;line-height:24px}
#modal-form [hidden],.data-workspace [hidden]{display:none!important}
.pw-project-cell{display:flex;align-items:center;gap:12px;min-width:240px}
.project-workspace [hidden]{display:none!important}
.pw-project-cell .pj-row-image{width:52px;height:44px;object-fit:contain}
.pw-project-cell p,.pw-stage-work td p{font-size:14px;line-height:22px;margin:4px 0;color:#626262}
.pw-matrix th,.pw-matrix td{font-size:14px;line-height:22px;min-height:44px;padding:12px 16px}
.pw-stage-cell{display:flex;flex-direction:column;gap:6px;background:none;border:0;padding:4px 0;font-size:14px;align-items:flex-start}
.pw-stage-cell span:last-child{font-size:14px;color:#626262}
.pw-projects-home{container-type:inline-size}
.pw-home-heading{align-items:center;gap:20px;flex-wrap:wrap}
.pw-home-title,.pw-home-actions,.pw-view-switch{display:flex;align-items:center;gap:12px}
.pw-home-title{gap:24px}
.pw-home-title h2{margin:0}
.pw-home-actions{margin-left:auto;gap:8px}
.pw-home-actions>.ghost{border-color:transparent;background:transparent;color:#626262}
.pw-view-switch{gap:0}
.pw-view-switch button{border-radius:0;min-height:40px;padding:8px 16px}
.pw-view-switch button:first-child{border-radius:4px 0 0 4px}
.pw-view-switch button:last-child{border-radius:0 4px 4px 0;margin-left:-1px}
.pw-projects-home #pj-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;max-width:1080px;padding:8px 20px 22px;margin:0}
.pw-projects-home #pj-filters .pw-search{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#626262;width:230px;flex:0 0 auto}
.pw-projects-home #pj-filters .p-filter{font-size:14px;gap:6px;flex:0 0 auto}
.pw-projects-home #pj-filters input,.pw-projects-home #pj-filters select{height:44px;min-height:44px;font-size:14px;max-width:none}
.pw-projects-home #pj-filters select[name=owner_id]{width:120px}
.pw-projects-home #pj-filters select[name=supplier]{width:130px}
.pw-projects-home #pj-filters select[name=status]{width:116px}
.pw-filter-actions{display:flex;gap:8px}
.pw-filter-actions button{min-height:44px;padding:8px 14px;font-size:14px}
.pw-project-table{width:100%;table-layout:fixed;min-width:760px}
.pw-project-table th,.pw-project-table td{padding:16px;font-size:14px;line-height:22px;vertical-align:top;white-space:normal}
.pw-project-table .pw-project-identity{width:28%}
.pw-project-table .pw-project-cell{min-width:0;align-items:flex-start;gap:10px}
.pw-project-table .pw-project-cell>div{min-width:0}
.pw-project-table .pw-project-cell p{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.pw-row-milestones{display:flex;gap:10px;flex-wrap:wrap}
.pw-list-milestone{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1 0 82px;max-width:118px;padding:0 2px;background:transparent;border:0;font-size:14px;text-align:left}
.pw-list-milestone:hover{background:#fff3ec}
.pw-milestone-name{color:#292523;font-weight:500;line-height:22px}
.pw-milestone-date{color:#626262;font-size:14px;line-height:22px}
.pw-project-table .pw-summary-cell{display:none}
.pw-summary-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:22px;font-size:14px}
.pw-summary-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;color:#4b4744;font-size:14px;line-height:22px;margin-top:6px}
.pw-summary-meta,.pw-summary-empty{color:#626262;font-size:14px;line-height:22px}
.pw-summary-meta{margin-top:6px}
.pw-inline-summary{margin-top:12px;display:grid;gap:4px;font-size:14px;line-height:22px}
.pw-inline-summary>div{display:flex;gap:4px;min-width:0;color:#626262}
.pw-inline-summary>div>span{flex:none}
.pw-inline-summary .record-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:22px}
@container(min-width:1450px){.pw-project-table .pw-summary-cell{display:table-cell}.pw-project-table .pw-project-identity{width:22%}.pw-project-table .pw-recent-cell{width:19%}.pw-project-table .pw-next-cell{width:18%}.pw-project-table .pw-inline-summary{display:none}}
.pw-phase-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px;border-bottom:1px solid var(--line);padding-bottom:16px}
.pw-phase-tabs button{display:flex;gap:10px;align-items:center;font-size:14px;min-height:44px}
.pw-phase-tabs button.active,.project-workspace button[data-pw-view].active{border-color:#E96428;background:#fff3ec;color:#a43e13}
.pw-stage-work h3{font-size:18px;margin:0 0 12px}
.pw-stage-work .product-section-heading p{font-size:14px;margin:4px 0 12px;color:#626262}
.pw-stage-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;margin-top:24px}
.pw-stage-grid>div{min-width:0}
.pw-required{font-size:14px;color:#b84717;margin-left:8px}
.pw-delivery-status{font-size:14px;white-space:nowrap}.pw-accepted{color:#18795b}.pw-submitted{color:#b84717}
.pw-goal{font-size:14px;line-height:24px;margin:0;white-space:pre-wrap}
.pw-document-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;margin-top:20px}
.pw-file-tree{border-right:1px solid var(--line);padding-right:12px}
.pw-file-tree button{display:block;width:100%;border:0;text-align:left;min-height:44px;padding:10px 12px;background:none;font-size:14px;line-height:22px}
.pw-file-tree button.active{background:#fff3ec;color:#b84717;border-left:3px solid #E96428}
.pw-tree-stage>button:first-child{font-weight:600}
.pw-file-checklist{margin:16px 0}
.pw-file-checklist h4{font-size:15px;line-height:24px;margin:8px 0}
.pw-file-checklist input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:#E96428}
.pw-file-checklist th:not(:first-child),.pw-file-checklist td:not(:first-child){width:110px;text-align:center}
.pw-document-list{min-width:0}
.pw-doc-preview{border-top:1px solid var(--line);margin-top:20px;padding:20px 0;font-size:14px}
.pw-doc-preview .field{max-width:320px;margin-bottom:16px}
.pw-doc-preview img{display:block;max-height:300px;max-width:100%;object-fit:contain;margin:16px 0}
.pw-preview-hint{font-size:14px;color:#626262;margin:20px 0}
.project-inline-detail .drawer-head{display:flex;justify-content:space-between;gap:20px}
.project-inline-detail #pw-project-close{white-space:nowrap;flex-shrink:0}
.pw-factory-table{table-layout:fixed;width:100%;min-width:0!important}
.pw-factory-table th,.pw-factory-table td{white-space:normal!important;overflow-wrap:anywhere;line-height:22px;font-size:14px}
.pw-factory-table th:nth-child(1){width:18%}.pw-factory-table th:nth-child(2){width:12%}.pw-factory-table th:nth-child(3){width:10%}.pw-factory-table th:nth-child(4){width:15%}.pw-factory-table th:nth-child(5){width:10%}.pw-factory-table th:nth-child(6){width:25%}.pw-factory-table th:nth-child(7){width:10%}
@media(max-width:1350px){.pw-stage-grid{grid-template-columns:1fr}}
@media(max-width:800px){.pw-document-layout{grid-template-columns:1fr}.pw-file-tree{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}.pw-file-tree button{width:auto;white-space:nowrap}}
@media(max-width:1150px){.dw-layout.has-selection{display:block}.dw-detail{border-left:0;border-top:1px solid var(--line)}}

/* Keep every ledger column visible beside the document details. */
.pdm-ledger-table{width:100%;table-layout:fixed;min-width:0!important}
.dw-list .pdm-ledger-table th,.dw-list .pdm-ledger-table td{padding:12px;white-space:normal;overflow-wrap:anywhere}
.pdm-ledger-table th:nth-child(1){width:18.5%}.pdm-ledger-table th:nth-child(2){width:27%}.pdm-ledger-table th:nth-child(3){width:13%}.pdm-ledger-table th:nth-child(4){width:16%}.pdm-ledger-table th:nth-child(5){width:8%}.pdm-ledger-table th:nth-child(6){width:17.5%}
.dw-list .pdm-ledger-table .record-title{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.pdm-ledger-table p{margin:6px 0;white-space:normal;font-size:14px;line-height:22px}

.pdm-ledger-table td:first-child .record-title,.pdm-ledger-table td:last-child{white-space:nowrap}

.module-ledger{width:100%;table-layout:fixed;min-width:0!important}.dw-list .module-ledger th,.dw-list .module-ledger td{white-space:normal;padding:12px;overflow-wrap:anywhere;font-size:14px;line-height:22px}.module-ledger th:nth-child(1){width:22%}.module-ledger th:nth-child(2){width:42%}.module-ledger th:nth-child(3){width:16%}.module-ledger th:nth-child(4){width:20%}.module-ledger .record-title{white-space:normal!important;max-width:100%}.module-ledger p{font-size:14px;line-height:22px;margin:6px 0}.module-evidence-image{display:block;max-width:100%;height:150px;object-fit:contain;margin-top:12px}.dw-evidence-picker{max-height:260px;overflow:auto}
.cf-compose{min-width:660px}.cf-compose .field{margin:0}.cf-compose .field>span{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.cf-compose input,.cf-compose select{min-width:80px}.cf-compose td{vertical-align:top}.cf-compose tr:nth-child(even) td{padding-top:0}.cf-compose tr:nth-child(even) .field{display:inline-flex;width:55%;margin-right:12px}.cf-compose tr:nth-child(even) .field+label{width:40%}

.cf-ledger .record-title{display:block!important;max-width:100%;width:100%}.cf-ledger[data-cf-table="models"] th:nth-child(1){width:42%}.cf-ledger[data-cf-table="models"] th:nth-child(2){width:22%}.cf-ledger[data-cf-table="models"] th:nth-child(3),.cf-ledger[data-cf-table="models"] th:nth-child(4){width:18%}.cf-ledger[data-cf-table="quotes"] th:nth-child(1){width:36%}.cf-ledger[data-cf-table="quotes"] th:nth-child(2){width:26%}.cf-ledger[data-cf-table="fx"] th:nth-child(1){width:20%}.cf-ledger[data-cf-table="fx"] th:nth-child(2){width:15%}.cf-ledger[data-cf-table="fx"] th:nth-child(3){width:30%}.cf-ledger[data-cf-table="fx"] th:nth-child(4){width:35%}
.roadmap-tools{padding:12px 20px;flex-wrap:wrap;gap:10px;align-items:center}.roadmap-tools label{font-size:14px;display:inline-flex;gap:6px;align-items:center}.roadmap-tools select{height:44px;min-width:130px;font-size:14px}
.qw-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qw-photo-grid img{width:100%;height:180px;object-fit:contain;background:#fff}.qw-photo-grid span{display:block;font-size:14px;line-height:22px}.qw-case-ledger th:nth-child(1){width:34%}.qw-case-ledger th:nth-child(2){width:26%}.qw-case-ledger th:nth-child(3){width:23%}.qw-case-ledger th:nth-child(4){width:17%}.qw-case-summary{display:flex;gap:8px;align-items:center;margin-top:8px}.qw-case-summary img{width:64px;height:64px;object-fit:contain;flex:none}.qw-case-ledger .record-title{display:block!important;max-width:100%}

#modal-form .basic-column-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;max-height:264px}#modal-form .basic-column-picker label{min-height:44px;margin:0}#modal-form .basic-column-picker input{width:16px;height:16px;margin:0;flex:none}
.dw-list .qw-case-ledger{min-width:760px!important}.dw-list .qw-case-ledger th{white-space:nowrap}.qw-case-ledger td:last-child p{white-space:nowrap}


/* Project execution keeps milestone dates and the working task list together. */
.pw-phase-tabs{margin:0 0 20px}
.pw-phase-tabs button{text-align:left;padding:10px 16px}
.pw-phase-name{display:flex;flex-direction:column;gap:4px}
.pw-phase-date{color:#626262;font-size:14px;font-weight:400;line-height:22px}
.pw-stage-note{white-space:pre-wrap;font-size:14px;line-height:24px;margin:8px 0 20px}
.pw-task-heading{margin:20px 0 12px}
.pw-task-table{width:100%;table-layout:fixed;min-width:0!important}
.pw-task-table th,.pw-task-table td{white-space:normal!important;overflow-wrap:anywhere;line-height:22px;font-size:14px}
.pw-task-table th:nth-child(1){width:25%}.pw-task-table th:nth-child(2){width:10%}.pw-task-table th:nth-child(3){width:14%}.pw-task-table th:nth-child(4){width:11%}.pw-task-table th:nth-child(5){width:29%}.pw-task-table th:nth-child(6){width:11%}
.pw-task-note{white-space:pre-wrap!important}
.pw-more-actions{position:relative}
.pw-more-actions summary{cursor:pointer;list-style:none;min-height:40px;border:1px solid #c4c9ce;border-radius:3px;padding:8px 14px;font-size:14px;line-height:22px;background:#fff}
.pw-more-actions summary::-webkit-details-marker{display:none}
.pw-more-actions>div{position:absolute;right:0;top:calc(100% + 6px);z-index:4;min-width:170px;padding:6px;background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px #0002}
.pw-more-actions>div button{display:block;width:100%;text-align:left;border:0;min-height:44px;font-size:14px}
.pw-more-actions>div button:hover{background:#fff3ec}
.pw-info-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.pw-info-tabs button{border:0;background:none;font-size:14px;min-height:44px}
.pw-info-tabs button.active{background:#fff3ec;color:#a43e13}
.pw-form-options{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
.pw-form-options>summary{cursor:pointer;font-size:14px;line-height:24px;color:#565656}
.pw-form-options>.form-grid{margin-top:16px}
.pw-project-form-section{padding:0;margin:0;border-top:1px solid var(--line)}
.pw-project-form-section:first-child{border-top:0}
.pw-project-form-section>summary{min-height:44px;padding:10px 0;color:var(--ink);font-size:15px;font-weight:600}
.pw-project-form-section>.form-grid{margin:4px 0 20px}
.pw-project-form-section>.pw-project-scope,.pw-project-form-section>#pw-create-file-plan{margin:4px 0 20px}
.pw-scope-summary{margin-left:12px;color:#626262;font-size:13px;font-weight:400}
@media(max-width:800px){.pw-task-table{min-width:680px!important}.pw-stage-work>.product-section-heading{flex-wrap:wrap;gap:12px}}
.project-workspace:has(.project-inline-detail)>.panel-head{padding:8px 20px;min-height:44px}
.project-inline-detail>.drawer-head{padding:12px 28px}
.project-inline-detail>.drawer-head h2{font-size:22px;line-height:32px;margin:4px 0 8px}
.project-inline-detail .pj-detail-body{padding:16px 28px}
.project-inline-detail .product-parameter-tabs{padding-bottom:12px;margin-bottom:16px}
.pw-phase-tabs{padding-bottom:12px;margin-bottom:16px}
.pw-stage-work>.product-section-heading{margin-bottom:16px}
.pw-stage-work .product-section-heading h3{margin:0}
.pw-stage-work .product-section-heading p{margin:4px 0 0}
.pw-stage-work .product-section-heading>.button-row{margin-top:0;align-items:center}
.pw-more-actions{margin-top:0}
.pw-task-table tbody tr:last-child td{font-size:14px;line-height:22px}
@media(max-width:800px){.project-inline-detail .pj-detail-body,.project-inline-detail>.drawer-head{padding:16px}}
.project-inline-detail>.drawer-head h2{margin-bottom:4px}
.project-inline-detail .pj-detail-body{padding-top:12px}
.pw-task-heading{margin-top:12px}

/* A project starts with its purpose and product scope; journals stay within milestones. */
.pw-project-purpose{margin-bottom:24px}
.pw-project-purpose h4{font-size:16px;margin:16px 0 8px}
.pw-project-purpose p{font-size:15px;line-height:26px;white-space:pre-wrap;margin:0 0 16px}
.pw-product-family{margin:0 0 16px;border:1px solid var(--line)}
.pw-product-family>summary{padding:12px 16px;background:#fafafa;font-size:15px;line-height:24px;color:var(--ink);min-height:48px}
.pw-product-family>summary span{color:#626262;margin-left:12px;font-size:14px}
.pw-legacy-work{margin:20px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.pw-legacy-work>summary{font-size:14px;line-height:24px;color:#565656}
.pw-legacy-work>.table-wrap{margin-top:12px}
.pw-journal-table,.pw-project-cost-table{table-layout:fixed;min-width:0!important;width:100%}
.pw-journal-table th,.pw-journal-table td,.pw-journal-table tbody tr:last-child td,.pw-project-cost-table th,.pw-project-cost-table td,.pw-project-cost-table tbody tr:last-child td{font-size:14px;line-height:24px;white-space:normal!important;overflow-wrap:anywhere}
.pw-journal-table th:nth-child(1){width:14%}.pw-journal-table th:nth-child(2){width:23%}.pw-journal-table th:nth-child(3){width:42%}.pw-journal-table th:nth-child(4){width:11%}.pw-journal-table th:nth-child(5){width:10%}
.pw-project-cost-table th:nth-child(1){width:21%}.pw-project-cost-table th:nth-child(2){width:16%}.pw-project-cost-table th:nth-child(3){width:17%}.pw-project-cost-table th:nth-child(4){width:18%}.pw-project-cost-table th:nth-child(5){width:17%}.pw-project-cost-table th:nth-child(6){width:11%}
.pw-project-scope{grid-column:1/-1}
.pw-project-scope h3{font-size:18px;margin:0 0 12px}
.pw-project-scope>input{width:100%}
.pw-scope-mode{display:flex;align-items:center;gap:8px;font-size:14px;margin:12px 0}
.pw-scope-mode input,.pw-family-choice input{min-height:0;accent-color:#e96428}
.pw-family-choice{padding:12px 0;border-bottom:1px solid var(--line)}
.pw-family-choice>label{display:flex;align-items:center;gap:8px;font-size:14px;min-height:28px}
.pw-family-skus{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 0 24px}
.pw-family-skus label{display:flex;align-items:center;gap:8px;font-size:14px;min-height:28px}
.pw-family-skus>span{font-size:14px;color:#626262}
.pw-supplier-quote{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:24px}
@media(max-width:800px){.pw-journal-table,.pw-project-cost-table{min-width:680px!important}}
.pw-product-family .records-table td,.pw-product-family .records-table tbody tr:last-child td{font-size:14px;line-height:24px}
.project-inline-detail>.drawer-head{padding:16px 24px;align-items:center;gap:16px}
.project-inline-detail>.drawer-head>.pw-project-identity{width:auto;flex:1;min-width:240px}
.project-inline-detail>.drawer-head .record-id{font-size:14px;line-height:22px;margin:0}
.project-inline-detail>.drawer-head h2{font-size:22px;line-height:30px;margin:4px 0 6px}
.project-inline-detail>.drawer-head .pw-project-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:6px}
.project-inline-detail>.drawer-head .pw-project-title h2{margin:0;max-width:100%;overflow-wrap:anywhere}
.project-inline-detail>.drawer-head .pw-project-title .record-id{display:flex;align-items:center;gap:8px;white-space:nowrap}
.project-inline-detail>.drawer-head .product-identity-meta{line-height:22px;gap:4px 20px}
.project-inline-detail>.drawer-head>.pw-identity-actions{display:flex;flex:0 0 auto;width:auto;gap:8px;flex-wrap:wrap}
.pw-identity-actions button{font-size:14px;min-height:40px}
.project-inline-detail .pj-detail-body:has(.pw-basics){padding:12px 24px 20px}
.project-inline-detail .pj-detail-body:has(.pw-basics)>.product-parameter-tabs{padding-bottom:12px;margin-bottom:16px}
.pj-detail-body .section.pw-basics{padding:0;margin:0;border:0}
.pw-project-definition{margin:0 0 20px}
.pw-project-definition>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line);min-height:48px}
.pw-project-definition>div:first-child{padding-top:0}
.pw-project-definition dt{font-size:14px;line-height:24px;font-weight:600;margin:0}
.pw-project-definition dd{font-size:15px;line-height:24px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.pw-scope-heading{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:0 0 12px}
.pj-detail-body .pw-scope-heading h3{font-size:16px;line-height:24px;margin:0}
.pw-scope-heading>span{font-size:13px;line-height:20px;color:#626262}
.pw-basics .pw-product-family{border:0;border-bottom:1px solid var(--line);margin:0 0 12px}
.pw-basics .pw-product-family>summary{font-size:14px;line-height:22px;padding:11px 12px;min-height:44px}
.pw-basics .pw-legacy-work{margin-top:16px}
@media(max-width:700px){.pw-project-definition>div{grid-template-columns:1fr;gap:4px}.project-inline-detail>.drawer-head,.project-inline-detail .pj-detail-body:has(.pw-basics){padding-left:16px;padding-right:16px}}

/* List titles and filters share the project overview's spacing. */
.list-heading{min-width:0}
.panel-head .list-heading h2{font-size:20px;line-height:28px;color:var(--ink);margin:0}
.list-heading .heading-count,summary .heading-count{display:block;margin:4px 0 0;font-size:13px;line-height:20px;font-weight:400;color:#626262}
.heading-count[hidden]{display:none}
.pw-analysis-home #pj-filters{gap:10px;align-items:center;max-width:none;padding:16px 20px;margin:0}
.pw-analysis-home #pj-filters .pw-analysis-count{flex:none;white-space:nowrap;margin:0 6px 0 0;font-size:14px;line-height:22px;color:#626262}
.pw-analysis-home #pj-filters label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pw-analysis-home #pj-filters .pw-search{width:230px}
.pw-analysis-home #pj-filters .pw-filter-actions{margin-left:auto;align-items:center;flex-wrap:wrap}
.pw-home-title{align-items:flex-start}
.pw-home-title .pw-view-switch{margin-top:0}
.filters,.dw-filters,.roadmap-panel #rm-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 12px;padding:8px 20px 22px;max-width:1320px;margin:0}
.filters .p-filter,.filters .filter-search,.dw-filters .field,.dw-filters .field:first-child,.filter-date-field{display:flex;flex-direction:column;gap:6px;flex:0 1 140px;width:140px;min-width:0;font-size:14px;line-height:20px;font-weight:400;color:#626262}
.filters .filter-search,.dw-filters .field:has(>input[name=q]){flex:0 1 230px;width:230px;min-width:180px}
.filters .search{flex:none;min-width:0;width:100%}
.filters input:not([type=checkbox]),.filters select,.dw-filters input:not([type=checkbox]),.dw-filters select{width:100%;height:44px;min-height:44px;min-width:0;max-width:none;font-size:14px}
.filters .p-filter>span,.filters .filter-search>span,.dw-filters .field>span,.filter-date-field>span{font-size:14px;line-height:20px;font-weight:400;color:#626262}
.filters .filter-date-field{flex:0 1 302px;width:302px}
.filter-date-range{display:flex;align-items:center;gap:8px;min-height:44px}
.filter-date-range input{flex:1;min-width:0}
.filter-date-range>span{flex:none;font-size:14px;color:#626262}
.filter-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.filters .filter-actions{order:1}
.filters button,.filters .small,.dw-filters button{min-height:44px;font-size:14px}
.filters .p-checkbox{font-size:14px;min-height:44px}
.roadmap-panel #rm-filters .p-filter{flex:0 1 150px;width:150px;gap:6px}
.dw-filters .dw-multi-label{flex:0 1 140px}
.pw-projects-home #pj-filters .p-filter{width:auto}
.data-workspace>.dw-filters:first-child,.roadmap-panel #rm-filters{padding-top:20px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px}
.workspace-heading h2{font-size:20px;line-height:28px;color:var(--ink);margin:0}
.workspace-actions,.workspace-header-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.workspace-actions{margin-left:auto}
.workspace-actions:empty{display:none}
.workspace-actions button{min-height:40px;font-size:14px;border-radius:4px;white-space:nowrap}
.workspace-actions .ghost{color:#626262}
.workspace-actions .primary{background:#e96428;border-color:#e96428;color:#fff}
.workspace-actions .primary:hover{background:#d45219;border-color:#d45219}
.workspace-header-controls{margin-left:auto;gap:24px}
.product-workspace:has(.product-detail-layout) .workspace-actions>button:not(#module-return){display:none}
.product-workspace:has(.product-inline-detail)>#p-filters{display:none}
@media(max-width:600px){
 .filters,.dw-filters,.roadmap-panel #rm-filters{gap:16px 12px;padding:8px 16px 20px}
 .filters .filter-search,.dw-filters .field:has(>input[name=q]),.filters .filter-date-field{flex-basis:100%;width:100%;min-width:0}
 .filters .p-filter,.dw-filters .field,.roadmap-panel #rm-filters .p-filter{flex-basis:calc(50% - 6px);width:calc(50% - 6px)}
 .pw-home-title{gap:16px}
}

.pw-product-family>summary .pw-family-sku-link{float:right;margin-left:16px;font-size:14px;font-weight:400}

/* Product and project list controls share the same right-aligned sizing. */
.panel-head>.workspace-view-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-wrap:wrap}
.pw-home-actions+.workspace-view-controls{margin-left:0}
.workspace-view-controls #p-sort,.workspace-view-controls #pw-sort,.workspace-view-controls #record-sort{width:108px;min-width:108px;max-width:108px;height:40px;min-height:40px;padding:8px 12px;font-size:14px;border-radius:4px}
.workspace-view-controls button,.pw-view-switch.workspace-view-controls button{height:40px;min-height:40px;min-width:64px;padding:8px 16px;margin:0;border-radius:4px;font-size:14px}

.workspace-header-controls{gap:20px}.workspace-header-controls>.workspace-view-controls{margin-left:0}

.pw-timing-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}.modal.pw-timing-modal{width:min(1440px,calc(100vw - 48px));max-width:calc(100vw - 48px)}.pw-timing-table{min-width:1120px}.pw-timing-table input{width:150px;min-height:40px;font-size:14px}.pw-timing-table td{vertical-align:middle;white-space:nowrap}.pw-timing-note{font-size:14px;line-height:22px;margin:0 0 16px;color:#626262}

.pw-milestone-manager{min-width:1400px}.pw-milestone-manager input[data-stage-field=name]{width:170px}.pw-milestone-manager select[data-stage-field=status]{min-width:100px;min-height:40px}.pw-milestone-row-actions{display:flex;align-items:center;gap:6px}.pw-milestone-row-actions button{min-height:36px;padding:6px 9px;white-space:nowrap}.pw-milestone-manager-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.pw-milestone-manager-heading p{margin:0}.pw-stage-settings{padding:16px 0;min-width:0}.pw-stage-settings input,.pw-stage-settings select,.pw-stage-settings textarea{width:100%}.pw-stage-settings input[type=checkbox]{width:auto;min-height:0}.pw-stage-accordion{border-bottom:1px solid var(--line)}.pw-stage-accordion>summary{padding:14px 16px;min-height:52px;line-height:24px;background:#fafafa;cursor:pointer}.pw-stage-accordion-name{font-weight:600;font-size:16px;margin-right:16px}.pw-stage-accordion-meta{display:inline-block;font-size:14px;color:#626262;margin-left:24px}.pw-stage-accordion .pw-stage-work{padding:16px}.pw-stage-accordion .product-section-heading>p{margin:0}

.modal.pw-milestone-modal{width:min(1720px,calc(100vw - 48px))}.pw-milestone-manager th,.pw-milestone-manager td{padding:10px 12px}.pw-milestone-manager input[type=date]{width:140px}.pw-milestone-manager input[data-stage-field=name]{width:150px}

.pw-milestone-manager thead th:last-child,.pw-milestone-manager tr[data-pw-timing]>td:last-child{position:sticky;right:0;background:#fff;border-left:1px solid var(--line);z-index:1}.pw-milestone-manager thead th:last-child{z-index:2}

.pw-milestone-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:12px}.pw-milestone-overview>.pw-phase-tabs{flex:1;margin:0;padding:0;border:0}.pw-milestone-overview>#pw-stage-timing{flex-shrink:0}.with-top-nav .pw-stage-accordion>summary{padding:10px 12px;min-height:44px;background:#fff}.with-top-nav .pw-stage-accordion-name{font-size:14px;font-weight:500;margin-right:12px}.pw-stage-record-count{font-size:14px;color:#626262}.with-top-nav .pw-stage-accordion .pw-stage-work{padding:12px 12px 16px}@media(max-width:800px){.pw-milestone-overview{flex-wrap:wrap}.pw-milestone-overview>#pw-stage-timing{margin-left:auto}}

.pw-identity-actions:empty{display:none}.pw-identity-actions{flex-wrap:wrap;justify-content:flex-end}.pw-identity-actions button{min-height:40px;font-size:14px;padding:8px 16px;white-space:nowrap}

.with-top-nav .pw-stage-accordion{margin:0}.with-top-nav .pw-stage-accordion>summary{padding:8px 12px;min-height:40px}.with-top-nav .pw-stage-accordion .pw-stage-work{padding:8px 12px 12px}.with-top-nav .pw-task-heading{margin-top:0;margin-bottom:12px}

.pw-file-tree .pw-tree-file{padding-left:28px;font-weight:400;white-space:normal;overflow-wrap:anywhere;text-align:left}

.pw-light-task-table th,.pw-light-task-table td{font-size:14px;line-height:22px;vertical-align:middle;padding:10px 12px}.pw-light-task-table .button-row{gap:8px}.pw-task-description{margin:4px 0 0;white-space:pre-wrap;color:#626262}.pw-task-history-row>td{padding:0 12px 8px}.pw-task-history>summary{font-size:14px;line-height:22px;padding:8px 0;cursor:pointer}.pw-task-history .pw-journal-table{margin:8px 0}.pw-task-files{display:flex;flex-wrap:wrap;gap:12px;padding:10px 0}.pw-task-history .pw-journal-table td{font-size:14px}

.pw-task-actual-date{font-size:14px;color:#626262;line-height:22px;margin-top:4px}

.pw-light-task-table .pw-latest-progress{min-width:190px;max-width:320px}.pw-latest-progress-text{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.modal.pw-task-record-modal{width:min(1100px,calc(100vw - 48px));max-width:calc(100vw - 48px)}.pw-task-record-modal .records-table{min-width:700px}

.pw-light-task-table{min-width:1400px}.pw-light-task-table th{white-space:nowrap}.pw-light-task-table td:first-child{min-width:130px}.pw-light-task-table td:nth-child(2){min-width:70px}.pw-light-task-table td:nth-child(3),.pw-light-task-table td:nth-child(4),.pw-light-task-table td:nth-child(5){white-space:nowrap}.pw-light-task-table td:last-child>.button-row{flex-wrap:nowrap;white-space:nowrap}

.pw-due-change-box{grid-column:1/-1;padding:12px 16px;background:#fff7f2;border-left:3px solid #E96428}.pw-due-change-box>p{margin:0 0 10px;font-size:14px}.pw-due-change-box textarea{min-height:88px}

.mt-workspace .dw-layout.has-selection{grid-template-columns:minmax(0,1fr) 360px}
.mt-task-table{min-width:1100px}.mt-task-table th:nth-child(3),.mt-task-table td:nth-child(3){white-space:nowrap}
.mt-task-table td:first-child{min-width:180px;max-width:260px}.mt-task-table td:nth-child(2){min-width:130px}.mt-task-table td:nth-child(6){min-width:180px;max-width:280px}
.mt-task-table .button-row{flex-wrap:nowrap}.mt-record-text{font-size:14px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}
.mt-task-table .mt-record-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mt-task-meta{display:grid;grid-template-columns:80px 1fr;gap:12px;margin:20px 0}.mt-task-meta dt{color:var(--muted)}.mt-task-meta dd{margin:0}.mt-workspace .dw-detail h3{margin-top:24px}
@media(max-width:1100px){.mt-workspace .dw-layout.has-selection{display:block}.mt-workspace .dw-detail{border-left:0;border-top:1px solid var(--line)}}

.pw-task-toolbar{display:flex;justify-content:flex-end;margin:0 0 4px}.pw-task-toolbar button{min-height:34px;padding:6px 12px}
.with-top-nav .pw-stage-accordion .pw-stage-work{padding:4px 12px 8px}
.pw-light-task-table th,.pw-light-task-table td{padding:6px 12px;line-height:22px;height:44px}
.pw-light-task-table .button-row button{min-height:32px;padding:5px 9px}.pw-light-task-table .pw-task-actual-date{margin-top:2px}

.mt-record-history .pw-journal-table th:last-child,.mt-record-history .pw-journal-table tbody td:last-child:not([colspan]){display:none}

.pw-light-task-table{min-width:1100px}.pw-task-menu{position:fixed;inset:auto;margin:0;min-width:160px;padding:4px;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 4px 16px #0002}.pw-task-menu button{display:block;width:100%;border:0;text-align:left;min-height:40px!important;padding:8px 12px!important;background:#fff;font-size:14px}.pw-task-menu button:hover{background:#fff3ec}.pw-task-detail-meta{display:grid;grid-template-columns:80px 1fr 80px 1fr;gap:12px;margin:16px 0 24px}.pw-task-detail-meta dt{color:var(--muted)}.pw-task-detail-meta dd{margin:0}

.pw-project-cost-table tfoot th,.pw-project-cost-table tfoot td{font-size:14px;font-weight:600;padding:14px 12px;border-top:1px solid var(--line);background:#fafafa;white-space:nowrap}.pw-project-cost-table tfoot th{text-align:left;color:var(--text)}

.modal.pw-file-manager-modal{width:min(980px,calc(100vw - 48px));max-width:calc(100vw - 48px)}.pw-file-manager-stage{margin:0 0 24px}.pw-file-manager-stage .product-section-heading{margin-bottom:12px;gap:12px;flex-wrap:wrap}.pw-file-manager-stage h3{margin:0;font-size:16px}.pw-file-library-add{display:flex;gap:8px;align-items:center}.pw-file-library-add input{width:300px;min-height:36px}.pw-file-manager-stage table{min-width:620px}.pw-file-manager-stage th:not(:nth-child(2)),.pw-file-manager-stage td:not(:nth-child(2)){text-align:center;white-space:nowrap}.pw-file-manager-stage input[type=checkbox]{width:18px;height:18px}.pw-file-manager-stage td{height:44px;padding:8px 12px}

.pw-operation-history{margin-top:20px;border-top:1px solid var(--line);padding-top:12px}.pw-operation-history>summary{font-size:14px;line-height:22px;color:#626262;cursor:pointer}.pw-operation-history>.table-wrap{margin-top:12px}.pw-operation-history .records-table th,.pw-operation-history .records-table td{font-size:14px;padding:10px 12px}

.cf-supplier-sheet{padding:12px 0;border-bottom:1px solid var(--line)}.cf-supplier-sheet p{margin:6px 0;font-size:14px;line-height:22px}.cf-sheet-scope{font-size:14px;line-height:24px}.cf-sheet-scope a{display:inline-block}.dw-detail .product-section-heading{flex-wrap:wrap;gap:8px}

.modal.cf-sheet-editor{width:min(900px,calc(100vw - 48px))}.cf-sheet-editor .p-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;max-height:220px;overflow:auto;margin-top:8px}.cf-sheet-editor .p-checks legend{display:none}.cf-sheet-editor .p-checks label{display:flex;gap:6px;align-items:flex-start;min-height:32px;font-size:14px;line-height:22px;padding:4px 0;margin:0}.cf-sheet-editor .p-checks label[hidden]{display:none}.cf-sheet-editor .p-checks input{flex-shrink:0;margin-top:3px}

.pw-project-board{display:grid;grid-template-columns:repeat(5,minmax(260px,1fr));gap:16px;padding:0 20px 20px;overflow-x:auto;align-items:start}.pw-board-column{min-width:0;background:#f7f7f7;border:1px solid var(--line);border-radius:4px}.pw-board-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-bottom:1px solid var(--line)}.pw-board-heading h3{margin:0;font-size:16px;line-height:24px}.pw-board-heading>span{font-size:14px;color:#626262}.pw-board-items{display:flex;flex-direction:column;gap:12px;padding:12px}.pw-board-card{border:1px solid var(--line);border-radius:4px;background:#fff;padding:14px}.pw-board-card .pw-board-title{font-size:16px;line-height:24px;font-weight:600;text-align:left;white-space:normal}.pw-board-number{font-size:14px;color:#626262;margin:6px 0 12px}.pw-board-card dl{display:grid;grid-template-columns:64px 1fr;gap:6px 8px;margin:0 0 12px;font-size:14px;line-height:22px}.pw-board-card dt{color:#626262}.pw-board-card dd{margin:0}.pw-board-stage{font-size:14px}.pw-board-progress{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;color:#626262}.pw-board-progress progress{width:100%;min-width:0;height:6px;accent-color:#e96428}.pw-board-progress span{white-space:nowrap}.pw-board-next{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:14px;line-height:22px}.pw-board-next>span{display:block;color:#626262;margin-bottom:4px}.pw-board-next .record-title{text-align:left;white-space:normal;font-size:14px}.pw-board-next p{margin:4px 0 0;color:#626262}.pw-board-empty{font-size:14px;color:#626262;margin:6px 0 12px}

.pw-board-summary{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin:0 20px 16px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:22px}.pw-board-summary span{color:#626262}.pw-board-summary strong{font-size:16px;color:var(--ink);margin-left:6px}.pw-project-board .pw-board-title{padding:0;min-height:0}.pw-board-heading{border-top:2px solid #c7cbd0}.pw-board-column[aria-label="进行中"]>.pw-board-heading{border-top-color:#e96428}.pw-board-column[aria-label="已完成"]>.pw-board-heading{border-top-color:#45978a}

.pw-project-analysis{padding:0 20px 20px}.pw-analysis-scope{font-size:14px;color:#626262;line-height:24px;margin:0 0 12px}.pw-analysis-metrics{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;gap:16px}.pw-analysis-metrics span{display:block;font-size:14px;color:#626262}.pw-analysis-metrics strong{display:block;font-size:26px;margin-top:6px}.pw-analysis-breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:12px 0 24px}.pw-project-analysis h3{font-size:18px;margin:18px 0 12px}.pw-analysis-bar{display:grid;grid-template-columns:minmax(100px,1fr) 2fr 32px;align-items:center;gap:16px;min-height:44px;font-size:14px}.pw-analysis-bar progress{width:100%;height:12px;accent-color:#ed682d}.pw-analysis-bar strong{text-align:right}.pw-project-analysis .records-table th,.pw-project-analysis .records-table td{padding:12px 14px;min-height:44px}.pw-project-analysis .records-table{width:100%}@media(max-width:900px){.pw-analysis-breakdowns{grid-template-columns:1fr}.pw-analysis-metrics{grid-template-columns:repeat(3,1fr)}}

.pw-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;margin:20px 0}.pw-chart{min-width:0;border:1px solid var(--line);border-radius:4px;padding:0 18px 16px;background:#fff}.pw-chart h3{margin:16px 0 12px}.pw-chart-note{font-size:14px;color:#626262;margin:0 0 14px;line-height:22px}.pw-status-chart{display:flex;align-items:center;gap:20px;min-height:200px}.pw-status-chart svg{width:180px;flex:none;max-width:44%}.pw-donut-count{font-size:28px;font-weight:600;fill:var(--ink)}.pw-donut-label{font-size:14px;fill:#626262}.pw-status-legend{flex:1}.pw-status-legend button{display:grid;grid-template-columns:10px 1fr 24px 42px;gap:10px;align-items:center;width:100%;border:0;background:none;min-height:38px;padding:6px 0;font-size:14px;text-align:left}.pw-status-legend i,.pw-chart-legend i{width:9px;height:9px;border-radius:2px;display:inline-block;flex:none}.pw-status-legend button>span:last-child{color:#626262;text-align:right}.pw-chart-legend{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 14px;font-size:14px;line-height:22px}.pw-chart-legend span{display:flex;align-items:center;gap:5px}.pw-chart-bars{max-height:270px;overflow:auto}.pw-chart-bar{display:grid;grid-template-columns:minmax(88px,1fr) 2fr 28px;gap:14px;align-items:center;width:100%;min-height:44px;border:0;background:none;border-radius:0;text-align:left;padding:8px 0;font-size:14px;line-height:22px}.pw-chart-bar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-bar-track{display:block;height:14px;background:#f0f2f4;border-radius:3px;overflow:hidden}.pw-bar-track i{display:block;height:100%;border-radius:3px}.pw-stacked-track{display:flex;background:none}.pw-stacked-track i{border-radius:0}.pw-chart-bar strong{text-align:right}.pw-month-chart{display:flex;gap:20px;overflow-x:auto;align-items:flex-end;min-height:180px;padding:0 4px 0}.pw-month-chart button{flex:1;min-width:66px;max-width:110px;display:flex;align-items:center;flex-direction:column;gap:10px;border:0;background:none;padding:0;font-size:14px;white-space:nowrap}.pw-month-track{display:flex;align-items:flex-end;height:125px;width:36px;background:#f0f2f4;border-radius:3px;overflow:hidden}.pw-month-track i{width:100%;background:#579baf;border-radius:3px}.pw-analysis-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.pw-analysis-detail-head>span,.pw-analysis-detail-head h3 span{font-size:14px;color:#626262;font-weight:400}.pw-analysis-definitions{margin-top:20px;font-size:14px;color:#626262;line-height:24px}.pw-chart button:hover{background:#fff5ef}.pw-chart button:focus-visible{outline:2px solid #ed682d;outline-offset:2px}@media(max-width:1050px){.pw-status-chart{gap:8px}.pw-chart{padding-left:14px;padding-right:14px}.pw-status-legend button{gap:6px}}@media(max-width:850px){.pw-chart-grid{grid-template-columns:1fr}}

.filters .workspace-sort-field{flex:0 0 184px;min-width:184px;max-width:184px}.filters .workspace-sort-field select{width:100%;min-width:0;height:44px;padding:10px 12px;font-size:14px;border-radius:4px}.filters .workspace-sort-field>span{font-size:14px;line-height:22px}.filters .workspace-sort-field+ .filter-actions,.filters .workspace-sort-field+ .pw-filter-actions{flex-shrink:0}

.pw-board-compact{grid-template-columns:repeat(5,minmax(220px,1fr));gap:12px}.pw-board-compact .pw-board-heading{padding:10px 12px}.pw-board-compact .pw-board-items{padding:8px;gap:8px;max-height:65vh;overflow-y:auto;scrollbar-gutter:stable}.pw-board-compact .pw-board-card{padding:12px}.pw-board-compact .pw-board-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;line-height:22px;width:100%;min-height:0}.pw-board-compact-meta{display:flex;justify-content:space-between;gap:8px;margin:8px 0 4px;font-size:14px;line-height:22px;color:#626262}.pw-board-compact-meta>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-board-compact-meta>span:last-child{white-space:nowrap}.pw-board-compact .pw-board-stage{padding:0;font-size:14px;line-height:22px;min-height:0;color:#626262}.pw-board-compact .pw-board-stage:hover{color:var(--accent)}

.pw-board-card[draggable="true"]{cursor:grab}.pw-board-card.pw-dragging{opacity:.45}.pw-board-column.pw-drop-target{border-color:#ef6b2c;background:#fff3eb;outline:2px solid #ef6b2c;outline-offset:-2px}.pw-board-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}.pw-board-card-foot .ghost{min-height:28px;padding:2px 6px;font-size:14px;border:0;background:transparent;color:#626262}.pw-board-card-foot .ghost:hover{color:#db5517;background:#fff3eb}

.pw-board-grouping{display:flex;gap:8px;align-items:center;margin:0 20px 12px}.pw-board-grouping button{font-size:14px;min-height:36px;padding:6px 12px}.pw-board-grouping button.active{border-color:#e96428;color:#bf4718;background:#fff3eb}.pw-board-grouping>span{font-size:14px;color:#626262;margin-left:auto}.pw-board-phase-name{font-size:14px;color:#626262}@media(max-width:750px){.pw-board-grouping>span{display:none}}

.pw-checklist-task{font-size:14px;line-height:24px;margin:0 0 12px;color:#626262}.pw-checklist-task strong{font-weight:500;color:var(--ink)}

.pw-stage-task-preview h5,.pw-checklist-file-label{font-size:14px;line-height:22px;margin:12px 0 8px;font-weight:600}.pw-stage-task-preview .records-table th{background:#f6f7f8;color:var(--ink);border-bottom:1px solid var(--line)}.pw-stage-task-preview .records-table td{font-size:14px;line-height:22px;padding:12px 16px}.pw-stage-task-preview p{font-size:14px;line-height:22px;color:#626262;margin:8px 0 18px}

/* Keep project and task names visible when the detail panel cannot fit beside the table. */
.mt-task-table{min-width:940px;table-layout:fixed}
.mt-task-table th:nth-child(1){width:23%}.mt-task-table th:nth-child(2){width:17%}.mt-task-table th:nth-child(3){width:12%}.mt-task-table th:nth-child(4){width:8%}.mt-task-table th:nth-child(5){width:9%}.mt-task-table th:nth-child(6){width:16%}.mt-task-table th:nth-child(7){width:15%}
.mt-task-table td{overflow-wrap:anywhere}.mt-task-table td:first-child,.mt-task-table td:nth-child(2),.mt-task-table td:nth-child(6){min-width:0}.mt-task-table th,.mt-task-table td{padding-inline:12px}
@media(max-width:1550px){.mt-workspace .dw-layout.has-selection{display:block}.mt-workspace .dw-detail{position:fixed;right:16px;top:132px;bottom:16px;width:min(380px,calc(100vw - 32px));overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 30px #0002;z-index:60}}

/* Quality and engineering changes share a compact record-first workbench. */
.qc-flow{display:flex;list-style:none;padding:0;margin:14px 0;gap:4px;flex-wrap:wrap}.qc-flow li{font-size:14px;line-height:22px;padding:5px 7px;border-bottom:2px solid #e4e6ea;color:#666}.qc-flow li.current{color:#b7471d;border-color:#ff713d;font-weight:600;background:#fff4ed}.qc-flow li.done{color:#28796c;border-color:#9acac0}.cm-flow li{padding-inline:5px}.qc-next-step{font-size:14px;line-height:23px;padding:10px 12px;background:#faf7f3;border-left:2px solid #e8b491}.qc-related-changes{margin:18px 0;padding-top:12px;border-top:1px solid var(--line)}
.quality-v1-workspace .qw-case-ledger{min-width:860px;table-layout:fixed}.quality-v1-workspace .qw-case-ledger th:nth-child(1){width:28%}.quality-v1-workspace .qw-case-ledger th:nth-child(2){width:34%}.quality-v1-workspace .qw-case-ledger th:nth-child(3){width:12%}.quality-v1-workspace .qw-case-ledger th:nth-child(4){width:15%}.quality-v1-workspace .qw-case-ledger th:nth-child(5){width:11%}.quality-v1-workspace .qw-case-ledger td{overflow-wrap:anywhere;font-size:14px;padding:12px}.change-v1-workspace .module-ledger{min-width:860px}.change-v1-workspace .module-ledger td{font-size:14px;padding:12px}.change-v1-workspace .module-ledger td:first-child{min-width:180px}.change-v1-workspace .module-ledger td:nth-child(2){min-width:180px}
@media(max-width:1550px){.quality-v1-workspace .dw-layout.has-selection,.change-v1-workspace .dw-layout.has-selection{display:block}.quality-v1-workspace .dw-detail,.change-v1-workspace .dw-detail{position:fixed;right:16px;top:132px;bottom:16px;width:min(420px,calc(100vw - 32px));overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 30px #0002;z-index:60}}
.cm-impact-form{margin:20px 0}.cm-impact-form summary{font-size:15px;font-weight:600;cursor:pointer;padding:10px 0}.cm-impact-form .form-grid{margin-top:8px}

.um-workspace .panel-head{display:flex;justify-content:space-between;align-items:center}.um-table{min-width:720px}.um-table th,.um-table td{font-size:14px;padding:14px;vertical-align:middle}.um-table td:first-child{min-width:160px}.um-table td:nth-child(2){font-family:inherit}.um-me{font-size:14px;color:#666}.um-role-note{font-size:14px;line-height:24px;color:#5e6268;margin:0}.um-offline{padding:20px;line-height:26px}
@media(max-width:1450px){.um-workspace .dw-layout.has-selection{display:block}.um-workspace .dw-detail{position:fixed;right:16px;top:132px;bottom:16px;width:min(420px,calc(100vw - 32px));overflow:auto;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 30px #0002;z-index:60}}

.bk-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.bk-note{padding:16px 20px;font-size:14px;line-height:1.7}.bk-table{min-width:720px}.bk-table th,.bk-table td{padding:14px 16px;font-size:14px}.bk-checks>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #e7e7eb}.bk-checks dt,.bk-checks dd{margin:0;font-size:14px}.bk-file-name,.bk-digest{overflow-wrap:anywhere;font-size:14px;line-height:1.6}.bk-table-name{font-size:14px;color:#555}.bk-download{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid #c5c9d3;border-radius:4px;color:#222;font-size:14px;background:white;text-decoration:none}
@media(max-width:1450px){.bk-workspace .dw-layout.has-selection{display:block}.bk-workspace .dw-detail{position:fixed;right:16px;top:132px;bottom:16px;width:min(420px,calc(100vw - 32px));overflow:auto;background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:0 8px 24px #0002;z-index:60}}
/* Editing dialogs and discard prompts must stay above fixed workspace details. */
#overlay{position:relative;z-index:70}#toast{z-index:100}
.qw-action-card{padding:14px 0}.qw-action-card>p{margin:8px 0;font-size:14px;line-height:23px}.qw-action-card>.dw-history{margin-top:10px}.qw-action-card .dw-actions{margin:12px 0}

.pdm-category-nav[hidden]{display:none}.pdm-category-toggle{margin-left:auto;font-size:16px;line-height:20px}.pdm-type-heading th{background:#f4f4f5!important;color:#28211e!important;font-size:14px;padding:10px 16px!important;border-bottom:1px solid var(--line)!important}.pdm-type-heading th span{margin-left:12px;font-weight:400;color:#555}
/* Quality and change review: keep the ledger intact and open a focused, readable drawer. */
.qc-review-backdrop{position:fixed;inset:0;background:rgba(20,18,16,.24);z-index:59}
.quality-v1-workspace .dw-layout.has-selection,.change-v1-workspace .dw-layout.has-selection{display:block}
.quality-v1-workspace .qc-review-detail,.change-v1-workspace .qc-review-detail{position:fixed;inset:16px 16px 16px auto;width:min(720px,calc(100vw - 32px));max-width:none;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;box-shadow:0 12px 48px #0003;z-index:60}
.qc-review-detail .dw-detail-heading{position:sticky;top:-24px;background:#fff;z-index:3;padding:16px 0 12px;margin-top:-8px;border-bottom:1px solid var(--line)}
.qc-review-detail .dw-detail-heading h2{font-size:20px;line-height:28px;margin-bottom:0}
.qc-review-detail .dw-detail-heading button{flex:none;min-width:40px;min-height:40px}
.qc-record-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:20px 0}
.qc-record-meta>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;font-size:14px;line-height:24px}
.qc-record-meta dt{color:#666}.qc-record-meta dd{margin:0;font-weight:500}
.qc-detail-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:20px 0 8px}
.qc-detail-tabs button{border:0;border-radius:0;background:transparent;min-height:44px;padding:10px 2px;color:#555;font-size:15px}
.qc-detail-tabs button[aria-selected=true]{border-bottom:2px solid #e75b24;color:#b64214;font-weight:600}
.qc-review-detail [role=tabpanel][hidden]{display:none}
.qc-review-detail [role=tabpanel]{padding-bottom:12px}
.qc-field-value{padding:10px 0;border-bottom:1px solid #f0f0f0}.qc-field-value h4{margin:0;color:#555;font-size:14px;font-weight:500}.qc-field-value p{margin:6px 0}
.qc-review-detail .dw-actions{gap:8px;align-items:center;flex-wrap:wrap}
.qc-review-detail .qw-action-card{padding:16px 0}.qc-review-detail .qw-action-card strong{font-size:16px;line-height:24px}
.qc-review-detail .qc-more-actions{position:relative;margin-left:auto;font-size:14px}
.qc-more-actions>summary{padding:10px;min-height:40px;box-sizing:border-box;cursor:pointer;list-style:none;color:#555}
.qc-more-actions[open]>div{position:absolute;right:0;top:44px;z-index:4;background:#fff;padding:8px;min-width:140px;border:1px solid var(--line);border-radius:4px;box-shadow:0 6px 18px #0002}
.qc-more-actions[open]>div button{width:100%;white-space:nowrap}
.qc-extra-filters{flex-basis:100%;font-size:14px}.qc-extra-filters>summary{cursor:pointer;color:#555;padding:8px 0}.qc-extra-filters>div{display:flex;gap:12px;flex-wrap:wrap;padding:12px 0 0}.qc-extra-filters>div>.field{flex:1;min-width:140px}
.quality-v1-workspace #qw-filters>.field:first-child{flex:1.5;min-width:180px}
.qc-review-detail button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.qc-review-backdrop{background:rgba(20,18,16,.32)}.quality-v1-workspace .qc-review-detail,.change-v1-workspace .qc-review-detail{inset:8px;width:calc(100vw - 16px);padding:16px}.qc-review-detail .dw-detail-heading{top:-16px}.qc-record-meta{grid-template-columns:1fr;gap:10px}.qc-detail-tabs{gap:14px}.qc-detail-tabs button{font-size:14px}.qc-review-detail .qc-flow{gap:0}.qc-review-detail .qc-flow li{font-size:14px;padding-inline:5px}}
/* Compact only the project milestone matrix; keep labels and dates at 14px. */
.pw-progress-table tbody td{padding:8px 12px;vertical-align:middle}
.pw-progress-table .pw-list-milestone{gap:3px}
.pw-progress-table .pw-milestone-name,.pw-progress-table .pw-milestone-date{line-height:20px}
.pw-progress-table .pw-project-cell p{margin:2px 0;line-height:20px}
.pw-progress-table .pw-inline-summary{display:flex;gap:16px;margin-top:6px;line-height:20px}
.pw-progress-table .pw-inline-summary>div{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
@container(min-width:1450px){.pw-progress-table .pw-inline-summary{display:none}}
/* Two-line stage cells: name, then status and full date on the same line. */
.pw-progress-table{min-width:960px}
.pw-progress-table tbody td{padding:7px 12px}
.pw-progress-table .pw-row-milestones{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.pw-progress-table .pw-list-milestone{min-width:0;max-width:none;min-height:44px;gap:3px;font-size:13px}
.pw-progress-table .pw-milestone-name{font-size:13px;line-height:18px;white-space:nowrap}
.pw-progress-table .pw-milestone-meta{display:flex;align-items:center;gap:5px;white-space:nowrap}
.pw-progress-table .pw-milestone-meta .badge{font-size:12px;line-height:18px;padding:1px 4px}
.pw-progress-table .pw-milestone-date{font-size:12px;line-height:18px;letter-spacing:0}
.pw-progress-table .pw-project-cell .record-title{font-size:13px;line-height:20px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.pw-progress-table .pw-project-cell p{font-size:12px;line-height:18px;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pw-progress-table .pw-inline-summary{display:none}

/* Keep every matrix cell to two readable lines, including the wide-screen summary columns. */
.pw-progress-table .pw-milestone-meta{gap:8px}
.pw-progress-table .pw-milestone-date{font-variant-numeric:tabular-nums}
.pw-progress-table .pw-summary-title{-webkit-line-clamp:1;white-space:nowrap;display:block;text-overflow:ellipsis;max-width:100%;font-size:13px;line-height:20px}
.pw-progress-table .pw-summary-text{display:none}
.pw-progress-table .pw-summary-meta{margin-top:2px;font-size:12px;line-height:18px;white-space:nowrap}
.pw-progress-table .pw-summary-empty{font-size:13px;line-height:20px}
/* Record length must never change the matrix row height. */
.pw-progress-table tbody tr{height:64px}
.pw-progress-table tbody td{height:64px;box-sizing:border-box}
.pw-progress-table .pw-project-cell{height:44px;align-items:center;overflow:hidden}
.pw-progress-table .pw-project-cell .record-title,.pw-progress-table .pw-summary-title{min-height:0;padding:0}
.pw-progress-table .pw-row-milestones{height:44px}
.pw-progress-table .pw-summary-title{height:20px;overflow:hidden}
.pw-progress-table .pw-summary-meta{height:18px;overflow:hidden;text-overflow:ellipsis}
/* Stage names belong in the shared header, not in every project row. */
.pw-progress-table .pw-stage-columns{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.pw-progress-table .pw-stage-columns>span{padding-left:2px;font-size:13px;font-weight:500;color:#a9431e;white-space:nowrap}
.pw-progress-table .pw-list-milestone{justify-content:center}
.pw-progress-table th.pw-stage-heading{padding-left:12px;padding-right:12px}
/* Consistent compact records: two lines at most, with full content in details or tooltips. */
.compact-ledger{table-layout:fixed}
.compact-ledger tbody tr{height:64px}
.compact-ledger tbody td,.dw-list .compact-ledger tbody td,.pw-project-analysis .compact-ledger tbody td{height:64px;box-sizing:border-box;vertical-align:middle;padding:7px 12px;font-size:13px;line-height:20px}
.compact-ledger .record-title,.compact-ledger .compact-cell{display:block;max-width:100%;min-height:0;padding:0;font-size:13px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-ledger .pw-summary-title{height:20px;-webkit-line-clamp:1}
.compact-ledger .pw-summary-meta,.compact-ledger .pw-task-actual-date{height:18px;margin-top:2px;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-ledger .pw-summary-empty{font-size:13px}
.mt-task-table .mt-record-text,.pw-light-task-table .pw-latest-progress-text{display:block;height:20px;max-width:100%;font-size:13px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mt-task-table .mt-project-links{max-height:40px;overflow:hidden}
.mt-task-table .mt-project-count{color:#666;font-size:12px;line-height:18px}
.mt-task-table .button-row{gap:6px;margin:0}
.mt-task-table .button-row>button{font-size:13px;min-height:32px;padding:5px 8px;white-space:nowrap}
.mt-task-table td:nth-child(3){font-size:12px}
.pw-analysis-project-table{min-width:960px}
.pw-analysis-project-table th:nth-child(1){width:27%}.pw-analysis-project-table th:nth-child(2){width:9%}.pw-analysis-project-table th:nth-child(3){width:12%}.pw-analysis-project-table th:nth-child(4){width:9%}.pw-analysis-project-table th:nth-child(5){width:13%}.pw-analysis-project-table th:nth-child(6){width:30%}
.pw-analysis-project-table td:nth-child(3),.pw-analysis-project-table td:nth-child(5){white-space:nowrap}
.pw-board-compact .pw-board-card{height:128px;box-sizing:border-box;display:flex;flex-direction:column;padding:10px 12px}
.pw-board-compact .pw-board-title{height:40px;flex:none;line-height:20px;font-size:14px}
.pw-board-compact .pw-board-compact-meta{font-size:12px;line-height:18px;margin:6px 0 0}
.pw-board-compact .pw-board-card-foot{margin-top:auto;min-height:28px;font-size:13px}
.compact-ledger .button-row{margin:0}
/* Quality/change ledgers follow the same fixed-row rule as tasks and projects. */
.compact-ledger .compact-meta{display:block;font-size:12px;line-height:18px;height:18px;margin:2px 0 0;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.compact-ledger .compact-meta.danger{color:#c52a2a}
.quality-v1-workspace .qw-case-ledger.compact-ledger td,.change-v1-workspace .cm-request-ledger td{height:64px;padding:7px 12px;font-size:13px}
.qc-ledger-issue{display:flex;align-items:center;gap:8px;height:40px;overflow:hidden}
.qc-ledger-issue>div{min-width:0;flex:1}
.qw-case-ledger .qc-ledger-issue>img{width:36px;height:36px;object-fit:contain;flex:none}
.qw-case-ledger.compact-ledger .record-title{white-space:nowrap;line-height:20px}
.qw-case-ledger.compact-ledger .record-title.compact-meta{font-size:12px;line-height:18px}
.cm-request-ledger th:nth-child(1){width:28%}.cm-request-ledger th:nth-child(2){width:32%}.cm-request-ledger th:nth-child(3){width:12%}.cm-request-ledger th:nth-child(4){width:16%}.cm-request-ledger th:nth-child(5){width:12%}
.change-v1-workspace .cm-request-ledger td:first-child,.change-v1-workspace .cm-request-ledger td:nth-child(2){min-width:0}
.compact-ledger.module-ledger .record-title{white-space:nowrap!important;height:20px;overflow:hidden;text-overflow:ellipsis}
.compact-ledger.module-ledger .record-title.compact-meta{height:18px}
.qc-certificate-ledger{min-width:1100px}
.qc-certificate-ledger th:nth-child(1){width:12%}.qc-certificate-ledger th:nth-child(2){width:22%}.qc-certificate-ledger th:nth-child(3){width:18%}.qc-certificate-ledger th:nth-child(4){width:12%}.qc-certificate-ledger th:nth-child(5){width:10%}.qc-certificate-ledger th:nth-child(6){width:8%}.qc-certificate-ledger th:nth-child(7){width:10%}.qc-certificate-ledger th:nth-child(8){width:8%}
.qc-certificate-ledger td:nth-child(7){white-space:nowrap;font-size:12px}
.qc-access-ledger{min-width:860px}

/* Document folders reuse the existing ledger and version details. */
.pdm-library{container-type:inline-size}
.pdm-library-heading{align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px}
.pdm-library-heading>div:first-child{min-width:0;flex:1}
.pdm-library-heading .workspace-actions{flex-wrap:wrap;justify-content:flex-end}
.pdm-library .heading-count{margin:4px 0 0;font-size:13px;line-height:20px;color:#626262}
.pdm-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;line-height:24px}
.pdm-breadcrumb button{border:0;background:transparent;min-height:28px;padding:0;font-weight:400;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdm-breadcrumb button:hover{color:var(--green-dark)}
.pdm-breadcrumb>span{color:#999}
.pdm-breadcrumb strong{font-size:16px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdm-library-body{display:grid;grid-template-columns:260px minmax(0,1fr);min-width:0}
.pdm-tree-pane{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow:auto;border-right:1px solid var(--line);padding:12px;scrollbar-width:thin}
.pdm-tree-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 8px;font-size:14px;font-weight:500}
.pdm-tree-heading button{font-size:13px;color:var(--muted);min-height:32px}
.pdm-file-tree{font-size:14px;line-height:22px}
.pdm-tree-branch{margin:0}
.pdm-tree-branch>summary{display:flex;align-items:center;list-style:none;gap:2px;cursor:pointer;font-size:14px;color:var(--ink)}
.pdm-tree-branch>summary::-webkit-details-marker{display:none}
.pdm-tree-branch>summary:before{content:'▸';flex:0 0 14px;text-align:center;font-size:14px;color:#717171}
.pdm-tree-branch[open]>summary:before{content:'▾'}
.pdm-tree-children{margin-left:14px;border-left:1px solid var(--line);padding-left:4px}
.pdm-folder-button,.pdm-tree-file{display:flex;align-items:center;gap:6px;min-width:0;width:100%;min-height:36px;padding:7px 6px;border:0;border-radius:3px;background:transparent;text-align:left;font-weight:400;font-size:14px;line-height:22px}
.pdm-tree-all{min-height:40px;margin-bottom:4px}
.pdm-folder-button.active,.pdm-tree-file.active{background:#fff4ee;color:var(--green-dark)}
.pdm-folder-button:hover,.pdm-tree-file:hover{background:#fff5f1}
.pdm-folder-button svg,.pdm-tree-file svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.pdm-tree-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdm-tree-count{flex:none;font-size:13px;color:#717171}
.pdm-tree-empty{font-size:14px;color:#717171;padding:4px 8px;margin:4px 0}
.pdm-library .dw-layout.has-selection{display:block}
.pdm-library .dw-detail{position:fixed;inset:16px 16px 16px auto;width:500px;max-width:calc(100vw - 32px);overflow:auto;background:#fff;z-index:12;border:1px solid var(--line);border-radius:4px;box-shadow:-8px 0 32px #1b15121a}
.pdm-library .dw-list .pdm-ledger-table{min-width:640px!important}
.pdm-library .pdm-ledger-table td,.pdm-library .pdm-ledger-table tbody tr:last-child td{height:64px;padding:8px 12px;font-size:14px;line-height:22px}
.pdm-library .pdm-ledger-table td .record-title{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0}
.pdm-library .pdm-ledger-table td>p{margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:20px}
@container(min-width:1200px){
 .pdm-library .dw-layout.has-selection{display:grid;grid-template-columns:minmax(0,1fr) 400px}
 .pdm-library .dw-detail{position:static;inset:auto;width:auto;max-width:none;overflow:visible;z-index:auto;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none}
 .pdm-library .dw-list .pdm-ledger-table{min-width:0!important}
}
@media(max-width:800px){
 .pdm-library-body{grid-template-columns:1fr}
 .pdm-tree-pane{position:static;max-height:300px;border-right:0;border-bottom:1px solid var(--line)}
 .pdm-library-heading{padding:12px;gap:8px}
 .pdm-library-heading .workspace-actions{justify-content:flex-start}
}

/* Knowledge entries share the same folders, ledger and detail behavior. */
.kb-library .dw-list .kb-ledger-table{min-width:560px!important}
.kb-library .kb-ledger-table td,.kb-library .kb-ledger-table tbody tr:last-child td{height:64px;padding:8px 12px;font-size:14px;line-height:22px}
.kb-library .kb-ledger-table td .record-title{display:block;max-width:100%;min-height:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.kb-library .kb-ledger-table td>p{margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:20px}
@container(min-width:1200px){.kb-library .dw-list .kb-ledger-table{min-width:0!important}}

/* OA profile: explicit label/value columns, no browser-default dd indentation. */
.account-profile{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 16px;margin:0;line-height:24px;font-size:14px}
.account-profile dt{margin:0;color:var(--muted);font-weight:400}
.account-profile dd{margin:0;min-width:0;overflow-wrap:anywhere;white-space:normal;color:var(--ink)}
.modal.account-modal{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.account-modal .account-info{padding:4px 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.account-modal h3{font-size:16px;line-height:24px;margin:0 0 16px}
.account-modal .account-switch .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.account-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.um-workspace .account-profile{margin:20px 0}
@media(max-width:480px){.modal.account-modal{padding:20px 16px}.account-profile{grid-template-columns:56px minmax(0,1fr);gap:10px 12px}.account-modal footer{flex-wrap:wrap}}
