/* ==========================================================================
   ZenoPilot Design System v2  (loaded AFTER bootstrap.min.css)
   Palette: Onyx #0D0F14 · Electric Indigo #5046E5 · Tropical Mint #00D09C (success/live ONLY)
   Type: Bricolage Grotesque (headings, numbers, brand) + system-ui (body, fast on mobile data)
   Layout: desktop = fixed onyx sidebar + top strip; mobile (<992px) = top strip + bottom tab bar
   ========================================================================== */

:root {
  --zp-onyx: #0D0F14;
  --zp-onyx-surface: #141822;
  --zp-onyx-border: #1E2433;
  --zp-canvas: #F6F7FB;
  --zp-card-bg: #FFFFFF;
  --zp-border: #E2E8F0;
  --zp-border-subtle: #F1F5F9;
  --zp-text: #0D0F14;
  --zp-text-muted: #64748B;
  --zp-text-subtle: #94A3B8;

  --zp-indigo: #5046E5;
  --zp-indigo-hover: #4338CA;
  --zp-indigo-subtle: #EEF2FF;
  --zp-indigo-border: #C7D2FE;
  --zp-indigo-light: #A5B4FC;

  --zp-mint: #00D09C;
  --zp-mint-hover: #00B588;
  --zp-mint-subtle: #ECFDF5;
  --zp-mint-dark: #047857;
  --zp-mint-border: #A7F3D0;

  --zp-amber: #F59E0B;
  --zp-amber-subtle: #FEF3C7;
  --zp-amber-text: #92400E;
  --zp-amber-border: #FDE68A;
  --zp-red: #EF4444;
  --zp-red-subtle: #FEE2E2;
  --zp-red-text: #B91C1C;
  --zp-red-border: #FECACA;

  /* Radius scale: small = controls, md = inner panels, lg = cards */
  --zp-radius-sm: 8px;
  --zp-radius: 12px;
  --zp-radius-lg: 16px;
  --zp-shadow: 0 1px 2px rgba(13, 15, 20, .05), 0 1px 3px rgba(13, 15, 20, .04);
  --zp-shadow-hover: 0 8px 20px -6px rgba(13, 15, 20, .12);

  --zp-font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --zp-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --zp-sidebar-w: 248px;
  --zp-top-h: 60px;
  --zp-nav-h: 62px;
  --zp-tap: 44px;

  /* Re-point Bootstrap's own colors so utilities (text-primary, bg-success...) match the brand */
  --bs-primary: #5046E5;
  --bs-primary-rgb: 80, 70, 229;
  --bs-link-color: #5046E5;
  --bs-link-color-rgb: 80, 70, 229;
  --bs-link-hover-color: #4338CA;
  --bs-link-hover-color-rgb: 67, 56, 202;
  --bs-success-rgb: 4, 120, 87;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger-rgb: 220, 38, 38;
  --bs-body-font-family: var(--zp-font-body);
  --bs-border-color: #E2E8F0;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--zp-canvas);
  color: var(--zp-text);
  font-family: var(--zp-font-body);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
  max-width: 100%;
}

.zp-i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zp-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--zp-indigo);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--zp-radius-sm);
}

.zp-skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--zp-indigo);
  outline-offset: 2px;
}

.cursor-pointer {
  cursor: pointer;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--zp-font-display);
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--zp-text);
}

h1,
.h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
}

h2,
.h2 {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
}

h3,
.h3 {
  font-size: 1.125rem;
}

.text-muted {
  color: var(--zp-text-muted) !important;
}

/* ---------- App shell ---------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.zp-sidebar,
.offcanvas-lg.zp-sidebar {
  width: var(--zp-sidebar-w) !important;
  min-width: var(--zp-sidebar-w) !important;
  background: var(--zp-onyx) !important;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1045;
  border-right: 1px solid var(--zp-onyx-border) !important;
  overflow-y: auto;
}

.zp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 1rem;
  border-bottom: 1px solid var(--zp-onyx-border);
}

.zp-sidebar-brand {
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff !important;
}

.zp-sidebar-brand img {
  height: 32px;
  width: auto;
}

.zp-brand-title,
.zp-mobile-brand-text {
  font-family: var(--zp-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}

.zp-brand-title span {
  color: var(--zp-indigo-light);
}

/* mint is reserved for success/live */

