/*
Theme Name: Midstate Secure Console
Theme URI: https://midstate.live
Description: Bespoke secure-portal theme for Midstate Machine / Precision Holdings. Replaces Astra. Slate/indigo design system, bento grid, glassmorphism. Keeps Ultimate Member auth + embedded ops apps.
Author: Midstate Ops / Hermes
Version: 0.1.0 (staging scaffold)
License: Proprietary
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* 8px spacing scale */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 40px; --sp-6: 48px; --sp-8: 64px; --sp-10: 80px;

  /* Color system */
  --bg-900: #0F172A;   /* deep charcoal/slate primary */
  --bg-800: #131C31;
  --bg-700: #1E293B;
  --bg-600: #334155;
  --line:   #1E2A44;   /* subtle card border (slate-800-ish) */
  --line-2: #2B3A5C;

  --txt-100: #F8FAFC;  /* high-contrast text */
  --txt-300: #CBD5E1;
  --txt-500: #94A3B8;

  --accent:   #2563eb; /* electric indigo */
  --accent-2: #60a5fa;
  --accent-glow: rgba(37,99,235,.45);
  --emerald:  #10B981;
  --amber:    #F59E0B;
  --rose:     #F43F5E;

  /* Type */
  --font: "Inter", "Plus Jakarta Sans", "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-hero:  clamp(2.4rem, 1.6rem + 3.2vw, 4rem);
  --fs-h1:    clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --fs-h2:    clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  --fs-h3:    clamp(1.05rem, .95rem + .4vw, 1.2rem);
  --fs-body:  clamp(.95rem, .9rem + .2vw, 1.02rem);
  --fs-sm:    .82rem;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -18px rgba(2,6,23,.75);
  --ease: cubic-bezier(.22,.61,.36,1);
  --portal-bg: url('https://midstate.live/wp-content/themes/midstate-console/assets/background.jpg');

  /* --- AA-COMPLIANT COMPONENT TOKENS (frontend standard; WCAG AA) --- */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --border-color: #e2e8f0;
}
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --border-color: #334155;
}


/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--txt-300);
  /* Dark, near-solid base. A portal background image (if supplied) layers
     on top via --portal-bg with a dark overlay in .ms-portal-bg below. */
  background-color: var(--bg-900);
  background-image:
    linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.98));
  min-height: 100vh;
  padding-top: 64px; /* clearance for sticky bar */
}

/* Optional portal backdrop image — set --portal-bg to a URL to enable.
   Kept transparent-dark so white text stays readable over any photo. */
.ms-portal-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--portal-bg, none);
  background-size: cover; background-position: center;
  opacity: .6;
}
/* ============================================================
   SECURE PORTAL - STANDARD DATA-SCREEN SCAFFOLD (v1)
   Reusable starting point for EVERY data screen (Paid Time, Shop Load,
   Daily Productivity, and all future screens). Modeled on the public
   site: white surfaces, indigo accent, dark table headers, consistent
   header (title left / Back-to-Portal right). Future screens should use
   these classes so we stop re-diverging. JS hooks (IDs) are untouched.
   ============================================================ */
