/* ==========================================================================
   Consolidated Super Admin Dashboard — [wpip_platform_admin]
   Self-contained: all rules scoped under .wpip-plat-wrap.
   ========================================================================== */

.wpip-plat-wrap {
    --plat-sb-w: 248px;
    --plat-sb-w-coll: 72px;
    --plat-sb-bg: #10162B;
    --plat-primary: #5B5FF0;
    --plat-primary-d: #4548D8;
    --plat-bg: #F7F8FC;
    --plat-border: #E7E9F2;
    --plat-text: #111827;
    --plat-muted: #8B93A7;
    --plat-radius: 14px;
    --plat-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05);
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--plat-bg);
    color: var(--plat-text);
}
.wpip-plat-wrap *, .wpip-plat-wrap *::before, .wpip-plat-wrap *::after { box-sizing: border-box; }
.wpip-plat-wrap a { text-decoration: none; }
.wpip-plat-wrap table { border-collapse: collapse; width: 100%; }
.wpip-plat-wrap code { font-family: ui-monospace, monospace; font-size: 12px; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.wpip-plat-sidebar {
    width: var(--plat-sb-w);
    flex-shrink: 0;
    background: var(--plat-sb-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width .2s ease;
    z-index: 40;
}
.wpip-plat-sidebar.wpip-plat-collapsed { width: var(--plat-sb-w-coll); }

.wpip-plat-brand {
    height: 64px; flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.wpip-plat-brand-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--plat-primary), #8B5CF6);
    display: flex; align-items: center; justify-content: center;
}
.wpip-plat-brand-logo { max-height: 34px; max-width: 120px; object-fit: contain; }
.wpip-plat-brand-text { flex: 1; min-width: 0; overflow: hidden; }
.wpip-plat-brand-name { color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpip-plat-brand-sub  { color: var(--plat-muted); font-size: 11px; }
.wpip-plat-collapsed .wpip-plat-brand-text { display: none; }
.wpip-plat-collapsed .wpip-plat-brand { justify-content: center; padding: 0; }

#wpip-plat-toggle {
    margin-left: auto; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 7px;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.5);
    transition: transform .2s ease;
}
#wpip-plat-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.wpip-plat-collapsed #wpip-plat-toggle { margin: 0; }
.wpip-plat-collapsed #wpip-plat-toggle svg { transform: rotate(180deg); }

/* Collapsed state also needs its own always-visible expand affordance at
   the foot of the sidebar — relying solely on the header toggle (which
   shrinks to a bare 26px icon) was too easy to miss; this is the "clear and
   accessible way to expand it again" fix. */
