.pmx-compact-overview {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.55fr);
    min-width: 0;
    border-bottom: 1px solid #dbe4ee;
    background: #fff;
}
.pmx-workbench-page { gap: 0; }
.pmx-compact-overview .pmx-workbench-head {
    min-width: 0;
    padding: 8px 14px;
    border: 0;
    border-right: 1px solid #e5ebf2;
    border-radius: 20px 0 0;
}
.pmx-project-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.pmx-project-identity > div { min-width: 0; }
.pmx-project-identity .pmx-page-back { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.pmx-project-identity h2 { overflow: hidden; margin: 1px 0; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.pmx-project-identity p, .pmx-project-identity .eyebrow { overflow: hidden; margin: 0; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pmx-compact-overview .pmx-head-actions { flex: 0 0 auto; align-self: center; }
.pmx-compact-overview .pmx-head-actions button { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
.pmx-compact-overview .pmx-summary-control { grid-template-columns: repeat(6, minmax(68px, 1fr)); min-width: 0; padding: 7px 8px; gap: 0; }
.pmx-compact-overview .pmx-summary-control article { min-width: 0; padding: 3px 8px; border: 0; border-left: 1px solid #e2e9f0; border-radius: 0; background: transparent; }
.pmx-compact-overview .pmx-summary-control span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pmx-compact-overview .pmx-summary-control strong { margin-top: 2px; font-size: 14px; }
.pmx-compact-navigation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-width: 0; border-bottom: 1px solid #dbe4ee; background: #f8fafc; }
.pmx-compact-navigation .pmx-workbench-modules { display: flex; gap: 4px; min-width: 0; overflow-x: auto; padding: 6px 8px; border: 0; border-right: 1px solid #e1e8ef; background: transparent; scrollbar-width: thin; }
.pmx-compact-navigation .pmx-workbench-modules button { display: block; padding: 7px 9px; border-radius: 8px; }
.pmx-compact-navigation .pmx-workbench-modules button { flex: 0 0 auto; min-width: max-content; }
.pmx-compact-navigation .pmx-workbench-modules b { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pmx-compact-navigation .pmx-workbench-modules small { display: none; }
.pmx-compact-navigation .pmx-stage-directory { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; min-width: 0; padding: 6px 8px; background: transparent; }
.pmx-compact-navigation .pmx-stage-directory > header { display: grid; gap: 2px; padding: 0; white-space: nowrap; }
.pmx-compact-navigation .pmx-stage-directory > header > b { font-size: 10px; }
.pmx-compact-navigation .pmx-stage-tabs { gap: 4px; min-width: 0; padding: 0; scrollbar-width: thin; }
.pmx-compact-navigation .pmx-stage-tabs button { min-width: max-content; padding: 7px 9px; border-radius: 8px; }
.pmx-compact-navigation .pmx-stage-tabs b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pmx-compact-navigation .pmx-stage-tabs small { display: none; }
.pmx-compact-navigation + .pmx-module-body { padding-top: 14px; }

.pmx-workbench-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid #e5ebf2;
    border-bottom: 1px solid #dbe4ee;
    background: #fff;
}
.pmx-workbench-modules button {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 13px 14px;
    text-align: left;
    border: 1px solid #d8e2ec;
    border-radius: 13px;
    background: #f8fafc;
    color: #32485f;
    cursor: pointer;
}
.pmx-workbench-modules button:hover { border-color: #89b4dc; background: #f2f8ff; }
.pmx-workbench-modules button.active {
    border-color: #256dab;
    background: linear-gradient(135deg, #e9f4ff, #f4f9ff);
    box-shadow: inset 4px 0 #256dab;
    color: #174f83;
}
.pmx-workbench-modules b { font-size: 14px; }
.pmx-workbench-modules small {
    overflow: hidden;
    color: #718096;
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pmx-stage-directory { display: grid; gap: 10px; padding: 18px 0 0; background: #f6f8fb; }
.pmx-stage-directory > header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    padding: 0 24px;
}
.pmx-stage-directory > header div { display: grid; gap: 4px; }
.pmx-stage-directory > header span, .pmx-stage-directory > header > b { color: #687a8d; font-size: 12px; }
.pmx-stage-directory .pmx-stage-tabs { padding-bottom: 12px; }
.pmx-module-body { padding: 0 24px 30px; }
.pmx-module-panel {
    overflow: hidden;
    border: 1px solid #dbe4ed;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px #1a3f6608;
}
.pmx-module-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 21px;
    border-bottom: 1px solid #e8eef4;
    background: linear-gradient(135deg, #fbfdff, #f4f8fc);
}
.pmx-module-panel > header span { color: #3075ae; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.pmx-module-panel > header h3 { margin: 4px 0 5px; font-size: 19px; }
.pmx-module-panel > header p { max-width: 780px; margin: 0; color: #64778a; line-height: 1.6; }
.pmx-module-panel.has-stage-context > header {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) auto;
    align-items: center;
}
.pmx-module-title { min-width: 0; }
.pmx-module-stage-directory {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border-left: 1px solid #e1eaf2;
    border-right: 1px solid #e1eaf2;
}
.pmx-module-stage-directory > header { display: grid; gap: 2px; min-width: 62px; }
.pmx-module-stage-directory > header strong { color: #243b53; font-size: 13px; }
.pmx-module-stage-directory > header b { color: #687a8d; font-size: 10px; }
.pmx-module-stage-directory .pmx-stage-tabs { gap: 5px; min-width: 0; padding: 0; scrollbar-width: thin; }
.pmx-module-stage-directory .pmx-stage-tabs button { min-width: max-content; padding: 8px 10px; border-radius: 11px; }
.pmx-module-stage-directory .pmx-stage-tabs b { font-size: 12px; white-space: nowrap; }
.pmx-module-stage-directory .pmx-stage-tabs small { display: none; }
.pmx-module-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pmx-module-counter {
    display: inline-flex !important;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e9f4ff;
    color: #24649d !important;
    letter-spacing: 0 !important;
}
.pmx-info-grid, .pmx-inline-metrics, .pmx-member-leads {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px;
}
.pmx-inline-metrics, .pmx-member-leads { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pmx-info-grid article, .pmx-inline-metrics article, .pmx-member-leads article {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e2e9f0;
    border-radius: 12px;
    background: #f8fafc;
}
.pmx-info-grid span, .pmx-inline-metrics span, .pmx-member-leads span { display: block; color: #758397; font-size: 11px; }
.pmx-info-grid strong, .pmx-inline-metrics strong, .pmx-member-leads strong {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: #20374e;
    font-size: 14px;
    text-overflow: ellipsis;
}
.pmx-phase-map { margin: 0 20px 20px; border: 1px solid #e0e7ee; border-radius: 14px; overflow: hidden; }
.pmx-phase-map > header, .pmx-member-grid section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: #f5f8fb;
}
.pmx-phase-map h4, .pmx-member-grid h4 { margin: 0; }
.pmx-phase-map > article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid #edf1f5;
}
.pmx-phase-map > article.current { border-left: 4px solid #2c75b6; background: #f1f8ff; }
.pmx-phase-map > article > b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e7eef5;
    color: #3b607f;
}
.pmx-phase-map > article.current > b { background: #2671b2; color: #fff; }
.pmx-phase-map strong, .pmx-phase-map small, .pmx-simple-list strong, .pmx-simple-list small,
.pmx-member-grid strong, .pmx-member-grid small { display: block; }
.pmx-phase-map small, .pmx-simple-list small, .pmx-member-grid small { margin-top: 4px; color: #718096; }
.pmx-version-list, .pmx-simple-list, .pmx-meeting-list, .pmx-deliverable-list { display: grid; border-top: 1px solid #edf1f5; }
.pmx-version-list > article, .pmx-meeting-list > article, .pmx-deliverable-list > article {
    display: grid;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #edf1f5;
}
.pmx-version-list header, .pmx-version-list header > div, .pmx-version-list footer,
.pmx-meeting-list header, .pmx-meeting-list header > div, .pmx-meeting-list footer,
.pmx-deliverable-list header, .pmx-deliverable-list header > div, .pmx-deliverable-list footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    flex-wrap: wrap;
}
.pmx-version-list header > div, .pmx-meeting-list header > div, .pmx-deliverable-list header > div { justify-content: flex-start; }
.pmx-version-list p, .pmx-meeting-list p, .pmx-deliverable-list p { margin: 0; color: #506579; line-height: 1.65; }
.pmx-version-list footer, .pmx-meeting-list footer, .pmx-deliverable-list footer {
    justify-content: flex-start;
    color: #718096;
    font-size: 12px;
}
.pmx-simple-list > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #edf1f5;
}
.pmx-member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 20px 20px; }
.pmx-member-grid section { overflow: hidden; border: 1px solid #e0e7ee; border-radius: 14px; }
.pmx-member-grid section > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #edf1f5;
}
.pmx-module-docs { margin: 18px 20px; }
.pmx-module-panel > .pmx-stage-objective, .pmx-module-panel > .pmx-gate-panel,
.pmx-module-panel > .pmx-columns { margin-left: 20px; margin-right: 20px; }
.pmx-module-panel > .pmx-stage-objective { margin-top: 18px; }
.pmx-module-panel > .pmx-columns { margin-bottom: 20px; }

.pmx-document-readiness {
    width: min(860px, 94vw);
    height: auto;
    max-height: 92vh;
}
.pmx-document-readiness form {
    display: grid;
    gap: 14px;
    padding: 18px 20px 20px;
    overflow-y: auto;
}
.pmx-readiness-summary {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid #b8d9c5;
    border-radius: 12px;
    background: #f0faf4;
    color: #245a39;
}
.pmx-readiness-summary.needs-input {
    border-color: #f0cf91;
    background: #fff9ed;
    color: #704d0d;
}
.pmx-readiness-summary span { font-size: 12px; line-height: 1.55; }
.pmx-template-reference {
    display: grid;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #f7fbff;
    color: #274c6c;
}
.pmx-template-reference > div { display: grid; gap: 4px; }
.pmx-template-reference span,
.pmx-template-reference small { color: #647b90; font-size: 12px; line-height: 1.5; }
.pmx-template-reference ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pmx-template-reference li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 7px;
    border-top: 1px solid #e5edf4;
}
.pmx-template-reference.empty { border-style: dashed; background: #fbfcfd; }
.pmx-readiness-list {
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
}
.pmx-readiness-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 13px;
    border-top: 1px solid #edf1f5;
}
.pmx-readiness-list article:first-child { border-top: 0; }
.pmx-readiness-list strong, .pmx-readiness-list small { display: block; }
.pmx-readiness-list small { margin-top: 3px; color: #6b7d90; line-height: 1.45; }
.pmx-readiness-list button {
    padding: 6px 9px;
    border: 1px solid #b8cde0;
    border-radius: 8px;
    background: #f7fbff;
    color: #2467a2;
    cursor: pointer;
}
.pmx-readiness-input { display: grid; gap: 7px; color: #344b61; font-weight: 700; }
.pmx-readiness-input textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 118px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid #cfdbe6;
    border-radius: 10px;
    background: #fff;
    color: #263b51;
    font: inherit;
    font-weight: 400;
    line-height: 1.6;
}
.pmx-readiness-input textarea:focus { outline: 2px solid #9ec6e8; outline-offset: 1px; }
.pmx-readiness-confirm {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #53687c;
    font-size: 12px;
    line-height: 1.5;
}
.pmx-readiness-confirm input { margin-top: 3px; }
.pmx-document-readiness form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 2px;
}

.pmx-cockpit-health {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px;
}
.pmx-cockpit-health article {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe8f0;
    border-radius: 13px;
    background: #f8fafc;
}
.pmx-cockpit-health span, .pmx-cockpit-health small { display: block; color: #718096; font-size: 11px; }
.pmx-cockpit-health strong { display: block; margin: 6px 0; color: #20374e; font-size: 18px; }
.pmx-cockpit-health .health-red { color: #b42318; }
.pmx-cockpit-health .health-yellow { color: #9a6b00; }
.pmx-cockpit-health .health-green { color: #247143; }
.pmx-cockpit-health .pmx-progress { margin: 10px 0 5px; }
.pmx-cockpit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr);
    gap: 14px;
    padding: 0 20px 20px;
}
.pmx-cockpit-grid > section { overflow: hidden; border: 1px solid #dfe7ef; border-radius: 14px; }
.pmx-cockpit-grid > section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    background: #f5f8fb;
}
.pmx-cockpit-grid h4 { margin: 0; }
.pmx-cockpit-grid header span { display: block; margin-top: 4px; color: #718096; font-size: 11px; }
.pmx-cockpit-grid header button, .pmx-cockpit-attention button, .pmx-cockpit-governance button {
    border: 0;
    background: transparent;
    color: #2467a2;
    cursor: pointer;
}
.pmx-cockpit-stage > div > article {
    display: grid;
    grid-template-columns: 34px minmax(180px, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #edf1f5;
}
.pmx-cockpit-stage > div > article.current { border-left: 4px solid #2b73b2; background: #f1f8ff; }
.pmx-cockpit-stage article > b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6edf4;
    color: #486882;
}
.pmx-cockpit-stage article.current > b { background: #286fad; color: #fff; }
.pmx-cockpit-stage strong, .pmx-cockpit-stage small { display: block; }
.pmx-cockpit-stage small { margin-top: 3px; color: #718096; }
.pmx-cockpit-stage article > span { color: #607286; font-size: 11px; white-space: nowrap; }
.pmx-cockpit-attention { grid-row: span 2; }
.pmx-cockpit-attention > button {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 13px 15px;
    text-align: left;
    border-top: 1px solid #edf1f5;
    color: #263b51;
}
.pmx-cockpit-attention > button:hover { background: #f6faff; }
.pmx-cockpit-attention > button.alert { background: #fffaf3; }
.pmx-cockpit-attention button > b { color: #2c70ad; }
.pmx-cockpit-attention strong, .pmx-cockpit-attention small { display: block; }
.pmx-cockpit-attention small { margin-top: 4px; color: #718096; line-height: 1.45; }
.pmx-cockpit-attention i { color: #2a6ca7; font-size: 11px; font-style: normal; }
.pmx-cockpit-now > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-top: 1px solid #edf1f5;
}
.pmx-cockpit-now strong, .pmx-cockpit-now small { display: block; }
.pmx-cockpit-now small { margin-top: 3px; color: #718096; }
.pmx-cockpit-governance { display: grid; grid-template-columns: 1fr 1fr; }
.pmx-cockpit-governance > header { grid-column: 1 / -1; }
.pmx-cockpit-governance > button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-top: 1px solid #edf1f5;
    border-right: 1px solid #edf1f5;
    color: #50657a;
}
.pmx-cockpit-governance > button strong { color: #1f3f5d; }

@media (max-width: 1180px) {
    .pmx-module-panel.has-stage-context > header { grid-template-columns: minmax(0, 1fr) auto; }
    .pmx-module-stage-directory { grid-column: 1 / -1; grid-row: 2; }
    .pmx-workbench-modules { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .pmx-info-grid { grid-template-columns: repeat(3, 1fr); }
    .pmx-cockpit-health { grid-template-columns: repeat(3, 1fr); }
    .pmx-cockpit-grid { grid-template-columns: 1fr; }
    .pmx-cockpit-attention { grid-row: auto; }
}
@media (max-width: 780px) {
    .pmx-compact-overview .pmx-workbench-head { display: grid; gap: 10px; }
    .pmx-project-identity { align-items: flex-start; }
    .pmx-project-identity .pmx-page-back { margin-top: 2px; }
    .pmx-compact-overview .pmx-summary-control { grid-template-columns: repeat(3, minmax(90px, 1fr)); overflow-x: auto; }
    .pmx-compact-overview .pmx-summary-control article { padding: 6px 9px; }
    .pmx-compact-navigation { overflow: hidden; }
    .pmx-compact-navigation .pmx-workbench-modules { display: flex; overflow-x: auto; padding: 8px; }
    .pmx-compact-navigation .pmx-workbench-modules button { flex: 0 0 auto; min-width: 118px; }
    .pmx-compact-navigation .pmx-stage-directory { grid-template-columns: 1fr; padding: 8px; }
    .pmx-compact-navigation .pmx-stage-directory > header { display: flex; justify-content: space-between; }
    .pmx-compact-navigation .pmx-stage-tabs { padding: 0; }
    .pmx-workbench-modules { grid-template-columns: 1fr; padding: 14px 12px; }
    .pmx-workbench-modules small { white-space: normal; }
    .pmx-stage-directory > header { display: grid; padding: 0 12px; }
    .pmx-module-body { padding: 0 12px 20px; }
    .pmx-module-panel > header { display: grid; }
    .pmx-module-panel.has-stage-context > header { grid-template-columns: 1fr; }
    .pmx-module-stage-directory { grid-column: auto; grid-row: auto; border-right: 0; }
    .pmx-module-actions { justify-content: flex-start; }
    .pmx-info-grid, .pmx-inline-metrics, .pmx-member-leads, .pmx-member-grid { grid-template-columns: 1fr; }
    .pmx-info-grid, .pmx-inline-metrics, .pmx-member-leads { padding: 14px; }
    .pmx-member-grid { padding: 0 14px 14px; }
    .pmx-module-docs { margin: 14px; }
    .pmx-module-panel > .pmx-stage-objective, .pmx-module-panel > .pmx-gate-panel,
    .pmx-module-panel > .pmx-columns { margin-left: 14px; margin-right: 14px; }
    .pmx-cockpit-health { grid-template-columns: 1fr 1fr; padding: 14px; }
    .pmx-cockpit-grid { padding: 0 14px 14px; }
    .pmx-cockpit-stage > div > article { grid-template-columns: 30px minmax(0, 1fr); }
    .pmx-cockpit-stage article > span { grid-column: 2; }
    .pmx-readiness-list article { grid-template-columns: auto minmax(0, 1fr); }
    .pmx-readiness-list article button { grid-column: 2; justify-self: start; }
}