.zp-sidebar-nav {
  padding: 1rem .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.zp-nav-group-title {
  font-size: .75rem;
  font-weight: 600;
  color: #64748B !important;
  padding: 0 .65rem .3rem;
}

.zp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: .5rem .75rem;
  border-radius: var(--zp-radius-sm);
  margin-bottom: 2px;
  color: #94A3B8 !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .15s, color .15s;
}

.zp-nav-item:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .06);
}

.zp-nav-item.active {
  background: var(--zp-indigo) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(80, 70, 229, .7);
}

.zp-nav-label {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.zp-nav-badge,
.zp-tab-badge {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: .2rem .45rem;
  border-radius: 999px;
  background: var(--zp-amber);
  color: #0D0F14;
}

.zp-sidebar-footer {
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--zp-onyx-border);
  background: var(--zp-onyx-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--zp-indigo);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  flex: none;
}

.zp-logout {
  background: none;
  border: 0;
  color: #94A3B8;
  width: var(--zp-tap);
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--zp-radius-sm);
}

.zp-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.zp-main-canvas {
  margin-left: var(--zp-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.zp-top-strip {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: calc(var(--zp-top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--zp-border);
}

.zp-top-left,
.zp-top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.zp-workspace-tag {
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.zp-workspace-tz {
  font-size: .75rem;
  font-weight: 500;
  color: var(--zp-text-muted);
  background: var(--zp-border-subtle);
  padding: .15rem .5rem;
  border-radius: 999px;
}

.zp-mobile-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.zp-mobile-brand img {
  height: 28px;
}

.zp-mobile-brand-text {
  color: var(--zp-onyx);
  font-size: 1.05rem;
}

.zp-mobile-brand-text span {
  color: var(--zp-indigo);
}

.zp-messages {
  padding: 1rem 1.75rem 0;
}

.zp-page-content {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.zp-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--zp-border);
  background: #fff;
  font-size: .8125rem;
  color: var(--zp-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--zp-radius-sm);
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.btn-sm {
  padding: .35rem .75rem;
  font-size: .8125rem;
}

.btn-primary,
.btn-indigo {
  background: var(--zp-indigo) !important;
  border-color: var(--zp-indigo) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-indigo:hover {
  background: var(--zp-indigo-hover) !important;
  border-color: var(--zp-indigo-hover) !important;
}

.btn-outline-primary {
  color: var(--zp-indigo);
  border-color: var(--zp-indigo-border);
  --bs-btn-hover-bg: var(--zp-indigo);
  --bs-btn-hover-border-color: var(--zp-indigo);
}

.btn-outline-secondary {
  background: #fff !important;
  border-color: var(--zp-border) !important;
  color: #334155 !important;
}

.btn-outline-secondary:hover {
  background: var(--zp-canvas) !important;
  border-color: #CBD5E1 !important;
  color: var(--zp-text) !important;
}

.btn-mint {
  background: var(--zp-mint) !important;
  border-color: var(--zp-mint) !important;
  color: #064E3B !important;
}

.btn-mint:hover {
  background: var(--zp-mint-hover) !important;
}

.btn-pause-all,
.btn-resume-all {
  font-size: .8125rem;
  padding: .4rem .8rem;
  white-space: nowrap;
}

.btn-pause-all {
  border: 1px solid var(--zp-red-border);
  background: #fff;
  color: var(--zp-red-text);
}

.btn-pause-all:hover {
  background: var(--zp-red-subtle);
  border-color: #F87171;
  color: var(--zp-red-text);
}

.btn-resume-all {
  border: 1px solid var(--zp-mint-border);
  background: var(--zp-mint-subtle);
  color: var(--zp-mint-dark);
}

.btn-resume-all:hover {
  background: var(--zp-mint);
  color: #064E3B;
}

/* ---------- Badges, alerts ---------- */
.badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .28rem .6rem;
  border-radius: 999px;
}

.badge-mint {
  background: var(--zp-mint-subtle) !important;
  color: var(--zp-mint-dark) !important;
  border: 1px solid var(--zp-mint-border);
}

.badge-indigo {
  background: var(--zp-indigo-subtle) !important;
  color: var(--zp-indigo) !important;
  border: 1px solid var(--zp-indigo-border);
}

.badge-warning-custom,
.badge-amber {
  background: var(--zp-amber-subtle) !important;
  color: var(--zp-amber-text) !important;
  border: 1px solid var(--zp-amber-border);
}

.badge-danger-custom,
.badge-red {
  background: var(--zp-red-subtle) !important;
  color: var(--zp-red-text) !important;
  border: 1px solid var(--zp-red-border);
}

.badge-onyx {
  background: #1E293B !important;
  color: #F8FAFC !important;
}

.zp-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zp-mint);
  box-shadow: 0 0 0 0 rgba(0, 208, 156, .5);
  animation: zp-pulse 2s infinite;
}

@keyframes zp-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(0, 208, 156, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 156, 0);
  }
}

