/* MasterPapers Marketplace – app styles
 * Palette: navy/purple sidebar · purple primary · white cards · lavender borders */
:root {
	--mp-sidebar: #1c1846;
	--mp-sidebar-2: #2a1f63;
	--mp-primary: #6d28d9;
	--mp-primary-600: #5b21b6;
	--mp-primary-50: #f3effe;
	--mp-bg: #f6f5fb;
	--mp-card: #ffffff;
	--mp-border: #e8e5f5;
	--mp-border-2: #dcd7f0;
	--mp-text: #1c1846;
	--mp-muted: #6b6889;
	--mp-green: #16a34a; --mp-green-50: #e9f8ef;
	--mp-blue: #2563eb; --mp-blue-50: #eaf1fe;
	--mp-orange: #ea7a0c; --mp-orange-50: #fff3e6;
	--mp-red: #dc2626; --mp-red-50: #fdecec;
	--mp-purple-50: #f1ebfe;
	--mp-grey-50: #f1f1f5;
	--mp-radius: 12px;
	--mp-radius-sm: 8px;
	--mp-shadow: 0 1px 2px rgba(28, 24, 70, .04), 0 4px 14px rgba(28, 24, 70, .05);
	--mp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mpm { margin: 0; background: var(--mp-bg); color: var(--mp-text); font: 14px/1.5 var(--mp-font); -webkit-font-smoothing: antialiased; }
.mpm a { color: var(--mp-primary); text-decoration: none; }
.mpm h1, .mpm h2, .mpm h3, .mpm h4 { margin: 0 0 .6em; line-height: 1.25; color: var(--mp-text); }
.mpm h2 { font-size: 20px; } .mpm h3 { font-size: 15px; font-weight: 650; } .mpm h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mp-muted); margin-top: 1.2em; }
.mpm p { margin: 0 0 .8em; }
.mpm code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mp-grey-50); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.mpm-ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.mpm-muted { color: var(--mp-muted); }
.mpm-text-red { color: var(--mp-red); }
.mpm-right { text-align: right; }
.mpm-nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.mpm-app { display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--mp-sidebar-2) 236px, transparent 236px); }
.mpm-sidebar { width: 236px; flex: none; background: linear-gradient(180deg, var(--mp-sidebar) 0%, var(--mp-sidebar-2) 100%); color: #cfcbea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; z-index: 40; }
.mpm-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 17px; padding: 4px 10px 18px; }
.mpm-brand--dark { color: var(--mp-text) !important; padding: 0; }
.mpm-brand__mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font-weight: 800; box-shadow: 0 4px 12px rgba(109, 40, 217, .45); }
.mpm-nav { display: flex; flex-direction: column; gap: 2px; }
.mpm-nav__item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #c9c5e6 !important; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.mpm-nav__item:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.mpm-nav__item.is-active { background: rgba(139, 92, 246, .22); color: #fff !important; }
.mpm-nav__item.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #a78bfa; }
.mpm-nav__count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: #8b5cf6; color: #fff; border-radius: 10px; padding: 1px 7px; }
.mpm-sidebar__foot { margin-top: auto; padding: 14px 12px 0; font-size: 12px; color: #9f9ac4 !important; }
.mpm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mpm-topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--mp-border); position: sticky; top: 0; z-index: 30; }
.mpm-topbar__title { font-size: 18px !important; margin: 0 !important; font-weight: 650; }
.mpm-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mpm-topbar__name { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; line-height: 1.2; }
.mpm-topbar__name small { color: var(--mp-muted); font-weight: 500; }
.mpm-content { padding: 24px 28px 48px; max-width: 1360px; width: 100%; }
.mpm-content > * + * { margin-top: 18px; }
.mpm-menu-toggle { display: none; }
.mpm-overlay { display: none; }

.mpm-iconbtn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--mp-border); background: #fff; color: var(--mp-text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mpm-iconbtn:hover { background: var(--mp-primary-50); }
.mpm-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff !important; display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.mpm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mpm-avatar--sm { width: 32px; height: 32px; background: var(--mp-primary-50); color: var(--mp-primary) !important; }
.mpm-avatar--lg { width: 56px; height: 56px; font-size: 22px; }

