/* PMG — Platform page (templates/platform.php). Demo surface classes mirror the design's inline styles. */

/* Hero / CTA buttons */
.pmg-site .pmg-pf-btn-primary:hover,
.pmg-site .pmg-pf-btn-primary:focus-visible { color: #000; transform: translateY(-2px); }
.pmg-site .pmg-pf-btn-ghost { border: 1px solid rgba(255,255,255,.25); transition: border-color .25s; }
.pmg-site .pmg-pf-btn-ghost:hover,
.pmg-site .pmg-pf-btn-ghost:focus-visible { border-color: #F83900; color: #fff; }
.pmg-site .pmg-pf-btn-dark:hover,
.pmg-site .pmg-pf-btn-dark:focus-visible { color: #fff; }
.pmg-site .pmg-pf-btn-dark:focus-visible { outline-color: #000; }

/* Hero preview cards */
.pmg-pf-peek { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,1.4vw,20px); padding: clamp(14px,1.6vw,24px); }
@media (min-width: 760px) { .pmg-pf-peek { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* ---------- Demo app ---------- */
.pmg-pf-app { margin-top: clamp(32px,5vh,56px); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden; background: linear-gradient(170deg,#0c0705,#040201); box-shadow: 0 50px 140px rgba(0,0,0,.85); }
:where(.pmg-pf-app) button { font: inherit; cursor: pointer; }
.pmg-pf-app button::before { inset: -4px; } /* keep the shared hit area from swallowing neighbours in dense controls */

.pmg-pf-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); }
.pmg-pf-top-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pmg-pf-top-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pmg-pf-logo { width: 24px; height: 24px; border-radius: 8px; background: #F83900; display: grid; place-items: center; font-family: 'Clash Display',sans-serif; font-size: 12px; font-weight: 600; color: #000; flex-shrink: 0; }
.pmg-pf-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#F83900,#7a1c00); flex-shrink: 0; }

.pmg-pf-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.5); }
.pmg-pf-mode { font-size: 12.5px; font-weight: 500; padding: 7px 15px; border-radius: 999px; border: 0; background: transparent; color: #AEA7A6; white-space: nowrap; transition: color .3s, background .3s, border-color .3s, box-shadow .3s, transform .3s, opacity .3s; }
.pmg-pf-mode.is-on { background: #F83900; color: #000; }
.pmg-pf-mode:not(.is-on):hover { color: #fff; }

.pmg-pf-ranges { display: inline-flex; gap: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.pmg-pf-range { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; border: 0; background: transparent; color: #AEA7A6; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s, opacity .25s; }
.pmg-pf-range.is-on { background: rgba(248,57,0,.22); color: #F83900; }
.pmg-pf-range:not(.is-on):hover { color: #fff; }

.pmg-pf-bell { position: relative; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #F3E3E1; font-size: 13px; display: grid; place-items: center; padding: 0; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s, opacity .25s; }
.pmg-pf-bell[aria-expanded="true"] { border-color: #F83900; background: rgba(248,57,0,.16); }
.pmg-pf-bell:hover { border-color: rgba(248,57,0,.6); }
.pmg-pf-bell-n { position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; box-sizing: border-box; border-radius: 999px; background: #F83900; color: #000; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.pmg-pf-alerts { border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(248,57,0,.05); padding: 14px clamp(14px,1.6vw,20px); display: grid; gap: 10px; animation: pmgFade .25s ease both; }
.pmg-pf-alerts[hidden] { display: none; }
.pmg-pf-alerts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pmg-pf-alerts-head > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #F83900; }
.pmg-pf-dismiss { font-size: 11px; background: transparent; border: 0; color: #AEA7A6; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.pmg-pf-dismiss:hover { color: #fff; }
[data-pf-notes] { display: grid; gap: 10px; }
.pmg-pf-note { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 12px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.pmg-pf-note-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.pmg-pf-note-t { font-size: 13.5px; color: #F3E3E1; line-height: 1.4; text-wrap: pretty; }
.pmg-pf-note-m { font-size: 11px; color: #AEA7A6; margin-top: 3px; white-space: nowrap; }
.pmg-pf-note-t + .pmg-pf-note-m { white-space: normal; }

/* Shell: side nav + main */
.pmg-pf-shell { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; }
.pmg-pf-nav { border-right: 1px solid rgba(255,255,255,.08); padding: clamp(12px,1.2vw,18px) clamp(8px,.9vw,12px); background: rgba(0,0,0,.4); min-width: 0; }
.pmg-pf-tabs { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.pmg-pf-tabs::-webkit-scrollbar { display: none; }
.pmg-pf-tab { text-align: left; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: #AEA7A6; white-space: nowrap; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s, opacity .25s; flex-shrink: 0; }
.pmg-pf-tab:hover { color: #fff; }
.pmg-pf-tab.is-on { background: rgba(248,57,0,.14); color: #fff; }
.pmg-pf-tab:focus-visible { outline-offset: -2px; }
.pmg-pf-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .25s; flex-shrink: 0; }
.pmg-pf-tab.is-on .pmg-pf-tab-dot { background: #F83900; }
.pmg-pf-hint { display: none; margin-top: 14px; padding: 11px; border: 1px dashed rgba(255,255,255,.14); border-radius: 11px; }
.pmg-pf-hint-l { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #F83900; }
.pmg-pf-hint-n { font-size: 11.5px; color: #AEA7A6; margin-top: 6px; line-height: 1.45; }
@media (min-width: 900px) {
	.pmg-pf-shell { grid-template-columns: 200px minmax(0,1fr); }
	.pmg-pf-tabs { display: grid; align-content: start; overflow: visible; }
	.pmg-pf-hint { display: block; }
}
@media (max-width: 899px) { .pmg-pf-nav { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

.pmg-pf-main { min-width: 0; padding: clamp(14px,1.6vw,24px); display: grid; gap: clamp(12px,1.3vw,18px); align-content: start; }
.pmg-pf-main:focus-visible { outline: 2px solid #F83900; outline-offset: -2px; }
.pmg-pf-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.pmg-pf-title { font-family: 'Clash Display',sans-serif; font-size: clamp(20px,2vw,28px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.pmg-pf-sub { font-size: 12.5px; color: #AEA7A6; margin-top: 6px; text-wrap: pretty; }
.pmg-pf-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pmg-pf-chips[hidden] { display: none; }
.pmg-pf-chip { font-size: 11.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #AEA7A6; white-space: nowrap; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s, opacity .25s; }
.pmg-pf-chip:hover { border-color: rgba(248,57,0,.6); color: #fff; }
.pmg-pf-chip.is-on, .pmg-pf-chip[aria-pressed="true"] { border-color: #F83900; background: #F83900; color: #000; }

.pmg-pf-view { display: grid; gap: clamp(12px,1.3vw,18px); min-width: 0; }
.pmg-pf-view[hidden], .pmg-pf-mgr[hidden] { display: none; }

/* KPI cards */
.pmg-pf-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: clamp(8px,1vw,12px); }
.pmg-pf-kpi { border: 1px solid rgba(255,255,255,.09); border-radius: 13px; padding: 12px 13px; background: rgba(255,255,255,.02); min-width: 0; transition: border-color .4s; }
.pmg-pf-kpi.is-hot { border-color: rgba(248,57,0,.4); background: rgba(248,57,0,.07); }
.pmg-pf-kpi-l { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #AEA7A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmg-pf-kpi-row { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.pmg-pf-kpi-v { font-family: 'Clash Display',sans-serif; font-size: clamp(21px,2vw,30px); font-weight: 500; letter-spacing: -.025em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pmg-pf-kpi.is-hot .pmg-pf-kpi-v { color: #F83900; }
.pmg-pf-kpi-d { font-size: 10.5px; color: #3ddc84; }
.pmg-pf-kpi-s { height: 20px; margin-top: 9px; }

/* Chart + side */
.pmg-pf-body { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(12px,1.3vw,18px); min-width: 0; }
@media (min-width: 1100px) { .pmg-pf-body { grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); } }
.pmg-pf-card { border: 1px solid rgba(255,255,255,.09); border-radius: 15px; padding: clamp(12px,1.3vw,16px); background: rgba(255,255,255,.02); min-width: 0; }
.pmg-pf-chartcard { padding: clamp(12px,1.3vw,18px); }
.pmg-pf-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pmg-pf-cap { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #F3E3E1; }
.pmg-pf-rangetag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #F83900; border: 1px solid rgba(248,57,0,.4); padding: 3px 9px; border-radius: 999px; }
.pmg-pf-chart { height: clamp(150px,20vw,240px); margin-top: 14px; }
.pmg-pf-axis { display: flex; justify-content: space-between; font-size: 10px; color: #AEA7A6; margin-top: 8px; letter-spacing: .06em; }
.pmg-pf-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; }
.pmg-pf-legend > span { display: flex; align-items: center; gap: 7px; }
.pmg-pf-legend b { font-weight: inherit; }
.pmg-pf-legend > span > span { width: 13px; height: 2px; }
.pmg-pf-legend-a { color: #F3E3E1; }
.pmg-pf-legend-a > span { background: #F83900; }
.pmg-pf-legend-b { color: #AEA7A6; }
.pmg-pf-legend-b > span { background: rgba(255,255,255,.4); }
.pmg-pf-aside { display: grid; gap: clamp(10px,1.1vw,14px); align-content: start; min-width: 0; }
.pmg-pf-side { display: grid; gap: 9px; margin-top: 12px; }
.pmg-pf-side-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.pmg-pf-side-l { font-size: 12.5px; color: #F3E3E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmg-pf-meter { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); margin-top: 6px; overflow: hidden; }
.pmg-pf-meter i { display: block; height: 100%; border-radius: 999px; background: rgba(255,255,255,.26); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.pmg-pf-side-row.is-first .pmg-pf-meter i { background: #F83900; box-shadow: 0 0 12px rgba(248,57,0,.6); }
.pmg-pf-side-row.is-second .pmg-pf-meter i { background: rgba(248,57,0,.6); }
.pmg-pf-side-v { font-size: 12px; color: #AEA7A6; white-space: nowrap; }
.pmg-pf-side-row.is-first .pmg-pf-side-v { color: #F83900; }
.pmg-pf-sys { display: grid; gap: 9px; }
[data-pf-sys] { display: grid; gap: 9px; }
.pmg-pf-sys-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pmg-pf-sys-l { font-size: 12px; color: #AEA7A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmg-pf-sys-v { font-size: 11.5px; color: #F3E3E1; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pmg-pf-sys-v::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.pmg-pf-sys-v.is-ok { color: #3ddc84; }

/* Data table */
.pmg-pf-table, .pmg-pf-ctable, .pmg-pf-cases { padding: 0; overflow: hidden; }
.pmg-pf-table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px clamp(12px,1.3vw,18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.pmg-pf-count { font-size: 11px; color: #AEA7A6; }
.pmg-pf-scroll { overflow-x: auto; scrollbar-width: none; }
.pmg-pf-scroll::-webkit-scrollbar { display: none; }
.pmg-pf-grid { min-width: 560px; }
.pmg-pf-thead, .pmg-pf-cells { display: grid; grid-template-columns: var(--pf-cols); gap: clamp(10px,1.4vw,22px); padding: 11px clamp(12px,1.3vw,18px); }
.pmg-pf-thead { border-bottom: 1px solid rgba(255,255,255,.08); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #AEA7A6; }
.pmg-pf-thead span { white-space: nowrap; }
.pmg-pf-cells { padding-block: 13px; align-items: center; }
.pmg-pf-row { text-align: left; width: 100%; display: block; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; padding: 0; transition: background .25s; }
.pmg-pf-row::before { display: none; }
.pmg-pf-row:hover { background: rgba(255,255,255,.035); }
.pmg-pf-row[aria-expanded="true"] { background: rgba(248,57,0,.07); }
.pmg-pf-row:focus-visible { outline-offset: -2px; }
.pmg-site .pmg-pf-row:active { transform: none; }
.pmg-pf-cell { font-size: 13px; color: #AEA7A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmg-pf-cell.is-first { color: #fff; font-weight: 500; }
.pmg-pf-cell.is-good { color: #3ddc84; }
.pmg-pf-cell.is-warn { color: #F83900; }
.pmg-pf-detail { display: grid; gap: 12px; padding: 0 clamp(12px,1.3vw,18px) 16px; animation: pmgFade .3s ease both; }
.pmg-pf-detail[hidden] { display: none; }
.pmg-pf-detail-t { display: block; font-size: 13px; line-height: 1.5; color: #AEA7A6; max-width: 70ch; text-wrap: pretty; }
.pmg-pf-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 12px; }
.pmg-pf-fact { display: block; border-left: 1px solid rgba(248,57,0,.5); padding-left: 10px; }
.pmg-pf-fact > span { display: block; }
.pmg-pf-fact > span:first-child { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #AEA7A6; }
.pmg-pf-fact > span:last-child { font-family: 'Clash Display',sans-serif; font-size: 17px; font-weight: 500; color: #F83900; margin-top: 4px; }
.pmg-pf-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #AEA7A6; }
.pmg-pf-tag { border: 1px solid rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; color: #AEA7A6; }

/* ---------- Managed tabs (read-only) ---------- */
.pmg-pf-mgr { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; min-width: 0; container-type: inline-size; }
.pmg-pf-mgr-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pmg-pf-input { flex: 1 1 220px; min-width: 0; box-sizing: border-box; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 13px; color: #fff; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.pmg-pf-input::placeholder { color: rgba(174,167,166,.6); }
.pmg-pf-input:focus { border-color: #F83900; box-shadow: 0 0 0 3px rgba(248,57,0,.2); outline: none; }
.pmg-pf-filters { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.pmg-pf-fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 4px 2px; }
.pmg-pf-fgroup::-webkit-scrollbar { display: none; }
.pmg-pf-fgroup > span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #AEA7A6; margin-right: 4px; white-space: nowrap; }
.pmg-pf-clear { background: transparent; border: 0; padding: 0; color: #AEA7A6; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pmg-pf-clear[hidden] { display: none; }
.pmg-pf-clear:hover { color: #fff; }

.pmg-pf-cwrap { overflow-x: auto; scrollbar-width: none; }
.pmg-pf-cwrap::-webkit-scrollbar { display: none; }
.pmg-pf-crow { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,.9fr) minmax(0,1.4fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.3fr); gap: clamp(10px,1.2vw,18px); padding: 13px clamp(12px,1.3vw,18px); align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); min-width: 680px; transition: background .25s; }
.pmg-pf-crow[hidden] { display: none; }
[data-pf-cbody] .pmg-pf-crow:hover { background: rgba(255,255,255,.035); }
.pmg-pf-chead { padding-block: 11px; border-bottom-color: rgba(255,255,255,.08); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #AEA7A6; white-space: nowrap; }
.pmg-pf-sort { background: transparent; border: 0; padding: 0; color: #AEA7A6; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; text-align: left; transition: color .2s; }
.pmg-pf-sort > span { color: rgba(255,255,255,.25); }
.pmg-pf-sort:hover, .pmg-pf-sort.is-on { color: #fff; }
.pmg-pf-sort.is-on > span { color: #F83900; }
.pmg-pf-cname { min-width: 0; }
.pmg-pf-cname > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmg-pf-cname > span:first-child { font-size: 13.5px; font-weight: 500; color: #fff; }
.pmg-pf-cname > span + span { font-size: 11.5px; color: #AEA7A6; margin-top: 3px; }
.pmg-pf-ctype { font-size: 12.5px; color: #F3E3E1; }
.pmg-pf-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pmg-pf-pill { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); color: #F3E3E1; background: rgba(255,255,255,.03); white-space: nowrap; }
.pmg-pf-badge { --pf-tone: #AEA7A6; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(174,167,166,.4); background: rgba(174,167,166,.12); color: var(--pf-tone); white-space: nowrap; font-weight: 500; }
.pmg-pf-badge > span { width: 6px; height: 6px; border-radius: 50%; background: var(--pf-tone); box-shadow: 0 0 7px var(--pf-tone); flex-shrink: 0; }
.pmg-pf-badge.is-green { --pf-tone: #3ddc84; border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.12); }
.pmg-pf-badge.is-orange { --pf-tone: #F83900; border-color: rgba(248,57,0,.4); background: rgba(248,57,0,.12); }
.pmg-pf-badge.is-amber { --pf-tone: #F5B83D; border-color: rgba(245,184,61,.4); background: rgba(245,184,61,.12); }
.pmg-pf-badge.is-pulse > span { animation: pmgPfPulse 1.6s ease-in-out infinite; }
@keyframes pmgPfPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,184,61,.7); } 50% { box-shadow: 0 0 0 5px rgba(245,184,61,0); } }
.pmg-pf-cbudget { font-size: 13px; font-variant-numeric: tabular-nums; }
.pmg-pf-cdates { font-size: 12px; color: #F3E3E1; }
.pmg-pf-cdates > span { color: #AEA7A6; }

/* Compact campaign rows when the panel is narrow (mirrors the dashboard's card layout). */
@container (max-width: 699px) {
	.pmg-pf-chead { display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
	.pmg-pf-chead > span:not([aria-sort]) { display: none; }
	.pmg-pf-crow:not(.pmg-pf-chead) { min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 9px 10px; padding: 14px; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cname { grid-column: 1; grid-row: 1; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cbudget { grid-column: 2; grid-row: 1; align-self: start; font-size: 13.5px; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cstatus { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-pills { grid-column: 1 / -1; grid-row: 3; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-ctype { grid-column: 1; grid-row: 4; font-size: 12px; color: #AEA7A6; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cdates { grid-column: 1 / -1; grid-row: 5; color: #AEA7A6; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cdates br { display: none; }
	.pmg-pf-crow:not(.pmg-pf-chead) .pmg-pf-cdates > span { margin-left: 4px; }
	.pmg-pf-cname > span:first-child { white-space: normal; font-size: 14.5px; }
}

.pmg-pf-empty { border: 1px dashed rgba(255,255,255,.16); border-radius: 15px; padding: clamp(28px,5vw,48px) 20px; text-align: center; display: grid; gap: 10px; justify-items: center; margin: 14px; }
.pmg-pf-empty[hidden] { display: none; }
.pmg-pf-mgr > .pmg-pf-empty { margin: 0; }
.pmg-pf-empty-t { font-family: 'Clash Display',sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.pmg-pf-empty p { margin: 0; color: #AEA7A6; font-size: 13.5px; max-width: 420px; line-height: 1.5; }
.pmg-pf-ghostbtn { margin-top: 8px; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; transition: transform .2s, border-color .2s; }
.pmg-pf-ghostbtn:hover { border-color: #F83900; transform: translateY(-1px); }

/* Case studies (public info only) */
.pmg-pf-case-list { list-style: none; margin: 0; padding: 0; }
.pmg-pf-case { display: grid; grid-template-columns: minmax(0,2.6fr) minmax(0,1.2fr) minmax(0,1.1fr) auto; gap: clamp(10px,1.2vw,18px); align-items: center; padding: 12px clamp(12px,1.3vw,18px); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; transition: background .25s; }
.pmg-site .pmg-pf-case:hover { background: rgba(255,255,255,.035); color: #fff; }
.pmg-pf-case::before { display: none; }
.pmg-site .pmg-pf-case:active { transform: none; }
.pmg-pf-case:focus-visible { outline-offset: -2px; }
.pmg-pf-case-go { color: #AEA7A6; font-size: 14px; transition: color .2s, transform .2s; }
.pmg-pf-case:hover .pmg-pf-case-go { color: #F83900; transform: translate(2px,-2px); }
.pmg-pf-case-list li:last-child .pmg-pf-case { border-bottom: 0; }
@container (max-width: 559px) {
	.pmg-pf-case { grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; padding: 14px; }
	.pmg-pf-case .pmg-pf-cname { grid-column: 1; }
	.pmg-pf-case .pmg-pf-case-go { grid-column: 2; grid-row: 1; }
	.pmg-pf-case .pmg-pf-ctype { grid-column: 1; grid-row: 2; font-size: 12px; color: #AEA7A6; }
	.pmg-pf-case > span:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
	.pmg-pf-cname > span:first-child { white-space: normal; }
}