.alert-success {
  --bs-alert-bg: var(--zp-mint-subtle);
  --bs-alert-border-color: var(--zp-mint-border);
  --bs-alert-color: var(--zp-mint-dark);
}

.alert-warning {
  --bs-alert-bg: var(--zp-amber-subtle);
  --bs-alert-border-color: var(--zp-amber-border);
  --bs-alert-color: var(--zp-amber-text);
}

.alert-danger {
  --bs-alert-bg: var(--zp-red-subtle);
  --bs-alert-border-color: var(--zp-red-border);
  --bs-alert-color: var(--zp-red-text);
}

.alert-info,
.alert-primary {
  --bs-alert-bg: var(--zp-indigo-subtle);
  --bs-alert-border-color: var(--zp-indigo-border);
  --bs-alert-color: #3730A3;
}

/* ---------- Cards ---------- */
.card,
.card-zeno {
  background: var(--zp-card-bg);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-lg);
  box-shadow: var(--zp-shadow);
}

.card-zeno .card-header,
.card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--zp-border);
  padding: 1.1rem 1.4rem;
  border-radius: var(--zp-radius-lg) var(--zp-radius-lg) 0 0;
  font-weight: 600;
}

.zp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.zp-summary-card {
  background: #fff;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--zp-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zp-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.zp-summary-title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--zp-text-muted);
}

.zp-summary-value {
  font-family: var(--zp-font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.zp-summary-sub {
  font-size: .8125rem;
  color: var(--zp-text-muted);
  margin-top: .35rem;
}

.zp-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.zp-post-card {
  background: #fff;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-lg);
  overflow: hidden;
  box-shadow: var(--zp-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}

.zp-post-card-header {
  padding: .8rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--zp-border-subtle);
  background: #FAFAFC;
}

.zp-post-platform {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #334155;
}

.zp-post-img-container {
  width: 100%;
  height: 180px;
  background: #F1F5F9;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.zp-post-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zp-post-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zp-post-caption {
  font-size: .875rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
}

.zp-post-meta {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--zp-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.zp-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zp-empty-illustration {
  margin-bottom: 1.25rem;
  color: var(--zp-indigo);
}

.zp-empty-title {
  font-family: var(--zp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.zp-empty-text {
  font-size: .9rem;
  color: var(--zp-text-muted);
  max-width: 420px;
  margin-bottom: 1.25rem;
}

/* ---------- Page helpers (use these in every page) ---------- */
.zp-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.5rem;
}

.zp-page-title {
  margin: 0;
  line-height: 1.15;
}

.zp-page-sub {
  color: var(--zp-text-muted);
  font-size: .9rem;
  margin: .3rem 0 0;
}

.zp-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.zp-section-title {
  font-family: var(--zp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.zp-chip-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: .25rem;
  scrollbar-width: none;
}

.zp-chip-row::-webkit-scrollbar {
  display: none;
}

.zp-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--zp-border);
  background: #fff;
  color: #334155;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.zp-chip.active {
  background: var(--zp-indigo);
  border-color: var(--zp-indigo);
  color: #fff;
}

.zp-list-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--zp-border-subtle);
}

.zp-list-item:last-child {
  border-bottom: 0;
}

/* ---------- Forms & tables ---------- */
.form-label {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.form-control,
.form-select {
  border-radius: var(--zp-radius-sm);
  border-color: var(--zp-border);
  font-size: .9375rem;
  padding: .55rem .8rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--zp-indigo);
  box-shadow: 0 0 0 .22rem rgba(80, 70, 229, .18);
}

.form-check-input:checked {
  background-color: var(--zp-indigo);
  border-color: var(--zp-indigo);
}

.form-check-input:focus {
  border-color: var(--zp-indigo);
  box-shadow: 0 0 0 .22rem rgba(80, 70, 229, .18);
}

.table {
  --bs-table-bg: transparent;
  font-size: .875rem;
}

.table>thead>tr>th {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--zp-text-muted);
  border-bottom-color: var(--zp-border);
  white-space: nowrap;
}

