/* ==========================================================================
   SysAdmin Zoe: Responsive Web & Mobile App Stylesheet
   Light & Dark Mode + Safe-Area & Touch Ergonomics
   ========================================================================== */

:root {
  --zoe-primary: #484db5;
  --zoe-primary-hover: #3b409c;
  --zoe-primary-soft: rgba(72, 77, 181, 0.11);
  --zoe-success: #15803d;
  --zoe-success-soft: rgba(21, 128, 61, 0.12);
  --zoe-warning: #b45309;
  --zoe-warning-soft: rgba(180, 83, 9, 0.13);
  --zoe-danger: #dc2626;
  --zoe-danger-soft: rgba(220, 38, 38, 0.11);
  --zoe-info: #0369a1;
  --zoe-info-soft: rgba(3, 105, 161, 0.12);

  --zoe-bg: #f4f6f9;
  --zoe-surface: #ffffff;
  --zoe-surface-alt: #f8fafc;
  --zoe-border: #e2e8f0;
  --zoe-text: #1e293b;
  --zoe-text-muted: #475569;
  --zoe-sidebar-bg: #fbfaff;
}

body[data-mode="dark"] {
  --zoe-primary: #6366f1;
  --zoe-primary-hover: #4f46e5;
  --zoe-primary-soft: rgba(99, 102, 241, 0.18);
  --zoe-success: #22c55e;
  --zoe-success-soft: rgba(34, 197, 94, 0.16);
  --zoe-warning: #f59e0b;
  --zoe-warning-soft: rgba(245, 158, 11, 0.16);
  --zoe-danger: #f87171;
  --zoe-danger-soft: rgba(248, 113, 113, 0.16);
  --zoe-info: #38bdf8;
  --zoe-info-soft: rgba(56, 189, 248, 0.16);

  --zoe-bg: #1e2120;
  --zoe-surface: #272b29;
  --zoe-surface-alt: #303533;
  --zoe-border: #3f4543;
  --zoe-text: #f1f5f9;
  --zoe-text-muted: #cbd5e1;
  --zoe-sidebar-bg: #272b29;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--zoe-bg) !important;
  color: var(--zoe-text) !important;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--zoe-primary);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@keyframes zoeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.zoe-spin {
  display: inline-block;
  animation: zoeSpin 0.8s linear infinite;
}

/* ==========================================================================
   1. TOPBAR (Desktop Fixed Header vs Mobile Clean App Bar)
   ========================================================================== */
.zoe-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--zoe-surface);
  border-bottom: 1px solid var(--zoe-border);
  z-index: 40;
  display: flex;
  align-items: center;
}

.zoe-topbar-desktop {
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
}

.zoe-topbar-mobile {
  display: none !important;
  width: 100%;
}

.zoe-brand-box {
  height: 64px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--zoe-border);
  background: var(--zoe-sidebar-bg);
  transition: width 0.18s ease;
  flex-shrink: 0;
}

.zoe-brand-box.is-expanded {
  width: 240px;
  padding: 0 20px;
  justify-content: space-between;
}

.zoe-brand-box.is-collapsed {
  width: 72px;
  padding: 0;
  justify-content: center;
}

.zoe-topbar-inner {
  flex: 1;
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.zoe-search-box {
  position: relative;
  width: 280px;
  max-width: 100%;
  min-width: 150px;
}

.zoe-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--zoe-border);
  background: var(--zoe-surface-alt);
  color: var(--zoe-text);
  font-size: 13px;
}

.zoe-search-input:focus {
  border-color: var(--zoe-primary);
}

.zoe-search-icon {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--zoe-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Mobile Compact Header Elements */
.zoe-mobile-bar {
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zoe-mobile-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--zoe-text);
}

.zoe-mobile-brand-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoe-mobile-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zoe-mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.zoe-mobile-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--zoe-border);
  background: var(--zoe-surface-alt);
  color: var(--zoe-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, background-color 0.12s ease;
}

.zoe-mobile-icon-btn:active,
.zoe-mobile-avatar-btn:active {
  transform: scale(0.96);
}

.zoe-mobile-icon-btn.is-active {
  background: var(--zoe-primary-soft);
  border-color: var(--zoe-primary);
  color: var(--zoe-primary);
}

.zoe-mobile-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--zoe-border);
  background: var(--zoe-surface-alt);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.zoe-mobile-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--zoe-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoe-mobile-search-drawer {
  padding: 0 12px 10px;
  border-top: 1px solid var(--zoe-border);
  padding-top: 8px;
  background: var(--zoe-surface);
}

.zoe-mobile-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.zoe-mobile-search-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 36px;
  border-radius: 9px;
  border: 1px solid var(--zoe-border);
  background: var(--zoe-surface-alt);
  color: var(--zoe-text);
  font-size: 16px;
}

.zoe-mobile-search-input:focus {
  border-color: var(--zoe-primary);
}