.ms-view { max-width: 1280px; margin: 0 auto; padding: 18px 22px 60px; }
.ms-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.ms-view-head .mh-title { display: flex; align-items: center; gap: 14px; }
.ms-view-head h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.15; }
.ms-view-sub { font-size: 13px; margin: 4px 0 0; }
.ms-view-meta { font-size: 12px; margin: 2px 0 0; }
/* Back-to-Portal: top-right chip (public-site convention) */
.ms-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px; border: 1px solid rgba(148,163,184,.35); background: rgba(148,163,184,.10); color: #e2e8f0; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.ms-back:hover { background: rgba(148,163,184,.18); color: #fff; }
/* white card surface for filter bars + tables (consistency across screens) */
.ms-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ms-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.ms-card-hint { font-size: 12px; color: var(--text-secondary); margin: 0 0 10px; }
/* filter toolbar */
.ms-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ms-filter .f { display: flex; flex-direction: column; gap: 4px; }
.ms-filter label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.ms-filter select, .ms-filter input { font: inherit; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.ms-filter .ms-count { margin-left: auto; align-self: center; font-size: 12px; color: #fff; }
/* buttons */
.ms-btn { font: inherit; font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; background: var(--accent-primary); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.ms-btn.gray { background: var(--bg-secondary); color: var(--text-secondary); }
.ms-btn:hover { filter: brightness(1.05); }

/* WHITE TEXT ON PORTAL BACKGROUND IMAGE (background.jpg)
   Every secure-console module page renders its title / subtitle / last-update /
   filter labels directly on the photo. Force them white + shadow for legibility.
   The class names below are used ONLY in the page heading/toolbar region;
   white cards, tables and modals use .pm-card / .pm-table / .pm-modal and are
   intentionally untouched. For any NEW screen built on this background, add
   class="on-bg" to the wrapper (see the .on-bg helper further down). */
.dp-h1, .dp-sub, .dp-update, .dp-update b, .dp-tool label, .dp-back,
.ps-h1, .ps-sub, .ps-update, .ps-update b, .ps-tool label, .ps-back,
.mh-sub, .mh-update, .mh-update b, .pm-filter label,
  .ms-view-sub, .ms-view-meta, .ms-filter label, .ms-back {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(15,23,42,.85);
}

/* FUTURE-PROOF: any text placed directly on the portal background image
   (background.jpg) must be WHITE for legibility. Apply .on-bg to wrappers that
   sit on the photo (hero/cover/title screens). Headings already inherit white
   via the rule above; this class covers body/sub text on future screens. */
.on-bg, .on-bg h1, .on-bg h2, .on-bg h3, .on-bg p, .on-bg .mh-sub { color: #ffffff !important; text-shadow: 0 1px 3px rgba(15,23,42,.85); }
.on-bg a { color: #c7d2fe; }

.ms-portal-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.78));
}
h1,h2,h3 { color: var(--txt-100); line-height: 1.15; margin: 0 0 var(--sp-1); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
a { color: var(--accent-2); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   STICKY SECURE BAR
   ============================================================ */
.ms-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 9999; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-3);
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.8);
}
.ms-bar .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--txt-100); letter-spacing: .3px; }
.ms-bar .lock {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #06283b;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 16px -6px var(--accent-glow);
}
.ms-bar .lock svg { width: 15px; height: 15px; fill: #06283b; }
.ms-bar .brand .sub { color: var(--accent-2); font-weight: 600; }
.ms-bar nav { display: flex; align-items: center; gap: var(--sp-1); }
.ms-bar nav a { color: var(--txt-300); font-size: var(--fs-sm); font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: color .2s var(--ease), background .2s var(--ease); }
.ms-bar nav a:hover { color: var(--txt-100); background: rgba(148,163,184,.10); }
.ms-bar .ms-user {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--txt-100); font-weight: 600; font-size: var(--fs-sm);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.32);
}
.ms-bar .ms-user::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block; flex: none;
}
.ms-bar .env {
  font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt-500); border-left: 1px solid var(--line-2);
  padding-left: 14px; margin-left: 4px;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.ms-wrap { max-width: 1320px; margin: 0 auto; padding: var(--sp-4) var(--sp-3) var(--sp-8); }
.ms-hero { margin-bottom: var(--sp-4); }
.ms-hero .eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .72rem; }
.ms-hero h1 { font-size: var(--fs-hero); margin: var(--sp-1) 0; color: var(--txt-100); }
.ms-hero p { color: var(--txt-100); max-width: 60ch; opacity: .9; }

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(12, 1fr);
}
/* asymmetric placement on desktop */
.bento > .card { grid-column: span 4; }
.bento > .card.wide { grid-column: span 8; }
.bento > .card.tall { grid-row: span 2; }
.bento > .card.lead { grid-column: span 12; }

/* ============================================================
   CARDS (glass)
   ============================================================ */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(30,41,59,.72), rgba(15,23,42,.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card::before { /* subtle gradient overlay */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 85% -20%, rgba(37,99,235,.18), transparent 60%);
  opacity: .7; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #06283b; margin-bottom: var(--sp-2);
}
.card h3 { position: relative; }
.card p { color: var(--txt-500); font-size: var(--fs-sm); position: relative; margin: 6px 0 var(--sp-2); }
.card .access {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-2); font-weight: 700; font-size: var(--fs-sm);
  transition: gap .2s var(--ease);
}
.card:hover .access { gap: 12px; }