/* Bell */
.mpm-bell { position: relative; }
.mpm-bell__dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mp-red); color: #fff; font: 700 10px/18px var(--mp-font); text-align: center; padding: 0 4px; border: 2px solid #fff; font-style: normal; }
.mpm-bell__panel { position: absolute; right: 0; top: 46px; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); box-shadow: 0 18px 48px rgba(28, 24, 70, .16); overflow: hidden; }
.mpm-bell__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--mp-border); }
.mpm-bell__list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.mpm-bell__list a, .mpm-notes a { display: grid; gap: 2px; padding: 11px 16px; color: var(--mp-text) !important; border-bottom: 1px solid #f2f0fa; }
.mpm-bell__list a:hover, .mpm-notes a:hover { background: #faf9ff; }
.mpm-bell__list li.is-unread a, .mpm-notes li.is-unread a { background: #f8f5ff; box-shadow: inset 3px 0 0 var(--mp-primary); }
.mpm-bell__list span, .mpm-notes span { color: var(--mp-muted); font-size: 13px; }
.mpm-bell__list time, .mpm-notes time { color: #9a97b5; font-size: 11px; }
.mpm-bell__empty { padding: 24px 16px; text-align: center; color: var(--mp-muted); }
.mpm-bell__all { display: block; padding: 10px 16px; text-align: center; font-weight: 600; background: #faf9ff; }
.mpm-notes { list-style: none; margin: 0 -20px; padding: 0; }

/* Banners & alerts */
.mpm-imp-banner { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 9px 16px; background: #f59e0b; color: #1c1846; font-weight: 600; position: sticky; top: 0; z-index: 60; flex-wrap: wrap; }
.mpm-alert { padding: 11px 16px; border-radius: var(--mp-radius-sm); border: 1px solid; font-size: 13.5px; margin: 0; }
.mpm-main > .mpm-alert { margin: 14px 28px 0; }
.mpm-alert--info { background: var(--mp-blue-50); border-color: #cddcfb; color: #1e3a8a; }
.mpm-alert--success { background: var(--mp-green-50); border-color: #bfe8cf; color: #14532d; }
.mpm-alert--warning { background: var(--mp-orange-50); border-color: #fbd9b4; color: #7c2d12; }
.mpm-alert--inline { display: inline-block; }

/* ---------- Cards, stats ---------- */
.mpm-card { background: var(--mp-card); border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 20px; box-shadow: var(--mp-shadow); min-width: 0; }
.mpm-card + .mpm-card { margin-top: 18px; }
aside > .mpm-card + .mpm-card, .mpm-grid-main > div > .mpm-card + .mpm-card { margin-top: 18px; }
.mpm-card--danger { border-color: #f5c2c2; }
.mpm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mpm-card__head h3 { margin: 0; }
.mpm-card__head--wrap { flex-wrap: wrap; }
.mpm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mpm-toolbar p { margin: 0; }
.mpm-stats { display: grid; gap: 14px; }
.mpm-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpm-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mpm-stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 16px 18px; box-shadow: var(--mp-shadow); color: var(--mp-text) !important; transition: border-color .15s, transform .15s; }
a.mpm-stat:hover { border-color: var(--mp-border-2); transform: translateY(-1px); }
.mpm-stat__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mpm-stat__icon .mpm-ico { width: 21px; height: 21px; }
.mpm-stat__body { display: flex; flex-direction: column; min-width: 0; }
.mpm-stat__value { font-size: 22px; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.mpm-stat__label { color: var(--mp-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpm-tone--purple { background: var(--mp-purple-50); color: var(--mp-primary); }
.mpm-tone--blue { background: var(--mp-blue-50); color: var(--mp-blue); }
.mpm-tone--green { background: var(--mp-green-50); color: var(--mp-green); }
.mpm-tone--orange { background: var(--mp-orange-50); color: var(--mp-orange); }
.mpm-tone--red { background: var(--mp-red-50); color: var(--mp-red); }

.mpm-welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-radius: var(--mp-radius); background: linear-gradient(115deg, #fff 0%, #f7f3ff 60%, #efe7ff 100%); border: 1px solid var(--mp-border); flex-wrap: wrap; }
.mpm-welcome h2 { margin-bottom: 4px; font-size: 21px; }
.mpm-welcome p { margin: 0; color: var(--mp-muted); }
.mpm-welcome--compact { padding: 16px 20px; }
.mpm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--mp-primary-50); color: var(--mp-primary); font-size: 12px; font-weight: 600; border: 0; cursor: default; margin-top: 6px; }
button.mpm-chip { cursor: pointer; }
.mpm-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; }
.mpm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mpm-chips--wrap { margin-top: 14px; }

/* Grids */
.mpm-grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mpm-grid-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.mpm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mpm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mpm-grid-main > *, .mpm-grid-side > *, .mpm-wizard__grid > * { margin-top: 0 !important; }
.mpm-grid-2 > .mpm-card + .mpm-card, .mpm-grid-3 > .mpm-card + .mpm-card { margin-top: 0; }

/* ---------- Buttons ---------- */
.mpm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font: 600 13.5px/1.2 var(--mp-font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none !important; }
.mpm-btn:disabled { opacity: .5; cursor: not-allowed; }
.mpm-btn--primary { background: var(--mp-primary); color: #fff !important; box-shadow: 0 2px 8px rgba(109, 40, 217, .25); }
.mpm-btn--primary:hover:not(:disabled) { background: var(--mp-primary-600); }
.mpm-btn--success { background: var(--mp-green); color: #fff !important; }
.mpm-btn--success:hover { background: #15803d; }
.mpm-btn--danger { background: var(--mp-red); color: #fff !important; }
.mpm-btn--outline { background: #fff; border-color: var(--mp-border-2); color: var(--mp-primary) !important; }
.mpm-btn--outline:hover { background: var(--mp-primary-50); border-color: #c9bcf2; }
.mpm-btn--ghost { background: transparent; color: var(--mp-muted) !important; border-color: transparent; }
.mpm-btn--ghost:hover { background: var(--mp-grey-50); color: var(--mp-text) !important; }
.mpm-btn--danger-ghost { background: #fff; color: var(--mp-red) !important; border-color: #f3c7c7; }
.mpm-btn--danger-ghost:hover { background: var(--mp-red-50); }
.mpm-btn--light { background: rgba(255, 255, 255, .85); color: var(--mp-text) !important; }
.mpm-btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.mpm-btn--lg { padding: 12px 22px; font-size: 14.5px; }
.mpm-btn--block { width: 100%; }
.mpm-btn.is-loading { pointer-events: none; opacity: .7; }
.mpm-btn.is-loading::after { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mpm-spin .7s linear infinite; }
@keyframes mpm-spin { to { transform: rotate(360deg); } }
.mpm-link { background: none; border: 0; padding: 0; color: var(--mp-primary); font: 600 13px var(--mp-font); cursor: pointer; }
.mpm-back { display: inline-block; font-weight: 600; color: var(--mp-muted) !important; }
.mpm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mpm-actions:empty { display: none; }
.mpm-stack { display: grid; gap: 8px; margin-top: 12px; }
.mpm-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Tabs / pills ---------- */
.mpm-tabs { display: flex; gap: 4px; background: var(--mp-grey-50); padding: 4px; border-radius: 10px; }
.mpm-tabs a { padding: 7px 14px; border-radius: 7px; color: var(--mp-muted) !important; font-weight: 600; font-size: 13px; }
.mpm-tabs a.is-active { background: #fff; color: var(--mp-primary) !important; box-shadow: 0 1px 3px rgba(28, 24, 70, .1); }
.mpm-tabs--underline { background: none; padding: 0; border-bottom: 1px solid var(--mp-border); border-radius: 0; gap: 6px; overflow-x: auto; }
.mpm-tabs--underline a { border-radius: 0; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mpm-tabs--underline a.is-active { background: none; box-shadow: none; border-bottom-color: var(--mp-primary); }
.mpm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mpm-pills a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mp-border); color: var(--mp-muted) !important; font-weight: 600; font-size: 12.5px; background: #fff; }
.mpm-pills a.is-active { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff !important; }
.mpm-subnav { padding: 8px; display: flex; flex-direction: column; position: sticky; top: 80px; }
.mpm-subnav a { padding: 8px 12px; border-radius: 8px; color: var(--mp-text) !important; font-weight: 500; font-size: 13px; }
.mpm-subnav a span { color: var(--mp-muted); display: inline-block; width: 20px; }
.mpm-subnav a.is-active { background: var(--mp-primary-50); color: var(--mp-primary) !important; font-weight: 650; }

/* ---------- Tables ---------- */
.mpm-table-wrap { overflow-x: auto; margin: 0 -20px; }
.mpm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mpm-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mp-muted); font-weight: 650; padding: 10px 14px; background: #faf9fd; border-top: 1px solid var(--mp-border); border-bottom: 1px solid var(--mp-border); white-space: nowrap; }
.mpm-table td { padding: 12px 14px; border-bottom: 1px solid #f0eef8; vertical-align: middle; }
.mpm-table th:first-child, .mpm-table td:first-child { padding-left: 20px; }
.mpm-table th:last-child, .mpm-table td:last-child { padding-right: 20px; }
.mpm-table tbody tr:hover { background: #fcfbff; }
.mpm-table tbody tr:last-child td { border-bottom: 0; }
.mpm-table tr.is-highlight { background: #fff9e8; }
.mpm-table--compact td { padding: 8px 12px; font-size: 13px; }
.mpm-table input:not([type=checkbox]) { width: 100%; min-width: 60px; padding: 6px 8px; }
.mpm-ref { font-weight: 650; color: var(--mp-primary) !important; white-space: nowrap; }
.mpm-cell-title { max-width: 360px; font-weight: 500; }
.mpm-cell-wrap { max-width: 320px; white-space: normal; font-size: 13px; color: var(--mp-muted); }
.mpm-col-check { width: 32px; }

.mpm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.mpm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.mpm-badge--green { background: var(--mp-green-50); color: #15803d; }
.mpm-badge--blue { background: var(--mp-blue-50); color: #1d4ed8; }
.mpm-badge--orange { background: var(--mp-orange-50); color: #c2410c; }
.mpm-badge--red { background: var(--mp-red-50); color: #b91c1c; }
.mpm-badge--purple { background: var(--mp-purple-50); color: #6d28d9; }
.mpm-badge--grey { background: var(--mp-grey-50); color: #5b5875; }

.mpm-empty { text-align: center; padding: 36px 16px; color: var(--mp-muted); }
.mpm-empty .mpm-ico { width: 40px; height: 40px; color: #c6c0e6; margin-bottom: 8px; }
.mpm-pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.mpm-pager a { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--mp-border); color: var(--mp-text) !important; font-weight: 600; }
.mpm-pager a.is-active { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff !important; }
.mpm-pager .mpm-muted { margin-left: 8px; }

/* ---------- Forms ---------- */
.mpm input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .mpm select, .mpm textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--mp-border-2); border-radius: 8px; background: #fff; color: var(--mp-text); font: 14px/1.4 var(--mp-font); transition: border-color .15s, box-shadow .15s; }
.mpm input:focus, .mpm select:focus, .mpm textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.mpm input[type=file] { font-size: 13px; max-width: 100%; }
.mpm textarea { resize: vertical; }
.mpm-form { display: grid; gap: 14px; }
.mpm-form label, .mpm-field > label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.mpm-form--row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mpm-form--row > * { width: auto !important; flex: 1 1 140px; }
.mpm-form--row > button { flex: 0 0 auto; }
.mpm-form--inline { grid-template-columns: 1fr auto auto; align-items: end; }
.mpm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mpm-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mpm-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; grid-template-columns: none !important; }
.mpm-check input { width: 16px; height: 16px; accent-color: var(--mp-primary); }
.mpm-checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mpm-checks legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.mpm-switch { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.mpm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mpm-switch span { width: 38px; height: 22px; border-radius: 11px; background: #d7d3ea; position: relative; transition: background .15s; flex: none; }
.mpm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.mpm-switch input:checked + span { background: var(--mp-primary); }
.mpm-switch input:checked + span::after { transform: translateX(16px); }
.mpm-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.mpm-help { color: var(--mp-muted); font-size: 12px; font-weight: 400; }
.mpm-field { display: grid; gap: 6px; }
.mpm-settings { gap: 18px; }
.mpm-settings__save { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); padding-top: 14px; }
.mpm-money { display: flex; align-items: center; border: 1px solid var(--mp-border-2); border-radius: 8px; overflow: hidden; max-width: 260px; }
.mpm-money em { padding: 0 10px; font-style: normal; color: var(--mp-muted); background: #faf9fd; align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--mp-border); font-size: 12px; }
.mpm-money input { border: 0 !important; box-shadow: none !important; }
.mpm-code { font-family: ui-monospace, Menlo, monospace !important; font-size: 12px !important; }
.mpm-search { position: relative; display: inline-flex; align-items: center; min-width: 220px; }
.mpm-search .mpm-ico { position: absolute; left: 10px; color: var(--mp-muted); width: 16px; height: 16px; pointer-events: none; }
.mpm-search input { padding-left: 34px !important; }
.mpm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.mpm-filters select, .mpm-filters input[type=date] { width: auto !important; }
.mpm-filters .mpm-search { flex: 1 1 240px; }
.mpm-filters label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mpm-bulk { display: flex; gap: 8px; margin-bottom: 10px; }
.mpm-bulk select { width: auto !important; padding: 6px 10px !important; }
.mpm-details > summary { cursor: pointer; font-weight: 600; color: var(--mp-primary); padding: 4px 0; }
.mpm-details--pop { position: relative; }
.mpm-details--pop[open] > dl { position: absolute; right: 0; z-index: 5; background: #fff; border: 1px solid var(--mp-border); border-radius: 10px; padding: 12px; box-shadow: var(--mp-shadow); min-width: 260px; }
.mpm-field-msg { font-weight: 500; }
.mpm-field-msg.is-error { color: var(--mp-red); }
.mpm-field-msg.is-ok { color: var(--mp-green); }
.mpm-suggest { position: relative; display: block; }
.mpm-suggest ul { position: absolute; left: 0; right: 0; top: 2px; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--mp-border); border-radius: 8px; box-shadow: var(--mp-shadow); z-index: 10; max-height: 240px; overflow-y: auto; }
.mpm-suggest li { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.mpm-suggest li:hover { background: var(--mp-primary-50); }
.mpm-suggest small { color: var(--mp-muted); display: block; }
.mpm-radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mpm-radio-cards label { position: relative; display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--mp-border-2); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 500 !important; }
.mpm-radio-cards label:has(input:checked) { border-color: var(--mp-primary); background: var(--mp-primary-50); }
.mpm-radio-cards input { accent-color: var(--mp-primary); margin-top: 3px; }
.mpm-radio-cards span { display: grid; gap: 2px; }
.mpm-radio-cards small { color: var(--mp-muted); font-weight: 400; }
.mpm-list-editor table { margin-bottom: 8px; }
.mpm-list-editor td input[type=number] { max-width: 90px; }
.mpm-placeholders { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -6px; }
.mpm-placeholders .mpm-chip { margin: 0; font: 500 11px ui-monospace, Menlo, monospace; }
.mpm-rte-bar { display: flex; gap: 4px; }
.mpm-rte-bar button { border: 1px solid var(--mp-border); background: #fff; border-radius: 6px; width: 30px; height: 28px; cursor: pointer; }

/* ---------- Order details ---------- */
.mpm-order-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.mpm-order-head h2 { margin: 6px 0 8px; font-size: 21px; }
.mpm-order-head__ref { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--mp-primary); }
.mpm-order-head__aside { display: flex; gap: 22px; }
.mpm-kv { display: grid; text-align: right; }
.mpm-kv span { color: var(--mp-muted); font-size: 12px; }
.mpm-kv strong { font-size: 20px; }
.mpm-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mp-muted); font-size: 13px; }
.mpm-meta span { display: inline-flex; gap: 5px; align-items: center; }
.mpm-meta span + span::before { content: "•"; margin-right: 10px; color: #cfcbe5; }
.mpm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 6px; }
.mpm-dl dt { color: var(--mp-muted); font-size: 13px; }
.mpm-dl dd { margin: 0; font-weight: 550; }
.mpm-dl--cols { grid-template-columns: repeat(3, max-content 1fr); margin-top: 16px; }
.mpm-dl--metrics { grid-template-columns: 1fr auto; }
.mpm-dl--metrics dd { text-align: right; font-variant-numeric: tabular-nums; }
.mpm-prose { font-size: 14px; line-height: 1.65; }
.mpm-prose p:last-child { margin-bottom: 0; }
.mpm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mpm-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.mpm-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mpm-lines li.is-neg span:last-child { color: var(--mp-green); }
.mpm-lines li.is-total { border-top: 1px dashed var(--mp-border-2); padding-top: 10px; font-weight: 700; font-size: 15px; }
.mpm-person { display: flex; align-items: center; gap: 12px; }
.mpm-person small { display: block; color: var(--mp-muted); }
.mpm-person--lg h2 { margin: 0; }
.mpm-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mpm-files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--mp-border); border-radius: 10px; }
.mpm-files li > .mpm-ico { color: var(--mp-primary); width: 22px; height: 22px; }
.mpm-files li > div { flex: 1; min-width: 0; display: grid; }
.mpm-files li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpm-files li small { color: var(--mp-muted); }
.mpm-files--pending:empty { display: none; }
.mpm-files--pending li button { border: 0; background: none; color: var(--mp-muted); cursor: pointer; font-size: 18px; }
.mpm-drop { display: grid !important; place-items: center; gap: 4px !important; text-align: center; padding: 30px 16px; border: 2px dashed #cfc5f3; border-radius: 12px; background: #fbfaff; cursor: pointer; color: var(--mp-muted); font-weight: 500 !important; transition: border-color .15s, background .15s; position: relative; }
.mpm-drop .mpm-ico { width: 32px; height: 32px; color: var(--mp-primary); }
.mpm-drop strong { color: var(--mp-text); font-size: 14.5px; }
.mpm-drop u { color: var(--mp-primary); text-decoration: none; font-weight: 650; }
.mpm-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mpm-drop.is-over { border-color: var(--mp-primary); background: var(--mp-primary-50); }
.mpm-progress { height: 8px; border-radius: 4px; background: var(--mp-grey-50); overflow: hidden; }
.mpm-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b5cf6, #6d28d9); transition: width .2s; }
.mpm-submit { border: 1px solid #d9cdfa; background: linear-gradient(180deg, #fff, #fcfbff); }
.mpm-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.mpm-timeline li { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.mpm-timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--mp-border); }
.mpm-timeline li:last-child::before { display: none; }
.mpm-timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--mp-primary); flex: none; margin-top: 4px; z-index: 1; }
.mpm-timeline p { margin: 2px 0; color: var(--mp-muted); }
.mpm-timeline small { color: #9a97b5; }
.mpm-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.mpm-stars input { display: none; }
.mpm-stars label { font-size: 30px !important; color: #d6d3e6; cursor: pointer; display: inline !important; }
.mpm-stars input:checked ~ label, .mpm-stars label:hover, .mpm-stars label:hover ~ label { color: #f59e0b; }
.mpm-review { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--mp-border-2); color: var(--mp-muted); font-size: 13px; }
.mpm-review span { color: #f59e0b; }

/* ---------- Chat ---------- */
.mpm-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mpm-chat__tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--mp-border); background: #faf9fd; }
.mpm-chat__tabs a { padding: 6px 12px; border-radius: 8px; color: var(--mp-muted) !important; font-weight: 600; }
.mpm-chat__tabs a.is-active { background: #fff; color: var(--mp-primary) !important; box-shadow: 0 1px 3px rgba(28,24,70,.1); }
.mpm-thread { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; height: 440px; overflow-y: auto; background: #fdfcff; }
.mpm-thread--static { height: auto; max-height: 360px; padding: 4px 0 12px; background: none; }
.mpm-thread__loading, .mpm-thread__empty { color: var(--mp-muted); text-align: center; margin: auto; }
.mpm-msg { max-width: 78%; align-self: flex-start; }
.mpm-msg.is-mine { align-self: flex-end; }
.mpm-msg__meta { font-size: 11.5px; color: #9a97b5; margin: 0 4px 3px; }
.mpm-msg.is-mine .mpm-msg__meta { text-align: right; }
.mpm-msg__body { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--mp-border); white-space: pre-wrap; word-wrap: break-word; }
.mpm-msg.is-mine .mpm-msg__body { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); border-radius: 14px 14px 4px 14px; }
.mpm-msg.is-admin .mpm-msg__body { background: #fff7e8; border-color: #fbe0b0; }
.mpm-msg.is-mine.is-admin .mpm-msg__body { background: var(--mp-primary); border-color: var(--mp-primary); }
.mpm-chat__compose { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--mp-border); align-items: flex-end; }
.mpm-chat__compose select { width: 150px !important; flex: none; }
.mpm-chat__compose textarea { min-height: 44px; }
.mpm-chat__compose .mpm-btn { height: 44px; width: 48px; padding: 0; }
.mpm-chat__note { margin: 0; padding: 8px 16px; background: var(--mp-orange-50); color: #7c2d12; font-size: 12.5px; }
.mpm-inbox { list-style: none; margin: -20px; padding: 0; }
.mpm-inbox a { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f0eef8; color: var(--mp-text) !important; }
.mpm-inbox a:hover { background: #fcfbff; }
.mpm-inbox li.is-unread a { background: #f9f6ff; }
.mpm-inbox__main { flex: 1; min-width: 0; display: grid; }
.mpm-inbox__title { font-size: 13px; color: var(--mp-muted); }
.mpm-inbox__preview { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpm-inbox__aside { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--mp-muted); }
.mpm-count { background: var(--mp-primary); color: #fff; border-radius: 10px; padding: 0 7px; font: 700 11px/18px var(--mp-font); }

/* ---------- Ledger, todo, jobs ---------- */
.mpm-ledger { list-style: none; margin: 0; padding: 0; }
.mpm-ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f0fa; }
.mpm-ledger li:last-child { border-bottom: 0; }
.mpm-ledger li > span:first-child { display: grid; min-width: 0; }
.mpm-ledger small { color: var(--mp-muted); font-size: 12px; }
.mpm-ledger li > span:last-child { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; }
.mpm-ledger .is-pos { color: var(--mp-green); }
.mpm-ledger .is-neg { color: var(--mp-red); }
.mpm-mini { list-style: none; padding: 0; margin: 6px 0; font-size: 12.5px; display: grid; gap: 4px; }
.mpm-todo { list-style: none; margin: 0; padding: 0; }
.mpm-todo a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f2f0fa; color: var(--mp-text) !important; font-weight: 500; }
.mpm-todo li:last-child a { border-bottom: 0; }
.mpm-todo em { font-style: normal; font-weight: 700; color: var(--mp-muted); background: var(--mp-grey-50); padding: 1px 9px; border-radius: 10px; font-size: 12.5px; }
.mpm-todo em.is-hot { background: var(--mp-orange-50); color: #c2410c; }
.mpm-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mpm-job { background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 18px; box-shadow: var(--mp-shadow); display: flex; flex-direction: column; gap: 8px; }
.mpm-job header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mpm-job header .mpm-chip { margin: 0; }
.mpm-job h3 { margin: 2px 0 0; font-size: 15.5px; }
.mpm-job__preview { color: var(--mp-muted); font-size: 13px; margin: 0; }
.mpm-job__meta { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--mp-muted); }
.mpm-job__meta li { display: inline-flex; gap: 4px; align-items: center; }
.mpm-job__pay { margin-left: auto; color: var(--mp-green) !important; font-weight: 750; font-size: 15px; }
.mpm-job footer { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f2f0fa; }
.mpm-banner-list { list-style: none; margin: 0; padding: 0; }
.mpm-banner-list li { padding: 12px 0; border-bottom: 1px solid #f2f0fa; display: grid; gap: 8px; }
.mpm-banner-list p { margin: 4px 0; font-size: 13px; }
.mpm-banner-list small { color: var(--mp-muted); }
.mpm-ticks { padding-left: 18px; color: var(--mp-muted); }
.mpm-faq { border-bottom: 1px solid var(--mp-border); padding: 12px 0; }
.mpm-faq summary { cursor: pointer; font-weight: 600; }
.mpm-faq p { margin: 8px 0 0; color: var(--mp-muted); }
.mpm-tpl-list { padding: 12px; }
.mpm-tpl-list h4 { margin: 10px 8px 4px; }
.mpm-tpl-list ul { list-style: none; margin: 0; padding: 0; }
.mpm-tpl-list a { display: block; padding: 6px 8px; border-radius: 7px; color: var(--mp-text) !important; font-size: 13px; }
.mpm-tpl-list a.is-active { background: var(--mp-primary-50); color: var(--mp-primary) !important; font-weight: 600; }

/* ---------- Charts ---------- */
.mpm-chart { width: 100%; min-height: 220px; }
.mpm-chart--sm { min-height: 140px; }
.mpm-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.mpm-chart text { font: 11px var(--mp-font); fill: #8e8aad; }
.mpm-chart .mpm-legend { display: flex; gap: 14px; font-size: 12px; color: var(--mp-muted); margin-top: 6px; }
.mpm-chart .mpm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mpm-hbar { display: grid; gap: 8px; }
.mpm-hbar__row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.mpm-hbar__track { display: block; height: 8px; background: var(--mp-grey-50); border-radius: 4px; overflow: hidden; }
.mpm-hbar__fill { display: block; height: 100%; border-radius: 4px; background: var(--mp-primary); }
.mpm-hbar__row strong { font-variant-numeric: tabular-nums; }

/* ---------- Wizard ---------- */
.mpm-wizard__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.mpm-wizard fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.mpm-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; overflow-x: auto; }
.mpm-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--mp-border); color: var(--mp-muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.mpm-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-grey-50); font-size: 11.5px; }
.mpm-steps li.is-active { border-color: var(--mp-primary); color: var(--mp-primary); }
.mpm-steps li.is-active span { background: var(--mp-primary); color: #fff; }
.mpm-steps li.is-done span { background: var(--mp-green); color: #fff; }
.mpm-wizard__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--mp-border); flex-wrap: wrap; }
.mpm-wizard__nav [data-prev] { margin-right: auto; }
.mpm-summary { position: sticky; top: 84px; }
.mpm-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mp-border); }
.mpm-summary__total strong { font-size: 26px; color: var(--mp-primary); }
.mpm-summary__note, .mpm-summary__deadline { font-size: 12px; margin: 8px 0 0; }
.mpm-chips-select { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.mpm-chips-select label { cursor: pointer; display: block !important; }
.mpm-chips-select input { position: absolute; opacity: 0; }
.mpm-chips-select span { display: inline-block; padding: 8px 14px; border: 1px solid var(--mp-border-2); border-radius: 9px; font-weight: 600; font-size: 13px; background: #fff; }
.mpm-chips-select input:checked + span { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); }
.mpm-chips-select input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.mpm-stepper { display: flex; border: 1px solid var(--mp-border-2); border-radius: 8px; overflow: hidden; }
.mpm-stepper button { width: 40px; border: 0; background: #faf9fd; font-size: 18px; cursor: pointer; color: var(--mp-primary); }
.mpm-stepper input { border: 0 !important; text-align: center; border-radius: 0 !important; box-shadow: none !important; }
.mpm-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mpm-service { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--mp-border-2); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 500 !important; }
.mpm-service:has(input:checked) { border-color: var(--mp-primary); background: var(--mp-primary-50); }
.mpm-service input { accent-color: var(--mp-primary); margin-top: 3px; width: 16px; height: 16px; }
.mpm-service span { display: grid; }
.mpm-service small { color: var(--mp-muted); }
.mpm-auth-switch { display: inline-flex; gap: 4px; background: var(--mp-grey-50); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.mpm-auth-switch button { border: 0; background: none; padding: 8px 14px; border-radius: 7px; font: 600 13px var(--mp-font); color: var(--mp-muted); cursor: pointer; }
.mpm-auth-switch button.is-active { background: #fff; color: var(--mp-primary); box-shadow: 0 1px 3px rgba(28,24,70,.1); }

/* ---------- Plain (public) pages ---------- */
.mpm-plain { min-height: 100vh; }
.mpm-plain__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--mp-border); }
.mpm-plain__wrap { max-width: 1160px; margin: 0 auto; padding: 28px 20px 60px; }
.mpm-plain__title { font-size: 26px !important; }
.mpm-auth { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; }
.mpm-auth__side { background: linear-gradient(160deg, var(--mp-sidebar), var(--mp-sidebar-2) 60%, #4c1d95); color: #d8d4f3; padding: 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.mpm-auth__side h2 { color: #fff; font-size: 30px; margin-top: auto; max-width: 420px; }
.mpm-auth__side ul { margin: 0 0 auto; padding-left: 18px; display: grid; gap: 8px; }
.mpm-auth__main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 6vw, 88px); max-width: 620px; }
.mpm-auth__main h1 { font-size: 24px; }

/* ---------- Toasts & modal ---------- */
.mpm-toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 36px)); }
.mpm-toast { padding: 12px 16px; border-radius: 10px; background: var(--mp-sidebar); color: #fff; box-shadow: 0 10px 30px rgba(28,24,70,.25); font-weight: 500; animation: mpm-in .2s ease-out; display: grid; gap: 2px; cursor: pointer; }
.mpm-toast small { opacity: .8; font-weight: 400; }
.mpm-toast--error { background: var(--mp-red); }
.mpm-toast--success { background: #15803d; }
@keyframes mpm-in { from { transform: translateY(8px); opacity: 0; } }
.mpm-modal { border: 0; border-radius: 14px; padding: 24px; width: min(520px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(28,24,70,.3); color: var(--mp-text); }
.mpm-modal::backdrop { background: rgba(28, 24, 70, .45); backdrop-filter: blur(2px); }
.mpm-modal__close { position: absolute; right: 12px; top: 8px; }
.mpm-modal__close button { border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--mp-muted); }
.mpm-modal iframe { width: 100%; height: 520px; border: 1px solid var(--mp-border); border-radius: 10px; }
.mpm-modal--wide { width: min(760px, calc(100vw - 24px)); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.mpm-stats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mpm-grid-main, .mpm-wizard__grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.mpm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.mpm-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
	body.mpm-nav-open .mpm-sidebar { box-shadow: 10px 0 40px rgba(0,0,0,.25); }
	.mpm-app { background: none; }
	body.mpm-nav-open .mpm-sidebar { transform: none; }
	body.mpm-nav-open .mpm-overlay { display: block; position: fixed; inset: 0; background: rgba(28,24,70,.4); z-index: 35; }
	.mpm-menu-toggle { display: grid; }
	.mpm-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpm-grid-main, .mpm-wizard__grid, .mpm-grid-side { grid-template-columns: minmax(0, 1fr); }
	.mpm-summary, .mpm-subnav { position: static; }
	.mpm-subnav { flex-direction: row; overflow-x: auto; }
	.mpm-subnav a { white-space: nowrap; }
	.mpm-auth { grid-template-columns: 1fr; }
	.mpm-auth__side { display: none; }
}
@media (max-width: 720px) {
	.mpm-content { padding: 16px 14px 40px; }
	.mpm-topbar { padding: 0 14px; }
	.mpm-topbar__name { display: none; }
	.mpm-main > .mpm-alert { margin: 12px 14px 0; }
	.mpm-stats--4, .mpm-stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mpm-stat { padding: 12px; gap: 10px; }
	.mpm-stat__icon { width: 36px; height: 36px; }
	.mpm-stat__value { font-size: 18px; }
	.mpm-grid-2, .mpm-grid-3, .mpm-row, .mpm-row--3, .mpm-services, .mpm-checks { grid-template-columns: minmax(0, 1fr); }
	.mpm-card { padding: 16px; }
	.mpm-table-wrap { margin: 0 -16px; }
	.mpm-card__head { flex-wrap: wrap; }
	/* Stack simple tables into cards on phones */
	.mpm-card .mpm-table:not(.mpm-table--compact) thead { display: none; }
	.mpm-card .mpm-table:not(.mpm-table--compact) tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #f0eef8; }
	.mpm-card .mpm-table:not(.mpm-table--compact) td { padding: 0 !important; border: 0; }
	.mpm-card .mpm-table:not(.mpm-table--compact) td.mpm-right { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
	.mpm-cell-title { max-width: none; }
	.mpm-order-head__aside { width: 100%; justify-content: space-between; }
	.mpm-kv { text-align: left; }
	.mpm-dl--cols { grid-template-columns: max-content 1fr; }
	.mpm-msg { max-width: 92%; }
	.mpm-thread { height: 60vh; }
	.mpm-chat__compose { flex-wrap: wrap; }
	.mpm-chat__compose select { width: 100% !important; }
	.mpm-welcome { padding: 16px; }
	.mpm-bell__panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
	.mpm-form--inline { grid-template-columns: 1fr; }
	.mpm-jobs { grid-template-columns: minmax(0, 1fr); }
}

.mpm-signed-in { display: grid; gap: 10px; }
.mpm-signed-in h1 { margin: 0; }