.wpip-plat-expand-fab {
    display: none;
    width: 100%; padding: 10px 0; margin-top: 4px;
    background: rgba(255,255,255,.06); border: none; border-radius: 9px;
    color: var(--plat-muted); cursor: pointer;
    align-items: center; justify-content: center;
}
.wpip-plat-expand-fab:hover { background: rgba(255,255,255,.12); color: #fff; }
.wpip-plat-collapsed .wpip-plat-expand-fab { display: flex; }
.wpip-plat-expand-fab svg { width: 15px; height: 15px; }

.wpip-plat-nav {
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
    padding: 12px 10px 20px;
}
.wpip-plat-nav::-webkit-scrollbar { width: 4px; }
.wpip-plat-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.wpip-plat-group-label {
    display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
    padding: 16px 10px 6px;
    font-size: 11px; font-weight: 600;
    color: #5C637A;
    letter-spacing: .02em;
}
.wpip-plat-group-label em { font-style: normal; font-size: 9.5px; color: #4A5068; white-space: nowrap; }
.wpip-plat-collapsed .wpip-plat-group-label { display: none; }

.wpip-plat-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; margin-bottom: 2px;
    border-radius: 9px;
    color: #B7BDD1;
    font-size: 13.5px; font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.wpip-plat-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.wpip-plat-nav-item span:not(.wpip-plat-nav-item em) { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.wpip-plat-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.wpip-plat-nav-item.active { background: var(--plat-primary); color: #fff; }
.wpip-plat-nav-item em {
    font-style: normal; font-size: 9.5px; font-weight: 700;
    background: rgba(255,255,255,.1); color: #9CA3C4;
    padding: 2px 6px; border-radius: 20px; flex-shrink: 0;
}
.wpip-plat-collapsed .wpip-plat-nav-item span, .wpip-plat-collapsed .wpip-plat-nav-item em { display: none; }
.wpip-plat-collapsed .wpip-plat-nav-item { justify-content: center; }

.wpip-plat-sidebar-foot {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.wpip-plat-foot-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--plat-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; overflow: hidden;
}
.wpip-plat-foot-meta { flex: 1; min-width: 0; }
.wpip-plat-foot-name { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpip-plat-foot-role { color: var(--plat-muted); font-size: 11px; }
.wpip-plat-foot-logout { color: var(--plat-muted); flex-shrink: 0; display: flex; }
.wpip-plat-foot-logout:hover { color: #fff; }
.wpip-plat-foot-logout svg { width: 17px; height: 17px; }
.wpip-plat-collapsed .wpip-plat-foot-meta, .wpip-plat-collapsed .wpip-plat-foot-logout { display: none; }

/* ── Main / topbar ───────────────────────────────────────────────── */
.wpip-plat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wpip-plat-topbar {
    height: 64px; flex-shrink: 0;
    display: flex; align-items: center; gap: 16px;
    padding: 0 24px;
    background: #fff; border-bottom: 1px solid var(--plat-border);
    position: sticky; top: 0; z-index: 30;
}
.wpip-plat-mobile-btn { display: none; background: none; border: none; width: 30px; height: 30px; color: #374151; cursor: pointer; }
.wpip-plat-mobile-btn svg { width: 20px; height: 20px; }

.wpip-plat-search {
    display: flex; align-items: center; gap: 8px;
    background: #F3F4F8; border: 1px solid transparent; border-radius: 9px;
    padding: 8px 12px; width: 320px; max-width: 100%;
    color: #9CA3AF;
}
.wpip-plat-search:focus-within { border-color: var(--plat-primary); background: #fff; }
.wpip-plat-search input {
    border: none; background: none; outline: none; flex: 1;
    font-size: 13.5px; color: var(--plat-text);
}
.wpip-plat-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.wpip-plat-icon-btn {
    position: relative; width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #4B5563;
}
.wpip-plat-icon-btn:hover { background: #F3F4F8; }
.wpip-plat-badge {
    position: absolute; top: 3px; right: 3px;
    min-width: 16px; height: 16px; padding: 0 3px;
    background: #EF4444; color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.wpip-plat-user { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer; position: relative; margin-left: 4px; }
.wpip-plat-user:hover { background: #F3F4F8; }
.wpip-plat-user-avatar {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--plat-primary); color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.wpip-plat-user-name { font-size: 13.5px; font-weight: 600; color: var(--plat-text); }
.wpip-plat-user > svg { color: #9CA3AF; }
.wpip-plat-user-menu {
    position: absolute; top: 46px; right: 0; min-width: 180px;
    background: #fff; border: 1px solid var(--plat-border); border-radius: 10px;
    box-shadow: var(--plat-shadow); padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.wpip-plat-user.wpip-plat-user-open .wpip-plat-user-menu { display: flex; }
.wpip-plat-user-menu a { padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--plat-text); }
.wpip-plat-user-menu a:hover { background: var(--plat-bg); }

/* ── Content ─────────────────────────────────────────────────────── */
.wpip-plat-content { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* Fallback sizing for raw h1/h2/h3 in reused wp-admin templates
   (page-saas-settings.php, page-saas-plans.php, page-saas-module-detail.php,
   ...). Placed here, ahead of .wpip-plat-welcome h1 / .wpip-plat-panel-head h2
   below, on purpose: those two have the same specificity as these
   .wpip-plat-panel-body rules, so with equal specificity the LATER rule in
   the file wins — keeping this block first is what lets the more specific,
   already-correct dashboard styling keep overriding this generic fallback
   rather than the other way around. */
.wpip-plat-panel-body h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--plat-text, #111827); }
.wpip-plat-panel-body h2 { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--plat-text, #111827); }
.wpip-plat-panel-body h3 { font-size: 14px; font-weight: 700; margin: 22px 0 8px; color: var(--plat-text, #111827); }
.wpip-plat-panel-body p.description, .wpip-plat-panel-body .description {
    font-size: 12.5px; color: #6B7280; margin: 6px 0 0;
}
.wpip-plat-panel-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; background: #F3F4F6; padding: 1px 5px; border-radius: 4px;
}

.wpip-plat-impersonate-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
    border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 13.5px;
}
.wpip-plat-btn-ghost { background: #fff; border: 1px solid #FDE68A; color: #92400E; border-radius: 7px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }

.wpip-plat-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.wpip-plat-welcome h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.wpip-plat-welcome p { margin: 0; color: var(--plat-muted); font-size: 13.5px; }
.wpip-plat-daterange { background: #fff; border: 1px solid var(--plat-border); border-radius: 9px; padding: 8px 14px; font-size: 12.5px; color: #4B5563; font-weight: 500; }

/* KPI row */
.wpip-plat-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.wpip-plat-kpi-card { background: #fff; border: 1px solid var(--plat-border); border-radius: var(--plat-radius); padding: 18px; box-shadow: var(--plat-shadow); }
.wpip-plat-kpi-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.wpip-plat-kpi-icon svg { width: 19px; height: 19px; }
.wpip-plat-kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.wpip-plat-kpi-label { font-size: 12.5px; color: var(--plat-muted); margin: 2px 0 8px; }
.wpip-plat-kpi-delta { font-size: 12px; font-weight: 600; }
.wpip-plat-kpi-up   { color: #10B981; }
.wpip-plat-kpi-down { color: #EF4444; }
.wpip-plat-kpi-flat { color: var(--plat-muted); font-weight: 500; }

/* Panels */
.wpip-plat-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.wpip-plat-panel { background: #fff; border: 1px solid var(--plat-border); border-radius: var(--plat-radius); padding: 20px; box-shadow: var(--plat-shadow); }
.wpip-plat-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wpip-plat-panel-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.wpip-plat-panel-head a, .wpip-plat-pill-link { font-size: 12.5px; font-weight: 600; color: var(--plat-primary); cursor: pointer; }
.wpip-plat-pill { background: var(--plat-bg); border: 1px solid var(--plat-border); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: #4B5563; }

/* Tables */
.wpip-plat-table { font-size: 13px; }
.wpip-plat-table th { text-align: left; font-size: 11.5px; text-transform: none; color: var(--plat-muted); font-weight: 600; padding: 0 20px 10px; border-bottom: 1px solid var(--plat-border); }
.wpip-plat-table td { padding: 12px 20px; border-bottom: 1px solid #F1F2F7; vertical-align: middle; }
.wpip-plat-table tr:last-child td { border-bottom: none; }
.wpip-plat-cell-avatar { display: flex; align-items: center; gap: 10px; }
.wpip-plat-avatar { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wpip-plat-muted { color: var(--plat-muted); font-size: 11.5px; }
.wpip-plat-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.wpip-plat-status-good { background: #ECFDF5; color: #059669; }
.wpip-plat-status-warn { background: #FFFBEB; color: #B45309; }
.wpip-plat-status-bad  { background: #FEF2F2; color: #DC2626; }
.wpip-plat-status-neutral { background: #F1F5F9; color: #475569; }
.wpip-plat-icon-only { background: none; border: none; color: #9CA3AF; cursor: pointer; padding: 6px; border-radius: 7px; display: flex; }
.wpip-plat-icon-only:hover { background: var(--plat-bg); color: var(--plat-primary); }

/* System health */
.wpip-plat-health-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.wpip-plat-health-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.wpip-plat-health-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wpip-plat-health-good    { background: #10B981; }
.wpip-plat-health-bad     { background: #EF4444; }
.wpip-plat-health-unknown { background: #D1D5DB; }
.wpip-plat-health-label { flex: 1; color: var(--plat-text); font-weight: 500; }
.wpip-plat-health-detail { color: var(--plat-muted); font-size: 12px; }

.wpip-plat-storage { border-top: 1px solid var(--plat-border); padding-top: 14px; }
.wpip-plat-storage-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.wpip-plat-storage-bar { height: 7px; background: var(--plat-bg); border-radius: 20px; overflow: hidden; }
.wpip-plat-storage-bar div { height: 100%; background: linear-gradient(90deg, var(--plat-primary), #8B5CF6); border-radius: 20px; }
.wpip-plat-storage-sub { font-size: 11.5px; color: var(--plat-muted); margin-top: 6px; }

/* Quick actions */
.wpip-plat-quick-actions { display: flex; flex-direction: column; gap: 6px; }
.wpip-plat-qa {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 11px 12px; border-radius: 9px; font-size: 13px; font-weight: 500;
    color: var(--plat-text); border: 1px solid transparent;
}
.wpip-plat-qa:hover { background: var(--plat-bg); }
.wpip-plat-qa svg { color: var(--plat-muted); flex-shrink: 0; }

.wpip-plat-footer { text-align: center; color: var(--plat-muted); font-size: 12px; padding: 20px 0 6px; }

/* ── Compatibility layer for reused wp-admin templates ──────────────
   The SaaS/core admin templates loaded into tab panels below rely on a
   few WP-core admin classes (.wp-list-table, .button, form field chrome)
   that only exist in wp-admin's own bundled CSS — never loaded on the
   frontend. Rather than pull in all of wp-admin's stylesheet (risking
   collisions with the rest of the site), these are the specific pieces
   recreated here, scoped to this shell only. .wpip-card/.wpip-badge/
   .wpip-page-header/.button-primary are already covered by admin.css and
   wpip-ui.css (both enqueued alongside this file). */
.wpip-plat-panel-body { padding: 20px; }
.wpip-plat-panel-body .wpip-page-header { margin-bottom: 18px; }

.wpip-plat-panel-body table.wp-list-table,
.wpip-plat-panel-body table.widefat {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid var(--plat-border, #E7E9F2); border-radius: 10px; overflow: hidden;
    font-size: 13px;
}
.wpip-plat-panel-body table.wp-list-table th,
.wpip-plat-panel-body table.widefat th {
    text-align: left; padding: 10px 14px; font-weight: 600; font-size: 12px;
    color: #6B7280; background: #F9FAFC; border-bottom: 1px solid var(--plat-border, #E7E9F2);
}
.wpip-plat-panel-body table.wp-list-table td,
.wpip-plat-panel-body table.widefat td {
    padding: 10px 14px; border-bottom: 1px solid #F1F2F7; vertical-align: middle;
}
.wpip-plat-panel-body table.striped tbody tr:nth-child(odd) { background: #FAFBFD; }
.wpip-plat-panel-body table.wp-list-table tr:last-child td { border-bottom: none; }

.wpip-plat-panel-body .button {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 7px 14px; border-radius: 8px; border: 1px solid #D1D5DB;
    background: #fff; color: #374151; font-size: 13px; font-weight: 600;
    text-decoration: none; line-height: 1.4;
}
.wpip-plat-panel-body .button:hover { background: #F9FAFC; }
.wpip-plat-panel-body .button-primary { border-color: var(--plat-primary); }
.wpip-plat-panel-body .button-link-delete { border: none; background: none; color: #DC2626; padding: 4px 8px; }

.wpip-plat-panel-body input[type="text"], .wpip-plat-panel-body input[type="email"],
.wpip-plat-panel-body input[type="password"], .wpip-plat-panel-body input[type="number"],
.wpip-plat-panel-body input[type="search"], .wpip-plat-panel-body input[type="url"],
.wpip-plat-panel-body select, .wpip-plat-panel-body textarea {
    padding: 7px 10px; border: 1px solid #D1D5DB; border-radius: 7px;
    font-size: 13px; color: var(--plat-text, #111827); font-family: inherit;
    background: #fff;
}
.wpip-plat-panel-body input:focus, .wpip-plat-panel-body select:focus, .wpip-plat-panel-body textarea:focus {
    outline: none; border-color: var(--plat-primary); box-shadow: 0 0 0 3px rgba(91,95,240,.12);
}
.wpip-plat-panel-body label { font-size: 13px; font-weight: 500; }

.wpip-plat-panel-body .wpip-notice, .wpip-plat-panel-body .wpip-notice-v2 {
    padding: 12px 16px; border-radius: 9px; border: 1px solid; font-size: 13px; margin-bottom: 16px;
}
.wpip-plat-panel-body .wpip-notice-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.wpip-plat-panel-body .wpip-notice-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.wpip-plat-panel-body .wpip-notice-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* table.form-table (page-saas-settings.php's gateway forms, page-warehouses.php's
   modal) — wp-admin's two-column label/field settings table layout. */
.wpip-plat-panel-body table.form-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.wpip-plat-panel-body table.form-table th {
    text-align: left; font-weight: 600; font-size: 13px; width: 220px;
    padding: 14px 12px 14px 0; vertical-align: top; color: var(--plat-text, #111827);
}
.wpip-plat-panel-body table.form-table td { padding: 10px 0; vertical-align: top; }

/* ── Tab content panel + skeleton loader (mirrors the tenant dashboard's
   pattern, same visual language, different key names/scoping) ────────── */
.wpip-plat-panel-shell { min-height: 300px; }
.wpip-plat-skel-wrap { padding: 4px 0; }
.wpip-plat-skel { background: linear-gradient(90deg,#EEF0F5 25%,#F6F7FA 37%,#EEF0F5 63%); background-size: 400% 100%; animation: wpipPlatShimmer 1.4s ease infinite; border-radius: 7px; }
@keyframes wpipPlatShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.wpip-plat-skel-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.wpip-plat-skel-card { background: #fff; border: 1px solid var(--plat-border,#E7E9F2); border-radius: 14px; padding: 16px; }
.wpip-plat-skel-icon { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 12px; }
.wpip-plat-skel-h { height: 22px; width: 60%; margin-bottom: 8px; }
.wpip-plat-skel-m { height: 12px; width: 40%; }
.wpip-plat-skel-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #F1F2F7; }
.wpip-plat-skel-row .wpip-plat-skel { height: 14px; }

.wpip-plat-wrap [data-tab] { cursor: pointer; }
.wpip-plat-icon-btn[data-tab] { cursor: pointer; }
.wpip-plat-nav-item:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 1100px) {
    .wpip-plat-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .wpip-plat-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
    .wpip-plat-search { display: none; }
}
@media (max-width: 768px) {
    .wpip-plat-mobile-btn { display: flex; align-items: center; justify-content: center; }
    .wpip-plat-sidebar {
        position: fixed; left: -100%; top: 0; height: 100vh; width: 260px !important;
        transition: left .22s ease; z-index: 9999; box-shadow: none;
    }
    .wpip-plat-sidebar.wpip-plat-mobile-open { left: 0; box-shadow: 4px 0 40px rgba(0,0,0,.35); }
    .wpip-plat-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9998; }
    .wpip-plat-wrap.wpip-plat-mobile-nav-open .wpip-plat-overlay { display: block; }
    #wpip-plat-toggle { display: none; }
    .wpip-plat-kpi-row { grid-template-columns: 1fr 1fr; }
    .wpip-plat-content { padding: 16px; }
    .wpip-plat-welcome h1 { font-size: 19px; }
}
@media (max-width: 480px) {
    .wpip-plat-kpi-row { grid-template-columns: 1fr; }
    .wpip-plat-user-name { display: none; }
}