/* accent tints per module */
.t-indigo  { background: linear-gradient(135deg,#2563eb,#60a5fa); }
.t-emerald { background: linear-gradient(135deg,#10B981,#34D399); }
.t-amber   { background: linear-gradient(135deg,#F59E0B,#FBBF24); }
.t-rose    { background: linear-gradient(135deg,#F43F5E,#FB7185); }
.t-sky     { background: linear-gradient(135deg,#0EA5E9,#38BDF8); }
.t-violet  { background: linear-gradient(135deg,#8B5CF6,#A78BFA); }
.t-teal    { background: linear-gradient(135deg,#14B8A6,#2DD4BF); }
.t-pink    { background: linear-gradient(135deg,#EC4899,#F472B6); }
.t-slate   { background: linear-gradient(135deg,#64748B,#94A3B8); }

.badge {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 999px;
}
.badge.coming { color: #1e40af; background: rgba(37,99,235,.14); border: 1px solid rgba(37,99,235,.35); }
.badge.admin  { color: #06283b; background: var(--accent-2); }

/* ============================================================
   BUTTONS / CTA
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  padding: 12px 20px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--accent-glow); }
.btn-ghost { color: var(--txt-100); background: rgba(148,163,184,.08); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(148,163,184,.16); }

/* ============================================================
   UM / form polish (login, register)
   ============================================================ */
.ms-auth { max-width: 460px; margin: var(--sp-8) auto; }
.ms-auth .card { padding: var(--sp-4); }
.ms-auth label { display: block; color: var(--txt-300); font-size: var(--fs-sm); margin: 12px 0 6px; font-weight: 600; }
.ms-auth input[type=text], .ms-auth input[type=email], .ms-auth input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-800); border: 1px solid var(--line-2); color: var(--txt-100);
  font-family: var(--font); font-size: var(--fs-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ms-auth input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.18); outline: none; }
.um-field, .um-form { color: var(--txt-300); }

/* ============================================================
   RESPONSIVE — mobile first collapse
   ============================================================ */
@media (max-width: 1024px) {
  .bento > .card, .bento > .card.wide, .bento > .card.lead { grid-column: span 6; }
}
@media (max-width: 640px) {
  body { padding-top: 58px; }
  .ms-bar { height: 58px; padding: 0 var(--sp-2); }
  .ms-bar .env { display: none; }
  .ms-bar nav a { padding: 7px 9px; }
  .ms-wrap { padding: var(--sp-3) var(--sp-2) var(--sp-6); }
  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento > .card.wide, .bento > .card.tall, .bento > .card.lead { grid-column: 1 / -1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   SPLIT AUTH LAYOUT (login / register)
   ============================================================ */
.ms-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 64px); }
.ms-panel-brand {
  position: relative; overflow: hidden; padding: var(--sp-8) var(--sp-6);
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3);
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(99,102,241,.28), transparent 60%),
    linear-gradient(160deg, #131C31, #0B1220);
  border-right: 1px solid var(--line);
}
.ms-panel-brand .pb-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--txt-100); font-size: 1.1rem; }
.ms-panel-brand .pb-brand .lock { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #06283b; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.ms-panel-brand .pb-brand .lock svg { width: 17px; height: 17px; fill: #06283b; }
.ms-panel-brand h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); max-width: 16ch; }
.ms-panel-brand p { color: var(--txt-500); max-width: 42ch; }
.ms-panel-brand ul { list-style: none; padding: 0; margin: var(--sp-2) 0 0; display: grid; gap: 12px; }
.ms-panel-brand li { display: flex; align-items: center; gap: 10px; color: var(--txt-300); font-size: var(--fs-sm); }
.ms-panel-brand li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.18); flex: none; }
.ms-split-form { display: flex; align-items: center; justify-content: center; padding: var(--sp-5) var(--sp-3); }
.ms-split-form .ms-auth { margin: 0; width: 100%; max-width: 420px; }
.ms-split-form .ms-auth .card { padding: var(--sp-4); }
.ms-split-form label { display: block; color: var(--txt-300); font-size: var(--fs-sm); margin: 14px 0 6px; font-weight: 600; }
.ms-split-form input, .ms-split-form select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-800); border: 1px solid var(--line-2); color: var(--txt-100);
  font-family: var(--font); font-size: var(--fs-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ms-split-form input:focus, .ms-split-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.18); outline: none; }
.ms-row { display: flex; gap: 12px; }
.ms-row > * { flex: 1; }
.ms-foot { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--txt-500); }
.ms-foot a { color: var(--accent-2); font-weight: 600; }
.ms-divider { display: flex; align-items: center; gap: 12px; color: var(--txt-500); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; margin: var(--sp-3) 0; }
.ms-divider::before, .ms-divider::after { content: ""; height: 1px; background: var(--line-2); flex: 1; }

/* ============================================================
   MODULE / APP SHELL
   ============================================================ */
.ms-module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.ms-module-head .mh-title { display: flex; align-items: center; gap: 14px; }
.ms-module-head .mh-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #06283b; }
.ms-module-head h1 { margin: 0; font-size: var(--fs-h1); }
.ms-module-head .mh-sub { color: var(--txt-500); font-size: var(--fs-sm); }
.ms-back { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-300); font-weight: 600; font-size: var(--fs-sm); padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(148,163,184,.06); transition: background .2s var(--ease), color .2s var(--ease); }
.ms-back:hover { background: rgba(148,163,184,.14); color: var(--txt-100); }
.ms-embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-800); box-shadow: var(--shadow); min-height: 76vh;
  display: flex; flex-direction: column;
}
.ms-embed .em-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(15,23,42,.6); }
.ms-embed .em-bar .em-dot { width: 10px; height: 10px; border-radius: 50%; }
.ms-embed .em-bar .em-url { color: var(--txt-500); font-size: .76rem; font-family: ui-monospace, monospace; }
.ms-embed iframe { width: 100%; flex: 1; border: 0; background: #fff; min-height: 74vh; }
.ms-embed .em-placeholder { flex: 1; display: grid; place-items: center; color: var(--txt-500); text-align: center; padding: var(--sp-6); }
.ms-embed .em-placeholder .em-glyph { font-size: 2.4rem; margin-bottom: 10px; opacity: .5; }

.ms-embed .em-directory { flex: 1; overflow: auto; padding: var(--sp-2); background: var(--bg-800); }

/* User Management page — compact chrome so Pending Approvals sits above the fold */
.page-user-management .ms-module-head { margin-bottom: var(--sp-1); }
.page-user-management .ms-module-head h1 { font-size: 1.5rem; }
.page-user-management .ms-module-head .mh-ico { width: 38px; height: 38px; }
.page-user-management .ms-embed { min-height: 0; }
.page-user-management .ms-embed .em-bar { padding: 6px 14px; }
.page-user-management .ms-approval { padding: 14px 24px; }

/* ===============================================================
   DATA PAGES (Option 1) — light content canvas so the live ERP
   tables injected by portal-* mu-plugins stay readable. Chrome
   (bar/footer) stays dark; only the page body is light.
   =============================================================== */
.ms-page { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.ms-page .ms-back { display: inline-block; margin-bottom: var(--sp-4);
  color: #475569; font-weight: 600; text-decoration: none; font-size: .9rem; }
.ms-page .ms-back:hover { color: #1e293b; }
.ms-page .entry-content, .ms-page .ms-page-body { color: #1f2937; }
.ms-page h1, .ms-page h2 { color: #0f172a; }
.ms-page p { color: #475569; }
.ms-page a { color: #1d4ed8; }
.ms-page table { color: #1f2937; }
body.page { background: #F1F5F9; }
/* Bar stays position:fixed globally (set above). On light data pages,
   give the bar a solid dark tint so it reads against the light content
   and stays pinned while the page scrolls. Do NOT switch to sticky —
   sticky inside <body> scrolls away. */
body.page .ms-bar { background: #0F172A; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 860px) {
  .ms-split { grid-template-columns: 1fr; }
  .ms-panel-brand { display: none; }
  .ms-page { padding: var(--sp-5) var(--sp-4) var(--sp-7); }
}

/* Member approval panel (User Management) */
.ms-approval{padding:20px 24px;border-bottom:1px solid rgba(148,163,184,.15)}
.ms-approval-title{font-size:1.15rem;font-weight:700;color:#e2e8f0;margin:0 0 12px}
.ms-count{display:inline-block;background:#2563eb;color:#fff;border-radius:999px;font-size:.75rem;padding:2px 9px;vertical-align:middle;margin-left:6px}
.ms-flash{background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.4);color:#6ee7b7;padding:8px 14px;border-radius:8px;margin-bottom:12px;font-size:.9rem}
.ms-none{color:#94a3b8;font-size:.95rem}
.ms-approval-table{width:100%;border-collapse:collapse;font-size:.92rem}
.ms-approval-table th{text-align:left;color:#94a3b8;font-weight:600;text-transform:uppercase;font-size:.72rem;letter-spacing:.06em;padding:8px 10px;border-bottom:1px solid rgba(148,163,184,.2)}
.ms-approval-table td{padding:10px;color:#e2e8f0;border-bottom:1px solid rgba(148,163,184,.1)}
.ms-muted{color:#94a3b8;font-size:.82rem}
.ms-btn{display:inline-block;padding:6px 14px;border-radius:7px;font-weight:600;font-size:.85rem;text-decoration:none;margin-right:6px}
.ms-btn-approve{background:#10b981;color:#052e1f}
.ms-btn-approve:hover{background:#34d399}
.ms-btn-reject{background:transparent;border:1px solid #f87171;color:#f87171}
.ms-btn-reject:hover{background:rgba(248,113,113,.12)}