.zoe-mobile-search-lead {
  position: absolute;
  left: 11px;
  color: var(--zoe-text-muted);
  font-size: 17px;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.zoe-mobile-search-clear {
  position: absolute;
  right: 3px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--zoe-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile Account & Quick Settings Sheet */
.zoe-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(15, 23, 42, 0.35);
}

.zoe-mobile-menu-sheet {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px) + 6px);
  right: 12px;
  width: min(296px, calc(100vw - 24px));
  z-index: 49;
  background: var(--zoe-surface);
  border: 1px solid var(--zoe-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.zoe-mobile-menu-header {
  padding: 12px 14px;
  background: var(--zoe-surface-alt);
  border-bottom: 1px solid var(--zoe-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoe-mobile-menu-item {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--zoe-text);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.zoe-mobile-menu-item:active {
  background: var(--zoe-surface-alt);
}

.zoe-mobile-menu-item.is-danger {
  color: var(--zoe-danger);
  border-top: 1px solid var(--zoe-border);
}

/* ==========================================================================
   2. DESKTOP SIDEBAR (Expanded 240px & Collapsed 72px Icon Rail)
   ========================================================================== */
.zoe-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  background: var(--zoe-sidebar-bg);
  border-right: 1px solid var(--zoe-border);
  z-index: 35;
  transition: width 0.18s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.zoe-sidebar.is-expanded {
  width: 240px;
}

.zoe-sidebar.is-collapsed {
  width: 72px;
}

.zoe-nav-section-title {
  padding: 14px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zoe-text-muted);
}

.zoe-nav-link {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 3px 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--zoe-text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.zoe-sidebar.is-collapsed .zoe-nav-link {
  justify-content: center;
  padding: 0;
  margin: 4px 12px;
}

@media (hover: hover) and (pointer: fine) {
  .zoe-nav-link:hover {
    background: var(--zoe-primary-soft);
    color: var(--zoe-primary);
  }

  .zoe-fixed-table tbody tr:hover {
    background: var(--zoe-surface-alt);
  }

  .zoe-mobile-menu-item:hover {
    background: var(--zoe-surface-alt);
  }
}

.zoe-nav-link.is-active {
  background: var(--zoe-primary);
  color: #ffffff;
}

.zoe-nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--zoe-primary-soft);
  color: var(--zoe-primary);
}

.zoe-nav-link.is-active .zoe-nav-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   3. MAIN CONTENT & ADAPTIVE BREAKPOINTS (Web Desktop vs Mobile App)
   ========================================================================== */
.zoe-main {
  padding-top: 64px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.18s ease;
}

.zoe-main.with-sidebar-expanded {
  margin-left: 240px;
}

.zoe-main.with-sidebar-collapsed {
  margin-left: 72px;
}

.zoe-container {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 32px;
}

/* Visibility Helpers */
.zoe-desktop-view {
  display: block;
}

.zoe-mobile-view {
  display: none !important;
}

/* ==========================================================================
   4. SUMMARY METRIC CARDS (Fixed Height & Tabular Nums)
   ========================================================================== */
.zoe-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.zoe-metric-card {
  background: var(--zoe-surface);
  border: 1px solid var(--zoe-border);
  border-radius: 10px;
  padding: 16px 18px;
  height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.zoe-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zoe-metric-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--zoe-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoe-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.zoe-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--zoe-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.zoe-metric-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--zoe-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   5. MONITORING DATA TABLES & FILTER PILLS
   ========================================================================== */
.zoe-section-card {
  background: var(--zoe-surface);
  border: 1px solid var(--zoe-border);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.zoe-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--zoe-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zoe-filter-bar {
  padding: 12px 20px;
  background: var(--zoe-surface-alt);
  border-bottom: 1px solid var(--zoe-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zoe-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.zoe-filter-pill {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--zoe-border);
  background: var(--zoe-surface);
  color: var(--zoe-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.zoe-filter-pill.is-active {
  background: var(--zoe-primary);
  border-color: var(--zoe-primary);
  color: #ffffff;
}

.zoe-action-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.zoe-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.zoe-action-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.zoe-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.zoe-fixed-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.zoe-fixed-table th {
  height: 44px;
  padding: 0 14px;
  background: var(--zoe-surface-alt);
  border-bottom: 1px solid var(--zoe-border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--zoe-text-muted);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoe-fixed-table td {
  height: 54px;
  max-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--zoe-border);
  font-size: 13px;
  color: var(--zoe-text);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   6. MOBILE QUICK LAUNCHER, CARDS & BOTTOM NAV
   ========================================================================== */
.zoe-quick-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--zoe-surface);
  border: 1px solid var(--zoe-border);
  border-radius: 10px;
  padding: 10px 8px;
  margin-bottom: 14px;
}

.zoe-quick-btn {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--zoe-text);
}

.zoe-quick-btn:active {
  background: var(--zoe-surface-alt);
}

.zoe-quick-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--zoe-surface-alt);
  border: 1px solid var(--zoe-border);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.zoe-quick-btn.is-active .zoe-quick-icon-box {
  background: var(--zoe-primary);
  border-color: var(--zoe-primary);
  color: #ffffff;
}

.zoe-quick-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--zoe-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.zoe-mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.zoe-mobile-item-card {
  background: var(--zoe-surface-alt);
  border: 1px solid var(--zoe-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.zoe-mobile-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--zoe-surface);
  border: 1px solid var(--zoe-border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.zoe-mobile-metric-cell {
  min-width: 0;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zoe-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--zoe-surface);
  border-top: 1px solid var(--zoe-border);
  z-index: 45;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.zoe-bottom-nav-item {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--zoe-text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.zoe-bottom-nav-item.is-active {
  color: var(--zoe-primary);
  font-weight: 600;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES (3-State Reflow: Desktop, Tablet, Real Phone)
   ========================================================================== */
@media (max-width: 1199px) {
  .zoe-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .zoe-topbar {
    position: sticky;
    top: 0;
    height: auto;
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    display: block;
  }

  .zoe-topbar-desktop,
  .zoe-brand-box,
  .zoe-sidebar,
  .zoe-desktop-only-preview-exit {
    display: none !important;
  }

  .zoe-topbar-mobile {
    display: block !important;
  }

  .zoe-main {
    padding-top: 0 !important;
  }

  .zoe-main.with-sidebar-expanded,
  .zoe-main.with-sidebar-collapsed {
    margin-left: 0 !important;
  }

  .zoe-container {
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .zoe-section-header,
  .zoe-filter-bar {
    padding: 12px 14px;
  }

  .zoe-filter-pill {
    min-height: 44px;
  }

  .zoe-action-btn {
    min-height: 44px;
  }

  .zoe-desktop-view {
    display: none !important;
  }

  .zoe-mobile-view {
    display: block !important;
  }

  .zoe-mobile-view.zoe-mobile-card-list {
    display: flex !important;
  }

  .zoe-bottom-nav {
    display: grid !important;
  }

  .zoe-metric-card {
    height: 98px;
    padding: 12px 14px;
  }

  .zoe-metric-value {
    font-size: 16px;
  }

  .zoe-metric-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Tablet Middle Band (640px - 959px): 7-column quick bar & 2-column card grid */
@media (min-width: 640px) and (max-width: 959px) {
  body:not([data-view-mode="mobile"]) .zoe-quick-menu {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  body:not([data-view-mode="mobile"]) .zoe-mobile-view.zoe-mobile-card-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow Phone Safeguard (<= 360px) */
@media (max-width: 360px) {
  .zoe-summary-grid {
    gap: 8px;
  }

  .zoe-metric-card {
    padding: 10px 11px;
    height: 92px;
  }

  .zoe-metric-value {
    font-size: 14.5px;
  }

  .zoe-metric-sub {
    font-size: 11px;
  }
}

/* Desktop Mobile-Preview Frame (body[data-view-mode="mobile"]) */
body[data-view-mode="mobile"] .zoe-topbar {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 56px;
  display: block;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  left: auto;
  right: auto;
  border-left: 1px solid var(--zoe-border);
  border-right: 1px solid var(--zoe-border);
}

body[data-view-mode="mobile"] .zoe-topbar-desktop,
body[data-view-mode="mobile"] .zoe-brand-box,
body[data-view-mode="mobile"] .zoe-sidebar {
  display: none !important;
}

body[data-view-mode="mobile"] .zoe-topbar-mobile {
  display: block !important;
}

body[data-view-mode="mobile"] .zoe-main {
  padding-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 480px;
  border-left: 1px solid var(--zoe-border);
  border-right: 1px solid var(--zoe-border);
}

body[data-view-mode="mobile"] .zoe-bottom-nav {
  display: grid !important;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1px solid var(--zoe-border);
  border-right: 1px solid var(--zoe-border);
}

body[data-view-mode="mobile"] .zoe-mobile-menu-sheet {
  right: max(12px, calc(50vw - 228px));
}

body[data-view-mode="mobile"] .zoe-container {
  padding: 12px 12px 84px;
}

body[data-view-mode="mobile"] .zoe-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

body[data-view-mode="mobile"] .zoe-metric-card {
  height: 98px;
  padding: 12px 14px;
}

body[data-view-mode="mobile"] .zoe-metric-value {
  font-size: 16px;
}

body[data-view-mode="mobile"] .zoe-desktop-view {
  display: none !important;
}

body[data-view-mode="mobile"] .zoe-mobile-view {
  display: block !important;
}

body[data-view-mode="mobile"] .zoe-mobile-view.zoe-mobile-card-list {
  display: flex !important;
}
