/* ============================================================================
   THEO PROPERTIES — RC1.0.15.129
   ADMINISTRATOR / SUPER ADMIN UNIFIED PREMIUM SAAS CONTROL CENTRE LOCK
   Presentation-only. Scoped to body.theo-admin. No runtime/business logic.
   Breakpoints: mobile <=700 | tablet 701-1180 | desktop >=1181
   ============================================================================ */

body.theo-admin{
  --a-navy:#123148;
  --a-navy-deep:#0b2233;
  --a-ink:#17354a;
  --a-muted:#728793;
  --a-line:#dbe6ea;
  --a-line-soft:#e9eff2;
  --a-surface:#f5f8f9;
  --a-blue:#4f86c6;
  --a-teal:#3d9784;
  --a-gold:#c48a34;
  --a-violet:#7468b5;
  --a-green:#4c9871;
  --a-amber:#b8712d;
  --a-danger:#b65a4b;
  --a-shadow:0 14px 34px rgba(18,49,72,.055);
  --a-shadow-soft:0 7px 22px rgba(18,49,72,.038);
  background:
    radial-gradient(circle at 88% 4%,rgba(79,134,198,.045),transparent 25%),
    linear-gradient(180deg,#f8fafb 0,#f5f8f9 100%)!important;
}

/* --- Authenticated shell / navigation ------------------------------------ */
body.theo-admin .admin-shell{background:transparent!important}
body.theo-admin .sidebar{
  background:linear-gradient(180deg,#102e43 0%,#0a2132 55%,#071b29 100%)!important;
  border-right:1px solid rgba(255,255,255,.055)!important;
  box-shadow:10px 0 34px rgba(7,27,41,.08)!important;
}
body.theo-admin .admin-context-label{
  margin:0 6px 16px!important;
  padding:11px 12px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.035)!important;
}
body.theo-admin .admin-context-label span{color:#7fa0b1!important;font-size:8px!important;letter-spacing:.14em!important;font-weight:850!important}
body.theo-admin .admin-context-label strong{color:#f4f8fa!important;font-size:12px!important;margin-top:3px!important;display:block!important}
body.theo-admin .nav-section,
body.theo-admin .nav-label{color:#6f8c9d!important;font-size:8px!important;letter-spacing:.15em!important;font-weight:850!important}
body.theo-admin .nav-item{
  min-height:48px!important;
  padding:8px 9px!important;
  border-radius:12px!important;
  border:1px solid transparent!important;
}
body.theo-admin .nav-item:hover{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.045)!important}
body.theo-admin .nav-item.active{
  background:linear-gradient(135deg,rgba(61,151,132,.22),rgba(79,134,198,.10))!important;
  border-color:rgba(120,199,184,.18)!important;
  box-shadow:inset 3px 0 0 #55b39f,0 6px 18px rgba(0,0,0,.05)!important;
}
body.theo-admin .nav-icon{width:31px!important;height:31px!important;border-radius:9px!important}
body.theo-admin .nav-item.active .nav-icon{background:#2f826f!important;border-color:#4da18e!important}
body.theo-admin .nav-item strong{font-size:11px!important;line-height:1.2!important}
body.theo-admin .nav-item small{font-size:8.5px!important;line-height:1.25!important;margin-top:2px!important}
body.theo-admin .nav-arrow{opacity:.55!important}

body.theo-admin .topbar{
  min-height:84px!important;
  height:84px!important;
  padding:0 32px!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  border-bottom:1px solid #dfe8ec!important;
  box-shadow:0 8px 26px rgba(18,49,72,.035)!important;
}
body.theo-admin .top-logo{width:184px!important;height:auto!important;object-fit:contain!important}
body.theo-admin .top-context span{font-size:8px!important;letter-spacing:.14em!important;color:#8295a0!important;font-weight:850!important}
body.theo-admin .top-context strong{font-size:12px!important;color:#17354a!important;font-weight:850!important}
body.theo-admin .marketplace-link,
body.theo-admin .live-platform,
body.theo-admin .admin-search,
body.theo-admin .top-icon-btn,
body.theo-admin .top-user{
  border:1px solid #d9e4e8!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(18,49,72,.02)!important;
}
body.theo-admin .live-platform{background:linear-gradient(180deg,#f7fcfa,#f1f8f5)!important;color:#3c665b!important}
body.theo-admin .top-user{background:linear-gradient(145deg,#f5f8f9,#e8f0f3)!important;color:#17354a!important}

/* --- Page authority / vertical rhythm ------------------------------------ */
body.theo-admin .content{
  width:100%!important;
  max-width:1720px!important;
  margin:0 auto!important;
  padding:32px 34px 68px!important;
}
body.theo-admin .content>.section-head{
  position:relative!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 20px!important;
  padding:0 0 2px!important;
}
body.theo-admin .content>.section-head::before{
  content:"ADMINISTRATION";
  position:absolute;
  left:0;top:-16px;
  color:#a26c27;
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body.theo-admin .section-head h1{
  margin:0!important;
  color:var(--a-navy)!important;
  font-family:"Inter Tight",Inter,sans-serif!important;
  font-size:clamp(30px,2.5vw,42px)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
  font-weight:800!important;
}
body.theo-admin .section-head p{
  margin:7px 0 0!important;
  max-width:900px!important;
  color:#718692!important;
  font-size:12px!important;
  line-height:1.55!important;
}

/* --- Executive KPI cards ------------------------------------------------- */
body.theo-admin .kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0 0 18px!important;
}
body.theo-admin .kpi{
  --tone:var(--a-blue);
  --tone-soft:rgba(79,134,198,.075);
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:130px!important;
  padding:20px 20px 18px!important;
  border:1px solid #dce6ea!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdfe 68%,var(--tone-soft) 100%)!important;
  box-shadow:var(--a-shadow-soft)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.theo-admin .kpi:nth-child(2){--tone:var(--a-teal);--tone-soft:rgba(61,151,132,.075)}
body.theo-admin .kpi:nth-child(3){--tone:var(--a-gold);--tone-soft:rgba(196,138,52,.075)}
body.theo-admin .kpi:nth-child(4){--tone:var(--a-violet);--tone-soft:rgba(116,104,181,.075)}
body.theo-admin .kpi:nth-child(5){--tone:var(--a-amber);--tone-soft:rgba(184,113,45,.075)}
body.theo-admin .kpi::before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;background:var(--tone)!important}
body.theo-admin .kpi::after{content:""!important;position:absolute!important;z-index:-1!important;width:118px!important;height:118px!important;right:-38px!important;bottom:-52px!important;border-radius:50%!important;background:var(--tone-soft)!important}
body.theo-admin .kpi:hover{transform:translateY(-2px)!important;border-color:#c9d9df!important;box-shadow:0 16px 34px rgba(18,49,72,.075)!important}
body.theo-admin .kpi .label{font-size:9px!important;font-weight:900!important;letter-spacing:.075em!important;color:#738895!important}
body.theo-admin .kpi strong{display:block!important;margin:8px 0 5px!important;color:#17364b!important;font-family:"Inter Tight",Inter,sans-serif!important;font-size:31px!important;line-height:1!important;letter-spacing:-.045em!important;font-weight:800!important}
body.theo-admin .kpi small{font-size:9.5px!important;line-height:1.35!important;color:#83949e!important}

/* --- Dashboard composition ---------------------------------------------- */
body.theo-admin .executive-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.82fr) minmax(0,.83fr)!important;
  align-items:start!important;
  gap:16px!important;
  margin-bottom:16px!important;
}
body.theo-admin .lower-dashboard{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)!important;
  align-items:start!important;
  gap:16px!important;
  margin-bottom:18px!important;
}
body.theo-admin .executive-grid>.panel,
body.theo-admin .lower-dashboard>.panel{
  position:relative!important;
  min-height:0!important;
  height:auto!important;
}
body.theo-admin .executive-grid>.panel::before,
body.theo-admin .lower-dashboard>.panel::before{
  content:"";
  position:absolute;
  left:22px;top:0;
  width:42px;height:3px;
  border-radius:0 0 8px 8px;
  background:var(--a-blue);
  z-index:3;
}
body.theo-admin .executive-grid>.panel:nth-child(2)::before{background:var(--a-gold)}
body.theo-admin .executive-grid>.panel:nth-child(3)::before{background:var(--a-teal)}
body.theo-admin .lower-dashboard>.panel:nth-child(2)::before{background:var(--a-green)}

/* --- Premium panels ------------------------------------------------------ */
body.theo-admin .panel,
body.theo-admin .admin-ops-panel,
body.theo-admin .admin-config-card,
body.theo-admin .section,
body.theo-admin .acq-panel,
body.theo-admin .case-section{
  border:1px solid #dce6ea!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#fff,#fcfdfd)!important;
  box-shadow:var(--a-shadow)!important;
  overflow:hidden!important;
}
body.theo-admin .panel-head,
body.theo-admin .admin-panel-head,
body.theo-admin .acq-panel-head{
  min-height:64px!important;
  padding:18px 20px!important;
  border-bottom:1px solid #e8eef1!important;
  background:linear-gradient(180deg,#fff,#fdfefe)!important;
}
body.theo-admin .panel-head h3,
body.theo-admin .admin-panel-head h3,
body.theo-admin .acq-panel-head h3{
  color:#16354a!important;
  font-size:14px!important;
  line-height:1.25!important;
  letter-spacing:-.02em!important;
  font-weight:850!important;
}
body.theo-admin .panel-context{font-size:8.5px!important;color:#84959f!important;letter-spacing:.01em!important}
body.theo-admin .panel-body{padding:19px 20px!important}

/* Operational Activity */
body.theo-admin .snapshot-chart{display:grid!important;gap:11px!important}
body.theo-admin .snapshot-row{
  display:grid!important;
  grid-template-columns:minmax(100px,150px) minmax(120px,1fr) 36px!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:46px!important;
  padding:9px 10px!important;
  border:1px solid #e4ecef!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#29495d!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.theo-admin .snapshot-row:hover{border-color:#c8d9e0!important;background:#fbfdfe!important}
body.theo-admin .snapshot-label{font-size:10px!important;font-weight:800!important;color:#425d6d!important}
body.theo-admin .snapshot-track{height:7px!important;border-radius:999px!important;background:#eaf0f2!important;overflow:hidden!important}
body.theo-admin .snapshot-fill{display:block!important;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#4f86c6,#7faad8)!important}
body.theo-admin .snapshot-row:nth-child(2) .snapshot-fill{background:linear-gradient(90deg,#3d9784,#75b8a9)!important}
body.theo-admin .snapshot-row:nth-child(3) .snapshot-fill{background:linear-gradient(90deg,#c48a34,#dfb266)!important}
body.theo-admin .snapshot-row:nth-child(4) .snapshot-fill{background:linear-gradient(90deg,#7468b5,#9d94cf)!important}
body.theo-admin .snapshot-row:nth-child(5) .snapshot-fill{background:linear-gradient(90deg,#b65a4b,#d58a7e)!important}
body.theo-admin .snapshot-row>strong{font-size:11px!important;color:#17364b!important;text-align:right!important}
body.theo-admin .snapshot-note{margin-top:12px!important;padding:9px 11px!important;border-radius:10px!important;background:#f7fafb!important;color:#83939c!important;font-size:8.5px!important}

/* Conversion Funnel */
body.theo-admin .conversion-list{display:grid!important;gap:9px!important}
body.theo-admin .conversion-step{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:52px!important;
  padding:11px 12px!important;
  border:1px solid #e4ecef!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#fff,#fbfcfd)!important;
}
body.theo-admin .conversion-step>div>strong{font-size:10px!important;color:#425d6d!important}
body.theo-admin .conversion-number{display:grid!important;justify-items:end!important;gap:2px!important}
body.theo-admin .conversion-number strong{font-size:14px!important;color:#17364b!important}
body.theo-admin .conversion-number small{font-size:8px!important;color:#8a99a2!important}

/* Priority Actions */
body.theo-admin .priority-list{display:grid!important;gap:9px!important}
body.theo-admin .priority{
  display:grid!important;
  grid-template-columns:8px 1fr!important;
  align-items:start!important;
  gap:10px!important;
  min-height:54px!important;
  padding:11px 12px!important;
  border:1px solid #e4ecef!important;
  border-radius:11px!important;
  background:#fff!important;
}
body.theo-admin .priority.clickable:hover{border-color:#c9d9df!important;background:#fbfdfe!important;transform:none!important}
body.theo-admin .priority .dot{width:7px!important;height:7px!important;margin-top:5px!important;border-radius:50%!important;background:var(--a-gold)!important;box-shadow:0 0 0 4px rgba(196,138,52,.09)!important}
body.theo-admin .priority strong{display:block!important;color:#29495d!important;font-size:10px!important;line-height:1.3!important}
body.theo-admin .priority span{display:block!important;margin-top:2px!important;color:#84949e!important;font-size:8.5px!important;line-height:1.35!important}
body.theo-admin .priority-count{display:inline-grid!important;place-items:center!important;min-width:30px!important;height:30px!important;padding:0 8px!important;border:1px solid #dce6ea!important;border-radius:9px!important;background:#f7fafb!important;color:#29495d!important;font-size:10px!important;font-weight:850!important}
body.theo-admin .priority-clear{padding:18px!important;border:1px dashed #cddde3!important;border-radius:12px!important;background:#f9fbfc!important;color:#6f8491!important;font-size:10px!important;text-align:center!important}

/* Lower dashboard */
body.theo-admin .recent-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important}
body.theo-admin .recent-table thead th{background:#f7fafb!important;color:#738895!important}
body.theo-admin .health-list{display:grid!important;gap:8px!important}
body.theo-admin .health-row{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:12px!important;
  align-items:center!important;
  min-height:46px!important;
  padding:10px 12px!important;
  border:1px solid #e4ecef!important;
  border-radius:11px!important;
  background:#fff!important;
}
body.theo-admin .health-row strong{font-size:10px!important;color:#405c6d!important}
body.theo-admin .health-status{display:inline-flex!important;align-items:center!important;gap:6px!important;color:#3b765e!important;font-size:8.5px!important;font-weight:800!important}
body.theo-admin .health-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#55a67d;box-shadow:0 0 0 3px rgba(85,166,125,.10)}

/* --- Cross-menu SaaS system --------------------------------------------- */
body.theo-admin .admin-summary-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:11px!important;
  margin:0 0 16px!important;
  border:0!important;
  overflow:visible!important;
  background:transparent!important;
}
body.theo-admin .admin-summary-cell{
  position:relative!important;
  overflow:hidden!important;
  min-height:96px!important;
  padding:14px 15px!important;
  border:1px solid #dfe8ec!important;
  border-radius:14px!important;
  background:linear-gradient(140deg,#fff,#fbfdfe)!important;
  box-shadow:0 6px 18px rgba(18,49,72,.028)!important;
}
body.theo-admin .admin-summary-cell::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--a-blue)}
body.theo-admin .admin-summary-cell:nth-child(2)::before{background:var(--a-teal)}
body.theo-admin .admin-summary-cell:nth-child(3)::before{background:var(--a-gold)}
body.theo-admin .admin-summary-cell:nth-child(4)::before{background:var(--a-violet)}
body.theo-admin .admin-summary-cell>span{font-size:8px!important;color:#7b8e99!important;font-weight:900!important;letter-spacing:.075em!important}
body.theo-admin .admin-summary-cell>strong{font-family:"Inter Tight",Inter,sans-serif!important;font-size:23px!important;color:#17364b!important;letter-spacing:-.035em!important}
body.theo-admin .admin-summary-cell>small{font-size:8.5px!important;color:#8a99a2!important}

/* Filters / command bars */
body.theo-admin .admin-toolbar{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
body.theo-admin .admin-filter-search,
body.theo-admin .admin-filter-field input,
body.theo-admin .admin-filter-field select,
body.theo-admin .admin-inline-select,
body.theo-admin .admin-config-field input,
body.theo-admin .admin-config-field select,
body.theo-admin .admin-config-field textarea{
  min-height:42px!important;
  border:1px solid #d6e2e7!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#29495d!important;
  box-shadow:0 2px 8px rgba(18,49,72,.015)!important;
}
body.theo-admin input:focus,
body.theo-admin select:focus,
body.theo-admin textarea:focus{border-color:#86aac0!important;box-shadow:0 0 0 3px rgba(79,134,198,.09)!important;outline:none!important}
body.theo-admin .admin-filter-field>span,
body.theo-admin .admin-config-field>span{font-size:8px!important;color:#718692!important;font-weight:850!important;letter-spacing:.035em!important;text-transform:uppercase!important}

/* Buttons */
body.theo-admin .primary,
body.theo-admin .button.primary{background:linear-gradient(180deg,#173b53,#102f45)!important;color:#fff!important;border-color:#14364e!important;box-shadow:0 8px 18px rgba(18,49,72,.11)!important}
body.theo-admin .secondary,
body.theo-admin .table-btn,
body.theo-admin .button.secondary{background:#fff!important;color:#2c4c60!important;border:1px solid #d6e2e7!important;box-shadow:0 3px 10px rgba(18,49,72,.02)!important}
body.theo-admin .table-btn.green{color:#2f7859!important;border-color:#cfe4da!important;background:#f4fbf7!important}
body.theo-admin .table-btn.red{color:#a54f43!important;border-color:#ebd1cd!important;background:#fff8f6!important}

/* Tables */
body.theo-admin .table-wrap{border:1px solid #e0e8ec!important;border-radius:14px!important;background:#fff!important;overflow:auto!important}
body.theo-admin .admin-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important}
body.theo-admin .admin-table th{padding:11px 13px!important;background:#f6f9fa!important;color:#758a96!important;font-size:8px!important;font-weight:900!important;letter-spacing:.065em!important;text-transform:uppercase!important}
body.theo-admin .admin-table td{padding:12px 13px!important;border-bottom:1px solid #edf2f4!important;color:#35566a!important;font-size:10px!important;vertical-align:middle!important}
body.theo-admin .admin-table tbody tr:last-child td{border-bottom:0!important}
body.theo-admin .admin-table tbody tr:hover td{background:#fbfdfe!important}
body.theo-admin .entity strong{color:#24465b!important;font-size:10.5px!important}
body.theo-admin .entity small,.theo-admin .cell-sub{color:#85959f!important;font-size:8.5px!important;line-height:1.35!important}

/* Semantic badges */
body.theo-admin .badge,
body.theo-admin .status,
body.theo-admin .priority-label,
body.theo-admin [class*="status-chip"]{
  min-height:26px!important;
  padding:0 9px!important;
  border-radius:9px!important;
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
body.theo-admin .badge.success{background:#edf8f3!important;color:#2f7b5b!important;border-color:#d1e9dd!important}
body.theo-admin .badge.neutral{background:#f4f7f8!important;color:#647b89!important;border-color:#dee6ea!important}

/* Empty, loading and restricted states */
body.theo-admin .admin-empty,
body.theo-admin .notice,
body.theo-admin .admin-route-loading,
body.theo-admin .manager-empty,
body.theo-admin .manager-empty-state,
body.theo-admin .acq-empty{
  min-height:108px!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  padding:20px!important;
  border:1px dashed #cadbe2!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#fbfdfe,#f7fafb)!important;
  color:#758a96!important;
  text-align:center!important;
}
body.theo-admin .admin-empty strong{color:#29495d!important;font-size:11px!important}
body.theo-admin .admin-empty span{color:#84959f!important;font-size:9px!important}

/* Settings / forms / role matrices */
body.theo-admin .admin-config-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
body.theo-admin .admin-config-card .panel-body{display:grid!important;gap:12px!important}
body.theo-admin .admin-form-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.theo-admin .admin-role-matrix{display:grid!important;gap:0!important}
body.theo-admin .admin-role-row{display:grid!important;grid-template-columns:1fr auto!important;gap:12px!important;align-items:center!important;padding:12px 2px!important;border-bottom:1px solid #edf2f4!important}
body.theo-admin .admin-role-row:last-child{border-bottom:0!important}
body.theo-admin .admin-role-row strong{font-size:10px!important;color:#35566a!important}
body.theo-admin .admin-role-row span{display:block!important;margin-top:2px!important;font-size:8.5px!important;color:#8797a0!important}
body.theo-admin .admin-role-row b{min-width:34px!important;text-align:center!important;padding:5px 8px!important;border:1px solid #dde7eb!important;border-radius:9px!important;background:#f8fafb!important;color:#29495d!important;font-size:9px!important}

/* Markets / acquisition / affiliate / commercial modules */
body.theo-admin .market-summary-grid,
body.theo-admin .acq-kpis,
body.theo-admin .baf2-metrics{gap:11px!important}
body.theo-admin .market-summary-card,
body.theo-admin .acq-kpis>*,
body.theo-admin .baf2-metrics>*{border-radius:14px!important;border-color:#dfe8ec!important;box-shadow:0 6px 18px rgba(18,49,72,.028)!important}
body.theo-admin .market-card,
body.theo-admin .acq-panel{border-radius:16px!important;border-color:#dce6ea!important;box-shadow:var(--a-shadow-soft)!important}

/* Modals */
body.theo-admin .modal,
body.theo-admin .manager-review-dialog,
body.theo-admin .ops-modal-card{
  border:1px solid #d8e3e8!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 34px 96px rgba(8,28,42,.24)!important;
}

/* ==========================================================================
   TABLET — 701–1180
   ========================================================================== */
@media (min-width:701px) and (max-width:1180px){
  body.theo-admin .topbar{height:78px!important;min-height:78px!important;padding:0 20px!important}
  body.theo-admin .top-logo{width:158px!important}
  body.theo-admin .content{padding:26px 20px 72px!important}
  body.theo-admin .content>.section-head{margin-bottom:18px!important}
  body.theo-admin .section-head h1{font-size:34px!important}
  body.theo-admin .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
  body.theo-admin .kpi{min-height:112px!important}
  body.theo-admin .kpi:last-child:nth-child(odd){grid-column:1/-1!important}
  body.theo-admin .executive-grid,
  body.theo-admin .lower-dashboard{grid-template-columns:1fr!important;gap:13px!important}
  body.theo-admin .executive-grid>.panel,
  body.theo-admin .lower-dashboard>.panel{width:100%!important}
  body.theo-admin .admin-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.theo-admin .admin-config-grid{grid-template-columns:1fr!important}
  body.theo-admin .admin-search{max-width:170px!important}
  body.theo-admin .snapshot-row{grid-template-columns:140px 1fr 34px!important}
}

/* ==========================================================================
   MOBILE — <=700
   ========================================================================== */
@media (max-width:700px){
  body.theo-admin .topbar{height:68px!important;min-height:68px!important;padding:0 11px!important}
  body.theo-admin .top-logo{width:128px!important}
  body.theo-admin .top-divider,
  body.theo-admin .top-context,
  body.theo-admin .marketplace-link,
  body.theo-admin .live-platform,
  body.theo-admin .admin-search{display:none!important}
  body.theo-admin .content{padding:25px 12px 92px!important}
  body.theo-admin .content>.section-head{display:block!important;margin-bottom:15px!important;padding-top:2px!important}
  body.theo-admin .content>.section-head::before{top:-13px!important;font-size:7px!important}
  body.theo-admin .section-head h1{font-size:29px!important;line-height:1.04!important}
  body.theo-admin .section-head p{font-size:10px!important;line-height:1.45!important;margin-top:6px!important}

  body.theo-admin .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
  body.theo-admin .kpi,
  body.theo-admin .kpi:last-child:nth-child(odd){grid-column:auto!important;min-height:100px!important;padding:14px 13px!important;border-radius:14px!important}
  body.theo-admin .kpi:last-child:nth-child(odd){grid-column:1/-1!important}
  body.theo-admin .kpi strong{font-size:23px!important;margin:7px 0 4px!important}
  body.theo-admin .kpi .label{font-size:7px!important}
  body.theo-admin .kpi small{font-size:8px!important}

  body.theo-admin .executive-grid,
  body.theo-admin .lower-dashboard{grid-template-columns:1fr!important;gap:10px!important;margin-bottom:10px!important}
  body.theo-admin .panel,
  body.theo-admin .admin-ops-panel,
  body.theo-admin .admin-config-card,
  body.theo-admin .section{border-radius:15px!important;box-shadow:0 9px 24px rgba(18,49,72,.045)!important}
  body.theo-admin .panel-head,
  body.theo-admin .admin-panel-head{min-height:56px!important;padding:14px!important}
  body.theo-admin .panel-body{padding:13px!important}

  body.theo-admin .snapshot-row{grid-template-columns:1fr auto!important;gap:6px 10px!important;padding:10px!important}
  body.theo-admin .snapshot-track{grid-column:1/-1!important;grid-row:2!important}
  body.theo-admin .snapshot-row>strong{grid-column:2!important;grid-row:1!important}
  body.theo-admin .conversion-step{min-height:48px!important;padding:10px!important}
  body.theo-admin .priority{min-height:50px!important;padding:10px!important}
  body.theo-admin .health-row{grid-template-columns:1fr!important;gap:4px!important}

  body.theo-admin .admin-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.theo-admin .admin-summary-cell{min-height:88px!important;padding:12px!important}
  body.theo-admin .admin-summary-cell>strong{font-size:20px!important}
  body.theo-admin .admin-toolbar{display:grid!important;grid-template-columns:1fr!important;width:100%!important;margin:0!important}
  body.theo-admin .admin-filter-search,
  body.theo-admin .admin-filter-field{width:100%!important;min-width:0!important}
  body.theo-admin .admin-filter-field input,
  body.theo-admin .admin-filter-field select,
  body.theo-admin .admin-filter-search{width:100%!important}
  body.theo-admin .admin-form-row{grid-template-columns:1fr!important}
  body.theo-admin .admin-config-grid{grid-template-columns:1fr!important}

  /* Mobile data-card authority for all Admin tables */
  body.theo-admin #content .table-wrap{border:0!important;background:transparent!important;overflow:visible!important}
  body.theo-admin #content table.admin-table,
  body.theo-admin #content table.recent-table{display:block!important;width:100%!important;min-width:0!important;background:transparent!important}
  body.theo-admin #content table.admin-table thead,
  body.theo-admin #content table.recent-table thead{display:none!important}
  body.theo-admin #content table.admin-table tbody,
  body.theo-admin #content table.recent-table tbody{display:grid!important;gap:9px!important;width:100%!important}
  body.theo-admin #content table.admin-table tr,
  body.theo-admin #content table.recent-table tr{display:block!important;padding:7px 0!important;border:1px solid #e0e9ec!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 15px rgba(18,49,72,.025)!important}
  body.theo-admin #content table.admin-table td,
  body.theo-admin #content table.recent-table td{display:grid!important;grid-template-columns:minmax(95px,.75fr) minmax(0,1.25fr)!important;gap:8px!important;width:100%!important;padding:7px 11px!important;border:0!important;border-bottom:1px solid #eef3f5!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.theo-admin #content table.admin-table td:last-child,
  body.theo-admin #content table.recent-table td:last-child{border-bottom:0!important}
  body.theo-admin #content table.admin-table td::before,
  body.theo-admin #content table.recent-table td::before{content:attr(data-label)!important;color:#81929c!important;font-size:7.5px!important;font-weight:900!important;letter-spacing:.045em!important;text-transform:uppercase!important}

  body.theo-admin .modal,
  body.theo-admin .manager-review-dialog,
  body.theo-admin .ops-modal-card{width:calc(100vw - 16px)!important;max-width:none!important;max-height:89vh!important;margin:auto 8px 0!important;border-radius:18px 18px 0 0!important}
}

@media (max-width:380px){
  body.theo-admin .kpis,
  body.theo-admin .admin-summary-strip{grid-template-columns:1fr!important}
  body.theo-admin .kpi:last-child:nth-child(odd){grid-column:auto!important}
  body.theo-admin .section-head h1{font-size:27px!important}
  body.theo-admin #content table.admin-table td,
  body.theo-admin #content table.recent-table td{grid-template-columns:1fr!important;gap:3px!important}
}
