.mspm-wrap{max-width:900px;margin:24px auto;padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;color:#1f2937;box-sizing:border-box}.mspm-wrap h2{margin-top:0}.mspm-field{margin:0 0 18px}.mspm-field>label{display:block;font-weight:600;margin-bottom:7px}.mspm-field input:not([type=checkbox]):not([type=file]),.mspm-field textarea,.mspm-field select,.mspm-dashboard form input{width:100%;max-width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}.mspm-field textarea{min-height:100px}.mspm-field small{display:block;color:#64748b;margin-top:5px}.mspm-check{font-weight:400!important}.mspm-button,.mspm-wrap button{display:inline-block;background:#17365d;color:#fff!important;border:0;border-radius:6px;padding:11px 17px;text-decoration:none;cursor:pointer;font-weight:600}.mspm-button:hover,.mspm-wrap button:hover{opacity:.9}.mspm-notice{padding:13px 16px;background:#eff6ff;border-left:4px solid #2563eb;margin:15px 0;border-radius:4px}.mspm-notice.error{background:#fef2f2;border-color:#dc2626}.mspm-notice.success{background:#f0fdf4;border-color:#16a34a}.mspm-dashboard section{padding:18px 0;border-top:1px solid #e5e7eb;scroll-margin-top:20px}.mspm-dashboard section h3{margin-top:0}.mspm-dash-nav{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}.mspm-dash-nav a{padding:8px 11px;border:1px solid #cbd5e1;border-radius:5px;text-decoration:none}.mspm-dashboard label{display:block;margin:0 0 12px}.mspm-dashboard dl{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:8px 15px}.mspm-dashboard dt{font-weight:600}.mspm-dashboard dd{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.mspm-wrap{padding:16px;margin:12px auto}.mspm-dashboard dl{display:block}.mspm-dashboard dd{margin-bottom:12px}}
.mspm-wrap form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.mspm-wrap form>.mspm-field{min-width:0;margin:0}.mspm-wrap .mspm-field.mspm-width-full{grid-column:span 6}.mspm-wrap .mspm-field.mspm-width-half{grid-column:span 3}.mspm-wrap .mspm-field.mspm-width-one-third{grid-column:span 2}.mspm-wrap .mspm-field input,.mspm-wrap .mspm-field select,.mspm-wrap .mspm-field textarea{box-sizing:border-box;width:100%}.mspm-wrap form>.mspm-button,.mspm-wrap form>input[type=hidden],.mspm-wrap form>input[name=action],.mspm-wrap form>input[name=mspm_nonce]{grid-column:1/-1}.mspm-table{width:100%;border-collapse:collapse}.mspm-table th,.mspm-table td{padding:9px;border-bottom:1px solid #ddd;text-align:left}.mspm-dashboard section{margin:22px 0;padding:18px;border:1px solid #e1e5ea;border-radius:8px}@media(max-width:640px){.mspm-wrap .mspm-field.mspm-width-half,.mspm-wrap .mspm-field.mspm-width-one-third{grid-column:span 6}}

/* MSP v1.4.2: preserve configurable form field columns on registration. */
.mspm-wrap form:has(input[name="application_type"]){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:14px;}
.mspm-wrap form:has(input[name="application_type"])>.mspm-field{min-width:0;margin:0;width:auto;max-width:100%;}
.mspm-wrap form:has(input[name="application_type"])>.mspm-field.mspm-width-full{grid-column:span 6!important;}
.mspm-wrap form:has(input[name="application_type"])>.mspm-field.mspm-width-half{grid-column:span 3!important;}
.mspm-wrap form:has(input[name="application_type"])>.mspm-field.mspm-width-one-third{grid-column:span 2!important;}
.mspm-wrap form:has(input[name="application_type"])>.mspm-button{grid-column:1/-1;width:max-content;}
.mspm-dashboard .mspm-dash-nav a{background:#f8fafc;color:#17365d;font-weight:600;}
.mspm-dashboard #mspm-overview{background:linear-gradient(135deg,#f8fafc,#eef4fb);padding:22px;border-radius:12px;}
.mspm-dashboard #mspm-overview p{display:inline-block;vertical-align:top;min-width:210px;margin:8px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.mspm-dashboard section h3{color:#17365d;font-size:1.25rem;}
@media(max-width:640px){.mspm-wrap form:has(input[name="application_type"])>.mspm-field.mspm-width-half,.mspm-wrap form:has(input[name="application_type"])>.mspm-field.mspm-width-one-third{grid-column:span 6!important;}}

/* v1.4.3: explicit registration layout and admin dashboard preview */
.mspm-wrap form:has(input[name="application_type"]){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;box-sizing:border-box}
.mspm-wrap form:has(input[name="application_type"]) .mspm-width-full{grid-column:1/-1!important}
.mspm-wrap form:has(input[name="application_type"]) .mspm-width-half{grid-column:span 3!important}
.mspm-wrap form:has(input[name="application_type"]) .mspm-width-one-third{grid-column:span 2!important}
.mspm-dashboard-preview{max-width:900px;background:#f8fafc;border:1px solid #dbe3ed;border-radius:12px;padding:18px;margin:12px 0 24px;color:#1e293b}
.mspm-preview-head{display:flex;justify-content:space-between;align-items:center;background:#17365d;color:#fff;padding:16px;border-radius:8px}
.mspm-preview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.mspm-preview-cards div{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:6px}.mspm-preview-cards small{color:#64748b}.mspm-preview-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.mspm-preview-nav span{padding:8px 10px;background:#e8eef7;border-radius:6px;color:#17365d}.mspm-preview-content{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px}.mspm-status-form{margin:8px 0;padding:8px;background:#f6f7f7;border-radius:5px}.mspm-status-form label{display:block;margin-bottom:6px}.mspm-status-form select{max-width:100%}@media(max-width:640px){.mspm-preview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.mspm-wrap form:has(input[name="application_type"]) .mspm-width-half,.mspm-wrap form:has(input[name="application_type"]) .mspm-width-one-third{grid-column:1/-1!important}}
/* Respect the active WordPress theme's typography and button palette. */
.mspm-wrap,.mspm-wrap input,.mspm-wrap select,.mspm-wrap textarea,.mspm-wrap button,.mspm-wrap a.mspm-button{font-family:inherit}
.mspm-wrap a.mspm-button,.mspm-wrap .mspm-button{background:var(--wp--preset--color--primary, var(--wp--preset--color--contrast, currentColor));color:var(--wp--preset--color--base, #fff);border:1px solid currentColor;border-radius:var(--wp--custom--border-radius, 4px);padding:.65em 1em;text-decoration:none;display:inline-block;cursor:pointer}
.mspm-wrap a.mspm-button:hover,.mspm-wrap .mspm-button:hover{filter:brightness(.94)}
