:root {
    --pmpsm-navy: #0e294a;
    --pmpsm-navy-2: #173b68;
    --pmpsm-blue: #2d6fb7;
    --pmpsm-bg: #f3f6fa;
    --pmpsm-card: #ffffff;
    --pmpsm-border: #dbe3ec;
    --pmpsm-text: #182230;
    --pmpsm-muted: #667386;
    --pmpsm-green: #117a57;
    --pmpsm-amber: #a05a00;
    --pmpsm-red: #b42318;
    --pmpsm-purple: #6b3fa0;
    --pmpsm-shadow: 0 10px 30px rgba(14, 41, 74, .08);
}

.pmpsm-wrap,
.pmpsm-front {
    max-width: 1540px;
    margin: 0 auto;
    color: var(--pmpsm-text);
    box-sizing: border-box;
}
.pmpsm-wrap { padding: 18px 22px 48px 0; }
.pmpsm-front { padding: 20px 14px 48px; }
.pmpsm-wrap *, .pmpsm-front * { box-sizing: border-box; }
.pmpsm-wrap h1, .pmpsm-wrap h2, .pmpsm-wrap h3, .pmpsm-wrap h4,
.pmpsm-front h1, .pmpsm-front h2, .pmpsm-front h3, .pmpsm-front h4 { color: var(--pmpsm-text); margin-top: 0; }
.pmpsm-wrap p, .pmpsm-front p { line-height: 1.55; }

.pmpsm-page-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin: 4px 0 20px;
    padding: 22px 25px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pmpsm-navy), var(--pmpsm-navy-2));
    color: #fff;
    box-shadow: var(--pmpsm-shadow);
}
.pmpsm-page-head h1 { color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin: 3px 0 7px; }
.pmpsm-page-head p { color: rgba(255,255,255,.85); margin: 0; }
.pmpsm-kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 11px; }
.pmpsm-confidential { padding: 7px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }

.pmpsm-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.pmpsm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 9px 14px;
    border: 1px solid var(--pmpsm-border);
    border-radius: 9px;
    background: #fff;
    color: var(--pmpsm-navy);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(14,41,74,.04);
}
.pmpsm-btn:hover { border-color: var(--pmpsm-blue); color: var(--pmpsm-blue); }
.pmpsm-btn-primary { background: var(--pmpsm-navy); border-color: var(--pmpsm-navy); color: #fff; }
.pmpsm-btn-primary:hover { background: var(--pmpsm-blue); border-color: var(--pmpsm-blue); color: #fff; }
.pmpsm-btn-danger { background: var(--pmpsm-red); border-color: var(--pmpsm-red); color: #fff; }
.pmpsm-btn-danger:hover { background: #8f1a12; border-color: #8f1a12; color: #fff; }
.pmpsm-btn-small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.pmpsm-btn-large { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.pmpsm-link-button { border: 0; padding: 0; background: transparent; color: var(--pmpsm-blue); font-weight: 700; text-decoration: underline; cursor: pointer; }

.pmpsm-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 13px; margin: 18px 0; }
.pmpsm-stat { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--pmpsm-border); border-radius: 14px; box-shadow: var(--pmpsm-shadow); }
.pmpsm-stat > .dashicons { width: 41px; height: 41px; padding: 10px; border-radius: 11px; background: #eaf2fb; color: var(--pmpsm-blue); font-size: 21px; }
.pmpsm-stat strong { display: block; font-size: 25px; line-height: 1; margin-bottom: 5px; }
.pmpsm-stat span { color: var(--pmpsm-muted); font-size: 12px; }
.pmpsm-stat.danger { border-color: #f2c3be; background: #fff8f7; }
.pmpsm-stat.danger > .dashicons { background: #fde9e7; color: var(--pmpsm-red); }

.pmpsm-card { background: var(--pmpsm-card); border: 1px solid var(--pmpsm-border); border-radius: 16px; padding: 22px; margin: 16px 0; box-shadow: var(--pmpsm-shadow); }
.pmpsm-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pmpsm-card-head h2 { margin-bottom: 3px; }
.pmpsm-card-head span { color: var(--pmpsm-muted); font-size: 13px; text-align: right; }
.pmpsm-subcard { border: 1px solid var(--pmpsm-border); border-radius: 12px; padding: 16px; margin: 12px 0; background: #fbfcfe; }
.pmpsm-subcard summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pmpsm-subcard[open] summary { padding-bottom: 13px; border-bottom: 1px solid var(--pmpsm-border); margin-bottom: 13px; }
.pmpsm-card hr { border: 0; border-top: 1px solid var(--pmpsm-border); margin: 24px 0; }

.pmpsm-grid-2, .pmpsm-grid-3, .pmpsm-grid-4, .pmpsm-grid-layout { display: grid; gap: 15px; }
.pmpsm-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pmpsm-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pmpsm-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.pmpsm-grid-layout { grid-template-columns: minmax(280px,.8fr) minmax(500px,1.7fr); align-items: start; }

.pmpsm-form { display: block; }
.pmpsm-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 700; color: var(--pmpsm-text); }
.pmpsm-field > span { font-size: 13px; }
.pmpsm-field em { color: var(--pmpsm-red); font-style: normal; }
.pmpsm-field small, .pmpsm-help { font-weight: 400; color: var(--pmpsm-muted); font-size: 12px; }
.pmpsm-field input, .pmpsm-field select, .pmpsm-field textarea,
.pmpsm-filter input, .pmpsm-filter select,
.pmpsm-form > select {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c8d3df;
    border-radius: 9px;
    background: #fff;
    color: var(--pmpsm-text);
    font: inherit;
    font-weight: 400;
}
.pmpsm-field textarea { min-height: 105px; resize: vertical; line-height: 1.45; }
.pmpsm-field input:focus, .pmpsm-field select:focus, .pmpsm-field textarea:focus,
.pmpsm-filter input:focus, .pmpsm-filter select:focus { outline: 3px solid rgba(45,111,183,.14); border-color: var(--pmpsm-blue); }
.pmpsm-check-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.pmpsm-check { display: inline-flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 9px; background: #f5f8fb; border: 1px solid var(--pmpsm-border); font-weight: 600; }
.pmpsm-check input { margin-top: 2px; }
.pmpsm-filter { display: grid; grid-template-columns: minmax(260px,2fr) repeat(3,minmax(140px,1fr)) auto auto; gap: 10px; align-items: center; }

.pmpsm-table-wrap { width: 100%; overflow-x: auto; }
.pmpsm-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.pmpsm-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pmpsm-muted); padding: 11px 10px; border-bottom: 2px solid var(--pmpsm-border); }
.pmpsm-table td { padding: 13px 10px; border-bottom: 1px solid #e7edf3; vertical-align: top; }
.pmpsm-table tr:hover td { background: #fafcff; }
.pmpsm-table small { display: block; color: var(--pmpsm-muted); margin-top: 4px; max-width: 420px; }
.pmpsm-table code { white-space: pre-wrap; word-break: break-word; font-size: 11px; }
.pmpsm-danger-text { color: var(--pmpsm-red); font-weight: 800; }

.pmpsm-badge { display: inline-flex; align-items: center; padding: 5px 9px; margin: 2px 4px 2px 0; border-radius: 999px; background: #eaf0f6; color: #415267; font-size: 11px; font-weight: 800; line-height: 1.1; }
.pmpsm-badge.is-urgent, .pmpsm-badge.is-overdue, .pmpsm-badge.is-removal { background: #fde9e7; color: var(--pmpsm-red); }
.pmpsm-badge.is-high, .pmpsm-badge.is-awaiting-response, .pmpsm-badge.is-awaiting-approval { background: #fff2d8; color: var(--pmpsm-amber); }
.pmpsm-badge.is-compliment, .pmpsm-badge.is-completed, .pmpsm-badge.is-closed, .pmpsm-badge.is-recognition-recorded { background: #e3f5ee; color: var(--pmpsm-green); }
.pmpsm-badge.is-disciplinary, .pmpsm-badge.is-highly-restricted, .pmpsm-badge.is-appeal { background: #f0e9fa; color: var(--pmpsm-purple); }
.pmpsm-badge.is-investigation, .pmpsm-badge.is-investigation-in-progress { background: #e7f0fb; color: var(--pmpsm-blue); }
.pmpsm-badge.is-draft, .pmpsm-badge.is-logged { background: #eef1f4; color: #526173; }
.pmpsm-chip { display: inline-flex; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--pmpsm-border); text-decoration: none; font-size: 12px; font-weight: 700; background: #fff; }

.pmpsm-notice { padding: 13px 16px; border-radius: 10px; margin: 12px 0; border: 1px solid; font-weight: 700; }
.pmpsm-notice.is-success { color: var(--pmpsm-green); background: #edfaf5; border-color: #b9e4d2; }
.pmpsm-notice.is-error { color: var(--pmpsm-red); background: #fff3f2; border-color: #f3c5c0; }
.pmpsm-empty { padding: 24px; text-align: center; color: var(--pmpsm-muted); background: #f8fafc; border: 1px dashed #cbd6e2; border-radius: 11px; }

.pmpsm-case-header { position: sticky; top: 32px; z-index: 10; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: start; padding: 20px 22px; margin: 12px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--pmpsm-border); border-left: 6px solid var(--pmpsm-blue); border-radius: 14px; box-shadow: var(--pmpsm-shadow); }
.pmpsm-case-header h2 { margin: 8px 0 5px; font-size: 23px; }
.pmpsm-case-header p { margin: 0; color: var(--pmpsm-muted); }
.pmpsm-case-header dl { display: grid; grid-template-columns: auto auto; gap: 5px 14px; margin: 0; min-width: 280px; }
.pmpsm-case-header dt { color: var(--pmpsm-muted); font-size: 12px; }
.pmpsm-case-header dd { margin: 0; font-weight: 700; text-align: right; }

.pmpsm-tabs { margin-top: 16px; }
.pmpsm-tab-nav { position: sticky; top: 178px; z-index: 9; display: flex; overflow-x: auto; gap: 7px; padding: 8px; background: rgba(243,246,250,.95); backdrop-filter: blur(9px); border-radius: 12px; }
.pmpsm-tab-nav button { border: 1px solid var(--pmpsm-border); background: #fff; color: var(--pmpsm-muted); border-radius: 9px; padding: 9px 12px; white-space: nowrap; cursor: pointer; font-weight: 700; }
.pmpsm-tab-nav button.is-active { background: var(--pmpsm-navy); border-color: var(--pmpsm-navy); color: #fff; }
.pmpsm-tab-panel { display: none; }
.pmpsm-tab-panel.is-active { display: block; animation: pmpsmFade .16s ease; }
@keyframes pmpsmFade { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.pmpsm-timeline { position: relative; padding-left: 18px; }
.pmpsm-timeline:before { content: ''; position: absolute; left: 6px; top: 5px; bottom: 5px; width: 2px; background: #dce5ee; }
.pmpsm-timeline-item { position: relative; padding: 0 0 19px 20px; }
.pmpsm-timeline-dot { position: absolute; left: -17px; top: 4px; width: 12px; height: 12px; background: var(--pmpsm-blue); border: 3px solid #e8f1fb; border-radius: 50%; }
.pmpsm-timeline-item h4 { margin: 0 0 4px; }
.pmpsm-timeline-item p { margin: 0 0 4px; }
.pmpsm-timeline-item small { color: var(--pmpsm-muted); }

.pmpsm-list { display: flex; flex-direction: column; gap: 8px; }
.pmpsm-list-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 13px; border: 1px solid var(--pmpsm-border); border-radius: 10px; background: #fff; color: var(--pmpsm-text); text-decoration: none; }
.pmpsm-list-item:hover { border-color: var(--pmpsm-blue); background: #f8fbff; }
.pmpsm-list-item span { color: var(--pmpsm-muted); font-size: 12px; text-align: right; }
.pmpsm-placeholder-box { margin-top: 18px; padding: 14px; background: #f5f8fb; border-radius: 10px; line-height: 2; }
.pmpsm-placeholder-box code { margin-right: 5px; }
.pmpsm-letter-preview { margin: 14px 0; padding: 22px; border: 1px solid #d9e1e9; border-radius: 10px; background: #fff; line-height: 1.65; }
.pmpsm-redaction-history pre { white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--pmpsm-border); border-radius: 8px; padding: 12px; max-height: 340px; overflow: auto; }
.pmpsm-summary-list { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 9px 15px; }
.pmpsm-summary-list dt { color: var(--pmpsm-muted); font-weight: 700; }
.pmpsm-summary-list dd { margin: 0; }
.pmpsm-closure-card { border-left: 6px solid var(--pmpsm-red); }
.pmpsm-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 1200px) {
    .pmpsm-stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .pmpsm-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pmpsm-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .pmpsm-filter input[type=search] { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .pmpsm-wrap { padding-right: 10px; }
    .pmpsm-page-head, .pmpsm-card-head, .pmpsm-case-header { grid-template-columns: 1fr; flex-direction: column; }
    .pmpsm-confidential { align-self: flex-start; }
    .pmpsm-case-header { position: static; }
    .pmpsm-case-header dl { min-width: 0; }
    .pmpsm-tab-nav { top: 32px; }
    .pmpsm-grid-3, .pmpsm-grid-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .pmpsm-front { padding-left: 7px; padding-right: 7px; }
    .pmpsm-page-head { padding: 18px; border-radius: 14px; }
    .pmpsm-card { padding: 16px; border-radius: 13px; }
    .pmpsm-stat-grid, .pmpsm-grid-2, .pmpsm-grid-4, .pmpsm-filter { grid-template-columns: 1fr; }
    .pmpsm-stat { padding: 14px; }
    .pmpsm-case-header { display: block; }
    .pmpsm-case-header dl { margin-top: 15px; }
    .pmpsm-list-item { align-items: flex-start; flex-direction: column; }
    .pmpsm-list-item span { text-align: left; }
    .pmpsm-summary-list { grid-template-columns: 1fr; }
    .pmpsm-summary-list dt { margin-top: 8px; }
    .pmpsm-tab-nav { margin-left: -8px; margin-right: -8px; border-radius: 0; }
}

.pmpsm-brand-logo { display:block; max-height:54px; max-width:190px; width:auto; margin:0 0 9px; object-fit:contain; }
.pmpsm-logo-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:12px; border:1px solid var(--pmpsm-border); border-radius:10px; background:#f8fafc; }
.pmpsm-logo-row img { max-width:180px; max-height:70px; object-fit:contain; padding:5px; background:#fff; border:1px solid var(--pmpsm-border); border-radius:8px; }


/* 1.0.1 header contrast and modern icon treatment. */
.pmpsm-wrap .pmpsm-page-head,
.pmpsm-front .pmpsm-page-head { color: #fff !important; }
.pmpsm-wrap .pmpsm-page-head h1,
.pmpsm-wrap .pmpsm-page-head h2,
.pmpsm-wrap .pmpsm-page-head h3,
.pmpsm-wrap .pmpsm-page-head p,
.pmpsm-wrap .pmpsm-page-head .pmpsm-kicker,
.pmpsm-front .pmpsm-page-head h1,
.pmpsm-front .pmpsm-page-head h2,
.pmpsm-front .pmpsm-page-head h3,
.pmpsm-front .pmpsm-page-head p,
.pmpsm-front .pmpsm-page-head .pmpsm-kicker { color: #fff !important; }
.pmpsm-page-head .pmpsm-brand-logo {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    height: 68px;
    max-height: 68px;
    max-width: 230px;
    margin-bottom: 12px;
}
.pmpsm-page-title-row { display: flex; align-items: center; gap: 12px; }
.pmpsm-page-title-row h1 { margin: 0 0 7px !important; }
.pmpsm-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; align-items: center; justify-content: center; }
.pmpsm-icon svg { display: block; width: 100%; height: 100%; }
.pmpsm-header-mark { width: 38px; height: 38px; padding: 8px; color: #fff; border: 1px solid rgba(255,255,255,.34); border-radius: 11px; background: rgba(255,255,255,.10); }
.pmpsm-btn { gap: 8px; }
.pmpsm-btn .pmpsm-icon { width: 17px; height: 17px; }
.pmpsm-stat > .pmpsm-icon { width: 43px; height: 43px; padding: 10px; border-radius: 12px; background: linear-gradient(145deg,#edf5ff,#dfeeff); color: var(--pmpsm-blue); box-shadow: inset 0 0 0 1px rgba(45,111,183,.08); }
.pmpsm-stat.danger > .pmpsm-icon { background: linear-gradient(145deg,#fff0ee,#fde2de); color: var(--pmpsm-red); }
.pmpsm-tab-nav button { display: inline-flex; align-items: center; gap: 7px; }
.pmpsm-tab-nav button .pmpsm-icon { width: 17px; height: 17px; }
.pmpsm-tab-nav button.is-active .pmpsm-icon { color: #fff; }

/* Some installed modules insert their notices into the page heading. Keep those
   pale notice panels readable instead of inheriting white heading text. */
.pmpsm-page-head .notice,
.pmpsm-page-head .updated,
.pmpsm-page-head .error,
.pmpsm-page-head .update-nag {
    color: #182230 !important;
    background: #fff !important;
    border-color: #d7e0e9 !important;
    text-shadow: none !important;
}
.pmpsm-page-head .notice p,
.pmpsm-page-head .notice a,
.pmpsm-page-head .updated p,
.pmpsm-page-head .updated a,
.pmpsm-page-head .error p,
.pmpsm-page-head .error a,
.pmpsm-page-head .update-nag,
.pmpsm-page-head .update-nag a,
.pmpsm-page-head .notice strong,
.pmpsm-page-head .notice code,
.pmpsm-page-head .updated strong,
.pmpsm-page-head .error strong { color: #182230 !important; text-shadow: none !important; }
.pmpsm-card-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.pmpsm-card-head h2 .pmpsm-icon { width: 22px; height: 22px; color: var(--pmpsm-blue); }