.modal-content {
  border-radius: var(--zp-radius-lg);
  border: 0;
  box-shadow: 0 24px 60px -12px rgba(13, 15, 20, .35);
}

/* Approval-mode radio cards (Settings page) */
.approval-mode-card {
  transition: border-color .15s, background-color .15s;
}

.approval-mode-radio:checked+.approval-mode-card {
  border-color: var(--zp-indigo) !important;
  background: rgba(80, 70, 229, .05) !important;
}

.approval-mode-radio[value="auto"]:checked+.approval-mode-card {
  border-color: #F59E0B !important;
  background: rgba(245, 158, 11, .05) !important;
}

.bg-indigo-soft {
  background: rgba(80, 70, 229, .05) !important;
}

.bg-warning-soft {
  background: rgba(245, 158, 11, .05) !important;
}

/* Hover polish only where a mouse exists (avoids "stuck hover" on phones) */
@media (hover: hover) {

  .zp-post-card:hover,
  .card-zeno:hover {
    box-shadow: var(--zp-shadow-hover);
  }
}

/* ---------- Mobile + tablet (< 992px) ---------- */
.zp-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {

  .zp-sidebar,
  .offcanvas-lg.zp-sidebar {
    width: min(86vw, 300px) !important;
    min-width: 0 !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, .45);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .zp-sidebar-head {
    padding-right: 1.1rem;
  }

  .zp-nav-item {
    min-height: var(--zp-tap);
    font-size: .95rem;
  }

  .zp-main-canvas {
    margin-left: 0;
    padding-bottom: calc(var(--zp-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  .zp-top-strip {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .zp-workspace-tag {
    display: none;
  }

  .zp-messages {
    padding: .75rem .9rem 0;
  }

  .zp-page-content {
    padding: 1.25rem .9rem 2rem;
  }

  .zp-footer {
    padding: 1rem .9rem;
  }

  /* Bottom tab bar: thumb-reach navigation */
  .zp-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 0 .25rem env(safe-area-inset-bottom, 0px);
    background: rgba(13, 15, 20, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--zp-onyx-border);
  }

  .zp-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--zp-nav-h);
    background: none;
    border: 0;
    color: #94A3B8;
    font-size: .6875rem;
    font-weight: 600;
    text-decoration: none;
  }

  .zp-tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    transition: background-color .15s;
  }

  .zp-tab.active {
    color: #fff;
  }

  .zp-tab.active .zp-tab-icon {
    background: var(--zp-indigo);
  }

  .zp-tab-badge {
    position: absolute;
    top: -5px;
    right: 2px;
    font-size: .65rem;
    padding: .15rem .38rem;
    border: 2px solid var(--zp-onyx);
  }

  /* Touch targets >= 44px and 16px inputs (stops iOS auto-zoom on focus) */
  .btn {
    min-height: var(--zp-tap);
  }

  .btn-sm {
    min-height: 38px;
  }

  .btn-pause-all,
  .btn-resume-all {
    min-height: 38px;
  }

  .form-control,
  .form-select {
    font-size: 16px;
    min-height: var(--zp-tap);
  }

  .form-check-input {
    width: 1.25em;
    height: 1.25em;
  }

  .zp-page-title {
    font-size: 1.5rem;
  }

  .zp-page-actions {
    width: 100%;
  }

  .zp-page-actions .btn {
    flex: 1 1 auto;
  }

  .zp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .zp-summary-card {
    padding: .95rem 1rem;
  }

  .zp-summary-value {
    font-size: 1.6rem;
  }

  .zp-timeline-grid {
    gap: 1rem;
  }

  .zp-post-img-container {
    height: 200px;
  }

  .card-zeno .card-header,
  .card .card-header {
    padding: .9rem 1rem;
  }

  .modal-dialog {
    margin: .75rem;
  }

  /* Action bar that stays above the tab bar (approve / save buttons) */
  .zp-sticky-actions {
    position: sticky;
    bottom: calc(var(--zp-nav-h) + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    display: flex;
    gap: .5rem;
    padding: .75rem .9rem;
    margin: 1rem -.9rem 0;
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--zp-border);
  }

  .zp-sticky-actions .btn {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .zp-mobile-brand-text {
    display: none;
  }

  .zp-kpi-grid {
    gap: .6rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}