/* MultiPHP inventory and website selection. All selectors are scoped to this module. */
.multiphp-page { display: grid; gap: 1rem; min-width: 0; }
.mphp-header { padding: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mphp-header .wp-page-title { margin: 0 0 .45rem; }
.mphp-header .wp-page-subtitle { margin: 0; line-height: 1.6; }
.mphp-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mphp-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid #dfe7f1; border-radius: 12px; }
.mphp-summary-card span { color: #64748b; font-size: .85rem; }
.mphp-summary-card strong { color: #102c50; font-size: 1.5rem; }
.mphp-section { min-width: 0; overflow: hidden; }
.mphp-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid #e5ecf5; }
.mphp-section-heading h2, .mphp-job h2 { font-size: 1rem; color: #102c50; margin: 0 0 .35rem; }
.mphp-section-heading p, .mphp-job p { font-size: .82rem; line-height: 1.6; color: #64748b; margin: 0; }
.mphp-version-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 1rem; padding: 1.2rem; }
.mphp-version { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.15rem; min-width: 0; min-height: 270px; }
.mphp-version-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.mphp-version h3 { font-size: 1rem; margin: 0; color: #102c50; white-space: nowrap; }
.mphp-version h3 i { color: #8352F1; margin-right: .25rem; }
.mphp-badge { display: inline-flex; border: 1px solid transparent; border-radius: 99px; padding: .23rem .5rem; font-size: .69rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.mphp-badge--success { color: #047857; background: #ecfdf5; border-color: #bbf7d0; }
.mphp-badge--info { color: #6F3DDB; background: #F6F2FE; border-color: #D8C8FB; }
.mphp-badge--warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.mphp-badge--muted { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }
.mphp-lifecycle { display: block; color: #64748b; font-size: .73rem; margin-top: .55rem; }
.mphp-lifecycle--legacy { color: #9a5805; }
.mphp-runtime { font-size: .8rem; color: #334155; margin: .9rem 0 .4rem; }
.mphp-binary { display: block; overflow-wrap: anywhere; color: #475569; background: #f8fafc; border: 1px solid #edf2f7; border-radius: 7px; padding: .45rem .6rem; font-size: .73rem; line-height: 1.6; }
.mphp-detail { color: #64748b; font-size: .78rem; line-height: 1.6; margin: .85rem 0; overflow-wrap: anywhere; }
.mphp-legacy-note { margin: 1rem 1.2rem 0; padding: .75rem .9rem; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; color: #64748b; font-size: .77rem; line-height: 1.6; }
.mphp-legacy-note i { color: #8352F1; margin-right: .25rem; }
.mphp-warning-text { display: block; color: #92400e; font-size: .75rem; line-height: 1.6; margin-top: .6rem; overflow-wrap: anywhere; }
.mphp-unavailable { color: #64748b; font-size: .75rem; }
.mphp-btn { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; background: #fff; color: #183c66; border: 1px solid #d9e3f2; border-radius: 8px; padding: .55rem .8rem; font: inherit; font-size: .78rem; line-height: 1.4; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.mphp-btn:hover:not(:disabled) { background: #F6F2FE; color: #8352F1; border-color: #BCA2F8; }
.mphp-btn--primary { background: #8352F1; color: #fff; border-color: #8352F1; }
.mphp-btn--primary:hover:not(:disabled) { background: #6F3DDB; color: #fff; border-color: #6F3DDB; }
.mphp-btn:disabled, .mphp-select:disabled { opacity: .5; cursor: not-allowed; }
.mphp-btn:focus-visible, .mphp-select:focus-visible { outline: 3px solid #D8C8FB; outline-offset: 2px; }
.mphp-select { appearance: auto; background: #fff; color: #183c66; font: inherit; font-size: .8rem; border: 1px solid #d9e3f2; border-radius: 8px; padding: .55rem .6rem; min-width: 155px; max-width: 100%; }
.mphp-table-wrap { width: 100%; overflow-x: auto; }
.mphp-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
.mphp-table th { font-size: .7rem; font-weight: 600; color: #64748b; background: #f8fafc; text-transform: uppercase; letter-spacing: .04em; padding: .9rem 1.3rem; border-bottom: 1px solid #e2e8f0; }
.mphp-table td { padding: 1rem 1.3rem; border-bottom: 1px solid #edf2f7; vertical-align: middle; }
.mphp-table tr:last-child td { border-bottom: 0; }
.mphp-table tbody tr:hover { background: #fbfcff; }
.mphp-table strong { display: block; color: #102c50; overflow-wrap: anywhere; }
.mphp-account { display: block; margin-top: .3rem; color: #64748b; font-size: .74rem; overflow-wrap: anywhere; }
.mphp-module-actions { margin-top: auto; padding-top: .3rem; }
.mphp-module-toggle { width: 100%; justify-content: space-between; }
.mphp-module-toggle[aria-expanded="true"] { color: #6F3DDB; background: #F6F2FE; border-color: #D8C8FB; }
.mphp-module-toggle i { font-size: .7rem; }
.mphp-module-panel { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid #e5ecf5; min-width: 0; }
.mphp-module-panel[hidden] { display: none; }
.mphp-module-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.mphp-module-heading strong { font-size: .76rem; color: #475569; }
.mphp-module-refresh { padding: .35rem .5rem; font-size: .7rem; }
.mphp-module-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .35rem; max-height: 190px; overflow: auto; scrollbar-gutter: stable; padding: .15rem; }
.mphp-module-list:focus-visible { outline: 2px solid #BCA2F8; outline-offset: 2px; border-radius: 5px; }
.mphp-module-list span { color: #475569; font-size: .73rem; padding: .25rem .45rem; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; overflow-wrap: anywhere; max-width: 100%; }
.mphp-empty { padding: 1.25rem; margin: 0; color: #64748b; font-size: .85rem; line-height: 1.6; }
.mphp-message { margin: 0; padding: .85rem 1rem; border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; border-radius: 9px; font-size: .83rem; line-height: 1.6; overflow-wrap: anywhere; }
.mphp-message--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.mphp-job { padding: 1.2rem; min-width: 0; }
.mphp-job-id { display: block; font-size: .7rem; color: #64748b; margin-top: .5rem; overflow-wrap: anywhere; }
.mphp-job-log { background: #122039; color: #d5e4f7; padding: .9rem; border-radius: 8px; font-size: .72rem; line-height: 1.7; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; }
.mphp-message[hidden], .mphp-job[hidden] { display: none; }
.mphp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) { .mphp-header, .mphp-section-heading { padding: 1rem; align-items: flex-start; } .mphp-header { flex-direction: column; } .mphp-summary { gap: .6rem; } .mphp-summary-card { padding: .8rem; align-items: flex-start; flex-direction: column; gap: .4rem; } .mphp-summary-card span { font-size: .73rem; } .mphp-version-grid { padding: 1rem; } .mphp-legacy-note { margin-left: 1rem; margin-right: 1rem; } }
@media (max-width: 560px) { .mphp-section-heading { flex-direction: column; } .mphp-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mphp-table, .mphp-table tbody, .mphp-table tr, .mphp-table td { display: block; } .mphp-table thead { display: none; } .mphp-table tr { border-bottom: 1px solid #e2e8f0; padding: .7rem 1rem; } .mphp-table tr:last-child { border-bottom: 0; } .mphp-table td { border: 0; padding: .4rem 0; } .mphp-table td::before { content: attr(data-label); display: block; color: #64748b; font-size: .66rem; margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; } .mphp-select { width: 100%; } .mphp-table .mphp-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .mphp-btn { transition: none; } }

/* MultiPHP operations workspace */
.multiphp-page{max-width:1500px;margin:0 auto;padding:2px 0 40px;gap:18px}
.mphp-header{padding:24px;align-items:center;border:1px solid #e6e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,35,48,.045)}
.mphp-title-group{display:flex;align-items:center;gap:15px;min-width:0}
.mphp-title-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:linear-gradient(135deg,#8b5cf6,#6741d9);box-shadow:0 10px 24px rgba(104,65,217,.22)}
.mphp-title-icon svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mphp-eyebrow{display:block;margin-bottom:4px;color:#7950dc;font-size:10px;font-weight:800;line-height:1.3;letter-spacing:.09em;text-transform:uppercase}
.mphp-header .wp-page-title{margin:0;font-size:28px;line-height:1.2}.mphp-header .wp-page-subtitle{margin:5px 0 0}
.mphp-summary{gap:14px}
.mphp-summary-card{justify-content:flex-start;gap:13px;padding:17px 18px;border-color:#e6e8ef;border-radius:14px;box-shadow:0 7px 22px rgba(31,35,48,.035)}
.mphp-summary-icon{display:grid!important;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;color:#7448d8!important;background:#eee8fc;font-size:15px}
.mphp-summary-card>div{min-width:0;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;flex:1}
.mphp-summary-card>div>span{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.mphp-summary-card strong{grid-column:2;grid-row:1/3;font-size:26px;color:#272d3d}
.mphp-summary-card small{grid-column:1;color:#858c9b;font-size:10px;line-height:1.4}
.mphp-section{border:1px solid #e6e8ef!important;border-radius:16px!important;background:#fff;box-shadow:0 8px 26px rgba(31,35,48,.045)!important}
.mphp-section-heading{padding:20px 22px;border-color:#eceef3;background:linear-gradient(135deg,#fcfbff,#fff)}
.mphp-section-heading h2{margin:0;color:#222938;font-size:17px}.mphp-section-heading p{margin-top:5px;font-size:11px}
.mphp-security-note{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;color:#087653;background:#eafbf2;font-size:10px;font-weight:750}
.mphp-legacy-note{display:flex;align-items:flex-start;gap:8px;margin:16px 20px 0;padding:11px 13px;border-color:#f1dfae;border-radius:10px;color:#8a5a12;background:#fffaf0}
.mphp-legacy-note i{margin-top:3px;color:#b7791f}
.mphp-version-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px;padding:20px}
.mphp-version{min-height:255px;padding:17px;border-color:#e6e8ef;border-radius:14px;background:linear-gradient(150deg,#fff,#fdfcff);box-shadow:0 5px 18px rgba(31,35,48,.035);transition:border-color .18s,box-shadow .18s,transform .18s}
.mphp-version:hover{border-color:#cfbdf8;box-shadow:0 11px 28px rgba(104,65,190,.09);transform:translateY(-2px)}
.mphp-version-heading{align-items:center}
.mphp-version h3{font-size:16px}.mphp-version h3 i{display:inline-grid;place-items:center;width:32px;height:32px;margin-right:7px;border-radius:10px;color:#7448d8;background:#eee8fc;vertical-align:middle}
.mphp-badge{padding:5px 8px;border:0;font-size:9px;font-weight:800;text-transform:uppercase}
.mphp-lifecycle{margin:10px 0 0;padding-left:40px;font-size:10px;font-weight:650}
.mphp-runtime{margin:16px 0 7px;color:#3d4555;font-size:11px;font-weight:650}
.mphp-binary{padding:8px 9px;border-color:#e9e9f0;border-radius:8px;background:#f8f8fb;color:#5e6677;font-size:10px}
.mphp-detail{margin:11px 0;color:#737b8b;font-size:11px;line-height:1.5}
.mphp-account{font-size:10px}
.mphp-module-panel{border-color:#ececf2}.mphp-module-list span{border-color:#e5e1ef;background:#f7f4fc;color:#5d4b7d}
.mphp-btn{min-height:38px;border-color:#dfe1e8;color:#3d4555;font-size:11px;font-weight:650}
.mphp-btn--primary{color:#fff;border-color:#7950dc;background:#7950dc}
.mphp-table-wrap{border-radius:0 0 16px 16px}
.mphp-table th{padding:12px 20px;color:#7d8493;background:#fafafd;border-color:#eceef3;font-size:9px;letter-spacing:.06em}
.mphp-table td{padding:15px 20px;border-color:#eff0f4;font-size:11px}
.mphp-table tbody tr:hover{background:#fcfbff}
.mphp-table strong{color:#293041;font-size:12px}
.mphp-select{min-height:38px;border-color:#dde0e7;color:#353d4d;font-size:11px}
.mphp-select:focus{border-color:#9b78ec;box-shadow:0 0 0 3px rgba(131,82,241,.1)}
.mphp-sites-section .mphp-badge{font-size:9px}
.mphp-message{border-radius:11px;box-shadow:0 5px 16px rgba(31,35,48,.04)}
.mphp-job{border:1px solid #e6e8ef;border-radius:14px}
@media(max-width:900px){.mphp-summary{grid-template-columns:1fr}.mphp-version-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mphp-security-note{display:none}}
@media(max-width:620px){.mphp-title-icon{display:none}.mphp-header .wp-page-title{font-size:24px}.mphp-header,.mphp-section-heading{padding:17px}.mphp-summary{grid-template-columns:1fr}.mphp-summary-card{align-items:center;flex-direction:row}.mphp-version-grid{grid-template-columns:1fr;padding:14px}.mphp-legacy-note{margin:14px}.mphp-table tr{padding:9px 14px}.mphp-table td{padding:5px 0}}
