/* Desktop command shell */
:root {
  --dcs-panel: rgba(8, 15, 30, 0.92);
  --dcs-panel-soft: rgba(15, 23, 42, 0.78);
  --dcs-panel-strong: rgba(2, 6, 23, 0.96);
  --dcs-stroke: rgba(148, 163, 184, 0.16);
  --dcs-stroke-strong: rgba(34, 211, 238, 0.26);
  --dcs-text: #f8fafc;
  --dcs-muted: #94a3b8;
  --dcs-cyan: #22d3ee;
  --dcs-shadow: 0 22px 48px rgba(2, 6, 23, 0.34);
}

.desktop-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 18px 24px 92px;
  box-sizing: border-box;
}

.desktop-shell-header {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.desktop-shell-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--dcs-stroke);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  box-shadow: var(--dcs-shadow);
}

.desktop-shell-brand {
  display: grid;
  gap: 3px;
  min-width: 240px;
}

.desktop-shell-kicker {
  color: #a5f3fc;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

.desktop-shell-title {
  color: var(--dcs-text);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.desktop-shell-copy {
  color: var(--dcs-muted);
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 760px;
}

.desktop-shell-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.desktop-shell-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid var(--dcs-stroke);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.desktop-shell-chip strong {
  color: var(--dcs-text);
  font-size: 13px;
}


.desktop-shell-nav-memory {
  text-decoration: none;
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(8, 15, 30, 0.9);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.desktop-shell-nav-memory:hover,
.desktop-shell-nav-memory:focus-visible {
  border-color: rgba(34, 211, 238, 0.38);
  color: #ecfeff;
  transform: translateY(-1px);
  outline: none;
}

.desktop-shell-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--dcs-stroke);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.desktop-shell-nav-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.desktop-shell-nav-link:hover,
.desktop-shell-nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
}

.desktop-shell-nav-link.is-current {
  border-color: var(--dcs-stroke-strong);
  background: rgba(34, 211, 238, 0.16);
  color: #ecfeff;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.desktop-shell-nav-meta {
  color: #7dd3fc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.desktop-shell-panel {
  border-radius: 22px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.9));
  box-shadow: var(--dcs-shadow);
}

.planner-shell-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--dcs-stroke);
  background: rgba(2, 6, 23, 0.84);
  box-shadow: var(--dcs-shadow);
}

.planner-shell-utility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 10px;
}

.planner-shell-utility-row.is-compact {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.planner-shell-utility-card {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--dcs-stroke);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

.planner-shell-utility-card strong {
  color: var(--dcs-text);
  font-size: 16px;
  line-height: 1;
}

.planner-shell-utility-card span {
  color: var(--dcs-muted);
  font-size: 11px;
  line-height: 1.4;
}

.planner-shell-utility-label {
  color: #a5f3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.planner-shell-utility-copy {
  color: var(--dcs-muted);
  font-size: 11px;
  line-height: 1.45;
}

.planner-shell-utility-card.is-action-card {
  align-content: start;
}

.planner-shell-utility-card.is-action-card .desktop-shell-inline-tools {
  margin-top: 4px;
}

.desktop-shell-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.desktop-shell-inline-tools a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.76);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.desktop-shell-inline-tools a:hover,
.desktop-shell-inline-tools a:focus-visible {
  border-color: rgba(34, 211, 238, 0.28);
  color: #f8fafc;
}


.desktop-shell-empty-state {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 211, 238, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 15, 30, 0.9));
  color: #e2e8f0;
}

.desktop-shell-empty-eyebrow {
  color: #a5f3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desktop-shell-empty-title {
  color: var(--dcs-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.desktop-shell-empty-copy {
  color: var(--dcs-muted);
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 720px;
}

.desktop-shell-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-shell-empty-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.desktop-shell-empty-actions a:hover,
.desktop-shell-empty-actions a:focus-visible {
  border-color: rgba(34, 211, 238, 0.28);
  color: #f8fafc;
  transform: translateY(-1px);
  outline: none;
}

.desktop-shell-empty-state.is-error {
  border-color: rgba(248, 113, 113, 0.24);
}

@media (max-width: 980px) {
  .desktop-shell {
    padding: 16px 14px 96px;
  }
  .planner-shell-utility-row,
  .planner-shell-utility-row.is-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .desktop-shell-toolbar {
    padding: 14px;
  }
  .desktop-shell-context {
    justify-content: flex-start;
  }
  .desktop-shell-nav {
    padding: 8px;
  }
  .desktop-shell-nav-link {
    flex: 1 1 180px;
    justify-content: space-between;
  }
}




/* Pass 240: keep desktop nav reachable instead of clipping wide shell routes */
.desktop-shell-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}

.desktop-shell-nav-link {
  flex: 0 0 auto;
}
@media (min-width: 900px) {
  .desktop-shell-nav {
    flex-wrap: nowrap;
  }
}


/* Application-shell upgrade (desktop-first, progressive enhancement) */
html.desktop-shell-lock,
body.desktop-shell-lock {
  height: 100%;
  overflow: hidden;
}

body.desktop-shell-lock {
  padding-bottom: 0 !important;
}

.desktop-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 16px 18px;
}

.desktop-app-frame {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: calc(100dvh - 28px);
  height: calc(100dvh - 28px);
  border-radius: 24px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(8, 15, 30, 0.96));
  box-shadow: var(--dcs-shadow);
  overflow: hidden;
}

.desktop-app-rail {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.98), rgba(2, 6, 23, 0.96));
  overflow-y: auto;
}

.desktop-app-rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.76);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.desktop-app-rail-toggle:hover,
.desktop-app-rail-toggle:focus-visible {
  border-color: rgba(34, 211, 238, 0.28);
  color: #f8fafc;
}

.desktop-app-frame[data-rail-collapsed="1"] {
  grid-template-columns: 88px minmax(0, 1fr);
}

.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-copy,
.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-nav-meta,
.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-chip span,
.desktop-app-frame[data-rail-collapsed="1"] .planner-shell-utility-card span,
.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-inline-tools,
.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-kicker {
  display: none;
}

.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-title {
  font-size: 15px;
  line-height: 1.2;
}

.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-chip,
.desktop-app-frame[data-rail-collapsed="1"] .desktop-shell-nav-link,
.desktop-app-frame[data-rail-collapsed="1"] .planner-shell-utility-card {
  justify-content: center;
  text-align: center;
  padding-inline: 8px;
}

.desktop-app-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.78));
}

.desktop-app-mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dcs-stroke);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.desktop-app-mainbar:empty {
  display: none;
}

.desktop-app-mainbar .command-topbar,
.desktop-app-mainbar .top-controls,
.desktop-app-mainbar .goal-toolbar,
.desktop-app-mainbar .week-nav,
.desktop-app-mainbar .compass-command-bar,
.desktop-app-mainbar .desktop-shell-incident-topbar,
.desktop-app-mainbar .compliance-surface-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.desktop-app-mainbar .week-nav {
  position: static;
  top: auto;
  z-index: auto;
}
.desktop-app-mainbar .manual-warning-topbar,
.desktop-app-mainbar .audit-warning-topbar,
.desktop-app-mainbar .warning-record-topbar,
.desktop-app-mainbar .daily-review-topbar,
.desktop-app-mainbar .performance-alerts-topbar,
.desktop-app-mainbar .checkout-cancel-topbar,
.desktop-app-mainbar .billing-sandbox-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-mainbar .daily-review-topbar {
  align-items: center;
}


.desktop-app-scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.desktop-app-enhanced .command-wrap,
.desktop-app-enhanced .log-container,
.desktop-app-enhanced .goals-shell-root,
.desktop-app-enhanced .weekly-strategy-shell-root,
.desktop-app-enhanced .compass-shell-root,
.desktop-app-enhanced .board-container,
.desktop-app-enhanced .strategy-shell,
.desktop-app-enhanced .compass-shell,
.desktop-app-enhanced .desktop-shell-incident-center-shell,
.desktop-app-enhanced .desktop-shell-incidents-board-shell,
.desktop-app-enhanced .desktop-shell-incident-report-shell,
.desktop-app-enhanced .compliance-shell {
  max-width: none;
  margin: 0;
  padding: 0;
}

.desktop-app-enhanced .desktop-shell-header {
  margin: 0;
}
.desktop-app-enhanced .warning-shell-root,
.desktop-app-enhanced .warning-flow-shell-root,
.desktop-app-enhanced .warning-record-shell,
.desktop-app-enhanced .daily-review-shell-root,
.desktop-app-enhanced .performance-alerts-shell-root,
.desktop-app-enhanced .checkout-cancel-shell-root,
.desktop-app-enhanced .billing-sandbox-shell-root {
  max-width: none;
  margin: 0;
  padding: 0;
}

.desktop-app-enhanced .warning-record-shell {
  border-radius: 0;
}


.desktop-app-enhanced .desktop-app-rail .desktop-shell-toolbar {
  display: grid;
  gap: 12px;
  justify-content: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .desktop-app-rail .desktop-shell-context {
  display: grid;
  justify-content: stretch;
  gap: 8px;
}

.desktop-app-enhanced .desktop-app-rail .desktop-shell-chip {
  width: 100%;
  justify-content: space-between;
}

.desktop-app-enhanced .desktop-app-rail .desktop-shell-nav {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .desktop-app-rail .desktop-shell-nav-link {
  width: 100%;
  justify-content: space-between;
}

.desktop-app-enhanced .desktop-app-rail .planner-shell-utility-row {
  grid-template-columns: 1fr;
  padding: 0;
}

.desktop-app-enhanced .desktop-app-rail .planner-shell-utility-card {
  background: rgba(15, 23, 42, 0.62);
}

.desktop-app-enhanced .planner-shell-frame {
  border-radius: 22px;
}

.desktop-app-enhanced.desktop-shell-planner .planner-shell-frame {
  min-height: calc(100dvh - 180px);
}

.desktop-app-enhanced .status-banner {
  margin-top: 0;
}

.desktop-app-enhanced .hero,
.desktop-app-enhanced .hero-shell,
.desktop-app-enhanced .grid-container,
.desktop-app-enhanced .hub-grid,
.desktop-app-enhanced .log-grid,
.desktop-app-enhanced .summary-strip,
.desktop-app-enhanced .compass-hero,
.desktop-app-enhanced .compass-workspace,
.desktop-app-enhanced .compass-board {
  margin-top: 0;
}

@media (max-width: 1180px) {
  html.desktop-shell-lock,
  body.desktop-shell-lock {
    overflow: auto;
  }

  .desktop-shell {
    padding: 12px 12px 16px;
  }

  .desktop-app-frame {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .desktop-app-frame[data-rail-collapsed="1"] {
    grid-template-columns: 1fr;
  }

  .desktop-app-rail {
    border-right: 0;
    border-bottom: 1px solid var(--dcs-stroke);
    overflow: visible;
  }

  .desktop-app-main {
    overflow: visible;
  }

  .desktop-app-scroller {
    overflow: visible;
    padding: 16px;
  }

  .desktop-app-enhanced.desktop-shell-planner .planner-shell-frame {
    min-height: 0;
  }
}


.desktop-shell-inline-tools form {
  margin: 0;
}

.desktop-shell-inline-tools button,
.desktop-shell-inline-tools .desktop-shell-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.76);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.desktop-shell-inline-tools button:hover,
.desktop-shell-inline-tools button:focus-visible,
.desktop-shell-inline-tools .desktop-shell-action:hover,
.desktop-shell-inline-tools .desktop-shell-action:focus-visible {
  border-color: rgba(34, 211, 238, 0.28);
  color: #f8fafc;
}


/* Pass 208: recover full desktop width for shell-enhanced pages that were still inheriting mobile-width wrappers */
@media (min-width: 1181px) {
  .desktop-app-enhanced :is(
    .command-wrap,
    .log-container,
    .goals-shell-root,
    .weekly-strategy-shell-root,
    .board-shell-root,
    .compass-shell-root,
    .compliance-shell,
    .desktop-shell-incident-center-shell,
    .desktop-shell-incidents-board-shell,
    .desktop-shell-incident-report-shell,
    .warning-shell-root,
    .warning-flow-shell-root,
    .warning-record-shell,
    .daily-review-shell-root,
    .performance-alerts-shell-root,
    .disciplinary-shell-root,
    .leadersboard-shell-root,
    .internal-tools-shell-root,
    .owner-locations-shell-root,
    .location-entry-shell-root,
    .access-launch-shell-root,
    .billing-portal-shell-root,
    .sales-shell-root,
    .billing-admin-shell-root,
    .cancel-plan-shell-root,
    .renew-shell-root,
    .subscription-required-shell-root,
    .billing-sandbox-shell-root,
    .ai-credits-shell-root,
    .ai-credit-live-shell-root,
    .ai-credit-activation-shell-root,
    .page-audit-center,
    .page-floor-audit,
    .page-weekly-report,
    .page-performance-alerts,
    .page-incident-report,
    .page-compliance-dashboard,
    .page-disciplinary-log,
    .page-manual-warning,
    .page-audit-records,
    .page-incidents,
    .alerts-wrap,
    .incident-wrap,
    .audit-container,
    .support-wrap,
    .guide-wrapper,
    .page-shell
  ) {
    width: min(100%, 1400px) !important;
    max-width: min(100%, 1400px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .desktop-app-enhanced .desktop-app-scroller > :is(
    .audit-family-hero,
    .audit-family-section,
    .documentation-entry-bridge,
    .incident-flow-hero,
    .incident-bridge-card,
    .incident-card,
    .incident-rail-card,
    .review-hero,
    .review-shell,
    .archive-hero,
    .archive-shell,
    .compliance-hero,
    .compliance-shell,
    .disciplinary-log-shell,
    .performance-alerts-shell
  ) {
    width: 100%;
    max-width: none;
  }
}

/* Live operations desktop shell continuity */
.desktop-shell-open-checks,
.desktop-shell-pos-orders,
.desktop-shell-sales-today,
.desktop-shell-on-the-clock {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.desktop-shell-open-checks .desktop-shell-header,
.desktop-shell-pos-orders .desktop-shell-header,
.desktop-shell-sales-today .desktop-shell-header,
.desktop-shell-on-the-clock .desktop-shell-header {
  margin-bottom: 16px;
}

.desktop-shell-open-checks .planner-shell-utility-row,
.desktop-shell-pos-orders .planner-shell-utility-row,
.desktop-shell-sales-today .planner-shell-utility-row,
.desktop-shell-on-the-clock .planner-shell-utility-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-app-mainbar .live-ops-topbar {
  margin: 0;
  border-radius: 22px;
}

.desktop-app-enhanced.desktop-shell-open-checks .live-ops-lane,
.desktop-app-enhanced.desktop-shell-pos-orders .live-ops-lane,
.desktop-app-enhanced.desktop-shell-sales-today .live-ops-lane,
.desktop-app-enhanced.desktop-shell-on-the-clock .live-ops-lane,
.desktop-app-enhanced.desktop-shell-open-checks .live-ops-back-link,
.desktop-app-enhanced.desktop-shell-pos-orders .live-ops-back-link,
.desktop-app-enhanced.desktop-shell-sales-today .live-ops-back-link,
.desktop-app-enhanced.desktop-shell-on-the-clock .live-ops-back-link {
  display: none;
}

.desktop-app-enhanced.desktop-shell-open-checks .live-ops-status,
.desktop-app-enhanced.desktop-shell-pos-orders .live-ops-status,
.desktop-app-enhanced.desktop-shell-sales-today .live-ops-status,
.desktop-app-enhanced.desktop-shell-on-the-clock .live-ops-status,
.desktop-app-enhanced.desktop-shell-open-checks .live-ops-table-card,
.desktop-app-enhanced.desktop-shell-pos-orders .live-ops-table-card,
.desktop-app-enhanced.desktop-shell-sales-today .live-ops-table-card,
.desktop-app-enhanced.desktop-shell-on-the-clock .empty,
.desktop-app-enhanced.desktop-shell-on-the-clock .row {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1180px) {
  .desktop-shell-open-checks .planner-shell-utility-row,
  .desktop-shell-pos-orders .planner-shell-utility-row,
  .desktop-shell-sales-today .planner-shell-utility-row,
  .desktop-shell-on-the-clock .planner-shell-utility-row {
    grid-template-columns: 1fr;
  }
}


/* People and performance desktop shell continuity */
.desktop-shell-disciplinary-log,
.desktop-shell-leadersboard {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.desktop-shell-disciplinary-log .desktop-shell-header,
.desktop-shell-leadersboard .desktop-shell-header {
  margin-bottom: 16px;
}

.desktop-shell-disciplinary-log .planner-shell-utility-row,
.desktop-shell-leadersboard .planner-shell-utility-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-app-mainbar .disciplinary-log-header,
.desktop-app-mainbar .leaderboard-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .disciplinary-shell-root,
.desktop-app-enhanced .leadersboard-shell-root {
  max-width: none;
  margin: 0;
  padding: 0;
}

.desktop-app-enhanced.desktop-shell-disciplinary-log .disciplinary-log-route-grid,
.desktop-app-enhanced.desktop-shell-disciplinary-log .disciplinary-log-controls {
  margin-top: 0;
}

.desktop-app-enhanced.desktop-shell-leadersboard .leaderboard-secondary-grid {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .desktop-shell-disciplinary-log .planner-shell-utility-row,
  .desktop-shell-leadersboard .planner-shell-utility-row {
    grid-template-columns: 1fr;
  }
}


/* Pass 49 desktop continuity sweep */
.desktop-app-rail-toggle {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.desktop-app-scroller {
  scrollbar-gutter: stable both-edges;
  scroll-padding-top: 24px;
}

@media (min-width: 1181px) {
  .desktop-app-mainbar {
    padding: 10px 14px;
  }

  .desktop-app-enhanced .desktop-app-scroller > .hero,
  .desktop-app-enhanced .desktop-app-scroller > .hero-shell,
  .desktop-app-enhanced .desktop-app-scroller > .page-hero,
  .desktop-app-enhanced .desktop-app-scroller > .review-hero,
  .desktop-app-enhanced .desktop-app-scroller > .alerts-hero,
  .desktop-app-enhanced .desktop-app-scroller > .live-ops-status,
  .desktop-app-enhanced .desktop-app-scroller > .status-banner {
    margin-bottom: 14px;
  }

  .desktop-app-enhanced .desktop-app-scroller :is(.summary-strip, .goal-focus-grid, .alerts-summary-grid, .review-grid, .sales-grid, .live-ops-grid, .board-grid, .compass-grid, .hero-summary-row, .signal-strip) {
    gap: 12px;
  }

  .desktop-app-enhanced .desktop-app-scroller table {
    font-size: 13px;
  }

  .desktop-app-enhanced .desktop-app-scroller th,
  .desktop-app-enhanced .desktop-app-scroller td {
    padding: 9px 10px;
    vertical-align: top;
  }

  .desktop-app-enhanced .desktop-app-scroller :is(input, select, textarea) {
    font-size: 13px;
  }
}


.desktop-shell-goals-board,
.desktop-shell-settings,
.desktop-shell-integrations {
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-shell-goals-board .board-shell-root,
.desktop-shell-settings .settings-shell-root,
.desktop-shell-integrations .integrations-shell-root {
  width: 100%;
  box-sizing: border-box;
}

.desktop-shell-goals-board .desktop-shell-header,
.desktop-shell-settings .desktop-shell-header,
.desktop-shell-integrations .desktop-shell-header {
  margin-bottom: 14px;
}

.goals-board-topbar,
.settings-topbar,
.integrations-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.goals-board-topbar-group,
.settings-topbar-group,
.integrations-topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.goals-board-topbar-label,
.settings-topbar-label,
.integrations-topbar-label {
  color: var(--dcs-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.goals-board-topbar .add-task-btn,
.settings-topbar a,
.integrations-topbar a,
.goals-board-topbar a {
  text-decoration: none;
}

.goals-board-mini-pill,
.settings-mini-pill,
.integrations-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.goals-board-mini-pill span,
.settings-mini-pill span,
.integrations-mini-pill span {
  color: var(--dcs-muted);
}

.desktop-shell-goals-board .board-container,
.desktop-shell-settings .settings-container,
.desktop-shell-integrations .integrations-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.desktop-shell-goals-board .board-container {
  padding: 0;
}

.desktop-shell-goals-board .board-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
}

.desktop-shell-goals-board .group-section,
.desktop-shell-settings .card,
.desktop-shell-integrations .card {
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.desktop-shell-goals-board .goal-table th,
.desktop-shell-goals-board .goal-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.desktop-shell-settings .settings-shell-root,
.desktop-shell-integrations .integrations-shell-root {
  display: grid;
  gap: 14px;
}

.desktop-shell-settings .settings-container {
  padding: 0;
}

.desktop-shell-integrations.app-viewport {
  max-width: none;
  padding: 0;
  min-height: auto;
}

.desktop-shell-integrations.app-viewport {
  max-width: none !important;
  width: 100% !important;
}

.desktop-app-enhanced .desktop-app-main,
.desktop-app-enhanced .desktop-app-mainbar,
.desktop-app-enhanced .desktop-app-scroller {
  width: 100%;
  max-width: none;
}

.desktop-app-enhanced .integrations-shell-root,
.desktop-app-enhanced .integrations-shell {
  width: 100%;
  max-width: none !important;
}

.integrations-topbar .btn {
  min-height: 36px;
}

.owner-locations-topbar-group--hint {
  flex: 1 1 280px;
  justify-content: flex-end;
}

.owner-locations-topbar-hint {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
  text-align: right;
  max-width: 420px;
}

.desktop-app-mainbar .owner-locations-topbar-group--hint {
  justify-content: flex-start;
}

.desktop-app-mainbar .owner-locations-topbar-hint {
  text-align: left;
  max-width: none;
}

.integrations-state-card {
  align-items: start;
}

.integrations-state-title {
  margin-bottom: 8px;
}

.desktop-shell-integrations .integrations-shell {
  gap: 14px;
}

.desktop-shell-integrations .integrations-route-grid,
.desktop-shell-settings .settings-route-grid,
.desktop-shell-settings .settings-stat-grid,
.desktop-shell-settings .owner-control-lane-grid,
.desktop-shell-settings .owner-control-launch-grid {
  align-items: stretch;
}

@media (max-width: 1180px) {
  .goals-board-topbar,
  .settings-topbar,
  .integrations-topbar {
    padding: 10px 12px;
    border-radius: 16px;
  }
}


@media (max-width: 1180px) {
  .desktop-shell-ai-incidents .desktop-shell-header,
  .desktop-shell-ai-incidents .desktop-shell-incident-topbar,
  .desktop-shell-settings .desktop-shell-header,
  .desktop-shell-settings .settings-topbar {
    display: none;
  }

  .desktop-shell-ai-incidents .desktop-shell-incident-center-shell,
  .desktop-shell-settings .settings-shell-root {
    gap: 0;
  }
}



/* Access and support recovery shell continuity */
.desktop-shell-support-recovery.support-wrap {
  width: min(1280px, calc(100% - 20px)) !important;
  max-width: none !important;
}

.desktop-shell-support-recovery .support-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.desktop-shell-support-recovery .support-card-main,
.desktop-shell-support-recovery .support-rail {
  min-width: 0;
}

.desktop-shell-support-recovery .support-card-side .support-panel-title {
  font-size: 16px;
}

.desktop-shell-auth-access.he-auth-entry {
  width: min(100%, 820px) !important;
  max-width: 820px !important;
}

.desktop-shell-auth-access .login-wrapper,
.desktop-shell-auth-access .register-wrapper {
  max-width: 620px !important;
}

.desktop-shell-auth-access .auth-support-note {
  text-align: left;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.desktop-shell-auth-access .auth-footer-secondary {
  margin-top: 14px;
}

.desktop-shell-auth-access .auth-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-left: 6px;
}

.desktop-shell-auth-access .auth-footer-links a {
  color: #cbd5e1;
  font-weight: 800;
}

.desktop-shell-auth-access .auth-support-note a {
  color: #67e8f9;
  font-weight: 800;
}

.desktop-shell-auth-access .auth-exit-lane {
  margin-top: 18px;
  max-width: 560px;
  margin-inline: auto;
}

.desktop-shell-auth-access .auth-exit-copy {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.desktop-shell-auth-access .auth-exit-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.desktop-shell-auth-access .auth-exit-links-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-shell-auth-access .auth-exit-links .btn-outline {
  margin: 0;
}

.desktop-shell-auth-access .auth-exit-links a {
  color: #cbd5e1;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .desktop-shell-support-recovery .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .desktop-shell-auth-access.he-auth-entry {
    width: 100% !important;
    max-width: none !important;
  }

  .desktop-shell-auth-access .auth-footer-links {
    display: flex;
    margin: 8px 0 0;
  }


  .desktop-shell-auth-access .auth-exit-links,
  .desktop-shell-auth-access .auth-exit-links-compact {
    grid-template-columns: 1fr;
  }
}

/* Owner-control and billing desktop shell continuity */
.desktop-shell-owner-locations,
.desktop-shell-billing-portal,
.desktop-shell-owner-sales,
.desktop-shell-billing-admin,
.desktop-shell-cancel-plan,
.desktop-shell-billing-renew {
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-shell-subscription-required,
.desktop-shell-checkout-cancel {
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-shell-subscription-required .subscription-required-shell-root,
.desktop-shell-checkout-cancel .checkout-cancel-shell-root {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.desktop-shell-subscription-required .desktop-shell-header,
.desktop-shell-checkout-cancel .desktop-shell-header {
  margin-bottom: 14px;
}

.desktop-shell-subscription-required .subscription-required-page,
.desktop-shell-checkout-cancel .checkout-cancel-page {
  width: 100%;
  max-width: none;
}

.desktop-shell-subscription-required .subscription-required-panel,
.desktop-shell-checkout-cancel :is(.checkout-cancel-panel, .checkout-cancel-card) {
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.desktop-shell-owner-locations.owner-locations-shell-root,
.desktop-shell-billing-portal.billing-portal-shell-root,
.desktop-shell-owner-sales.sales-shell-root,
.desktop-shell-billing-admin.billing-admin-shell-root,
.desktop-shell-cancel-plan.cancel-plan-shell-root,
.desktop-shell-billing-renew.renew-shell-root,
.desktop-shell-owner-locations .owner-locations-shell-root,
.desktop-shell-billing-portal .billing-portal-shell-root,
.desktop-shell-owner-sales .sales-shell-root,
.desktop-shell-billing-admin .billing-admin-shell-root,
.desktop-shell-cancel-plan .cancel-plan-shell-root,
.desktop-shell-billing-renew .renew-shell-root {
  display: grid;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.desktop-shell-owner-locations .desktop-shell-header,
.desktop-shell-billing-portal .desktop-shell-header,
.desktop-shell-owner-sales .desktop-shell-header,
.desktop-shell-billing-admin .desktop-shell-header,
.desktop-shell-cancel-plan .desktop-shell-header,
.desktop-shell-billing-renew .desktop-shell-header {
  margin-bottom: 14px;
}

.owner-locations-topbar,
.billing-portal-topbar,
.sales-topbar,
.billing-admin-topbar,
.cancel-plan-topbar,
.desktop-shell-billing-renew .billing-sales-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.owner-locations-topbar-group,
.billing-portal-topbar-group,
.sales-topbar-group,
.billing-admin-topbar-group,
.cancel-plan-topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.owner-locations-topbar-label,
.billing-portal-topbar-label,
.sales-topbar-label,
.billing-admin-topbar-label,
.cancel-plan-topbar-label {
  color: var(--dcs-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.owner-locations-mini-pill,
.billing-portal-mini-pill,
.sales-mini-pill,
.billing-admin-mini-pill,
.cancel-plan-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.owner-locations-mini-pill span,
.billing-portal-mini-pill span,
.sales-mini-pill span,
.billing-admin-mini-pill span,
.cancel-plan-mini-pill span {
  color: var(--dcs-muted);
}

.desktop-app-mainbar .owner-locations-topbar,
.desktop-app-mainbar .billing-portal-topbar,
.desktop-app-mainbar .sales-topbar,
.desktop-app-mainbar .billing-admin-topbar,
.desktop-app-mainbar .cancel-plan-topbar,
.desktop-app-mainbar .billing-sales-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .owner-locations-shell-root,
.desktop-app-enhanced .billing-portal-shell-root,
.desktop-app-enhanced .sales-shell-root,
.desktop-app-enhanced .billing-admin-shell-root,
.desktop-app-enhanced .cancel-plan-shell-root,
.desktop-app-enhanced .renew-shell-root,
.desktop-app-enhanced .billing-sales-shell-wrap,
.desktop-app-enhanced .billing-portal-shell-wrap,
.desktop-app-enhanced .billing-admin-shell-wrap,
.desktop-app-enhanced .cancel-plan-shell-wrap,
.desktop-app-enhanced .owner-locations-page,
.desktop-app-enhanced .owner-locations-page .container {
  max-width: none;
  margin: 0;
}

.desktop-app-enhanced .billing-sales-shell-wrap,
.desktop-app-enhanced .billing-portal-shell-wrap,
.desktop-app-enhanced .billing-admin-shell-wrap,
.desktop-app-enhanced .cancel-plan-shell-wrap,
.desktop-app-enhanced .owner-locations-page .container {
  padding: 0;
}

.desktop-shell-owner-locations .owner-locations-page,
.desktop-shell-owner-locations .owner-locations-page .container,
.desktop-shell-billing-portal .billing-portal-shell-wrap,
.desktop-shell-owner-sales .billing-sales-shell-wrap,
.desktop-shell-billing-admin .billing-admin-shell-wrap,
.desktop-shell-cancel-plan .cancel-plan-shell-wrap,
.desktop-shell-billing-renew .billing-sales-shell-wrap {
  width: 100%;
  max-width: none;
}

.desktop-shell-owner-locations .card,
.desktop-shell-billing-portal .billing-portal-panel,
.desktop-shell-billing-portal .billing-portal-state,
.desktop-shell-billing-portal .billing-portal-message,
.desktop-shell-billing-admin :is(.billing-admin-panel, .billing-admin-state, .billing-admin-message, .billing-admin-validation, .billing-admin-decision-card, .billing-admin-support-note),
.desktop-shell-cancel-plan :is(.cancel-plan-panel, .cancel-plan-state, .cancel-plan-message, .cancel-plan-process-card),
.desktop-shell-owner-sales :is(.billing-sales-hero, .billing-sales-message, .billing-sales-metric-card, .billing-sales-plan-card, .billing-sales-credit-card, .billing-sales-help-card, .billing-sales-summary-card, .billing-sales-activation-panel, .billing-sales-route-card),
.desktop-shell-billing-renew :is(.billing-sales-hero, .billing-sales-message, .billing-sales-metric-card, .billing-sales-plan-card, .billing-sales-credit-card, .billing-sales-help-card, .billing-sales-summary-card, .billing-sales-activation-panel) {
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.desktop-shell-owner-locations .page-header,
.desktop-shell-owner-locations .card-head,
.desktop-shell-owner-locations .slot-header {
  gap: 12px;
}

@media (max-width: 1180px) {
  .owner-locations-topbar,
  .billing-portal-topbar,
  .sales-topbar,
  .billing-admin-topbar,
  .cancel-plan-topbar,
  .desktop-shell-billing-renew .billing-sales-topbar {
    padding: 10px 12px;
    border-radius: 16px;
  }
}


/* Location entry / start-code desktop shell continuity */
.desktop-shell-location-entry {
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-shell-location-entry.location-entry-shell-root,
.desktop-shell-location-entry .location-entry-shell-root {
  display: grid;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.desktop-shell-location-entry .desktop-shell-header {
  margin-bottom: 14px;
}

.desktop-shell-location-entry .location-entry-page {
  gap: 18px;
}

.desktop-shell-location-entry .location-entry-form-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: start;
}

.desktop-shell-location-entry .location-entry-panel,
.desktop-shell-location-entry .location-entry-workspace {
  min-width: 0;
}

.desktop-shell-location-entry .location-entry-workspace {
  align-content: start;
}

.desktop-shell-location-entry .location-entry-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.desktop-shell-location-entry .location-entry-footer-links .location-entry-link {
  min-width: 156px;
  justify-content: center;
}

.desktop-shell-location-entry .location-entry-side-card a {
  color: #67e8f9;
  font-weight: 800;
}

.location-entry-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.location-entry-topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.location-entry-topbar-label {
  color: var(--dcs-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.location-entry-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.location-entry-mini-pill span {
  color: var(--dcs-muted);
}

.desktop-app-mainbar .location-entry-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .location-entry-shell-root,
.desktop-app-enhanced .location-entry-page {
  max-width: none;
  margin: 0;
}

.desktop-app-enhanced .location-entry-page {
  padding: 0;
}

@media (max-width: 1180px) {
  .desktop-shell-location-entry .location-entry-form-grid {
    grid-template-columns: 1fr;
  }

  .location-entry-topbar {
    padding: 10px 12px;
    border-radius: 16px;
  }
}


.desktop-shell-ai-credits-required,
.desktop-shell-ai-credit-live,
.desktop-shell-ai-credit-activation {
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-shell-ai-credits-required.ai-credits-shell-root,
.desktop-shell-ai-credit-live.ai-credit-live-shell-root,
.desktop-shell-ai-credit-activation.ai-credit-activation-shell-root,
.desktop-shell-ai-credits-required .ai-credits-shell-root,
.desktop-shell-ai-credit-live .ai-credit-live-shell-root,
.desktop-shell-ai-credit-activation .ai-credit-activation-shell-root {
  display: grid;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.desktop-shell-ai-credits-required .desktop-shell-header,
.desktop-shell-ai-credit-live .desktop-shell-header,
.desktop-shell-ai-credit-activation .desktop-shell-header {
  margin-bottom: 14px;
}

.ai-credits-topbar,
.ai-credit-live-topbar,
.ai-credit-activation-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--dcs-stroke);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.ai-credits-topbar-group,
.ai-credit-live-topbar-group,
.ai-credit-activation-topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ai-credits-topbar-label,
.ai-credit-live-label,
.ai-credit-activation-label {
  color: var(--dcs-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ai-credits-mini-pill,
.ai-credit-live-pill,
.ai-credit-activation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.ai-credits-mini-pill span,
.ai-credit-live-pill span,
.ai-credit-activation-pill span {
  color: var(--dcs-muted);
}

.desktop-app-mainbar .ai-credits-topbar,
.desktop-app-mainbar .ai-credit-live-topbar,
.desktop-app-mainbar .ai-credit-activation-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-app-enhanced .ai-credits-shell-root,
.desktop-app-enhanced .ai-credit-live-shell-root,
.desktop-app-enhanced .ai-credit-activation-shell-root {
  max-width: none;
  margin: 0;
}

.desktop-shell-ai-credits-required :is(.ai-credits-panel, .ai-credits-flow-card, .ai-credits-support-card),
.desktop-shell-ai-credit-live :is(.ai-credit-live-panel, .ai-credit-live-card),
.desktop-shell-ai-credit-activation :is(.ai-credit-activation-panel, .ai-credit-activation-card) {
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

@media (max-width: 1180px) {
  .ai-credits-topbar,
  .ai-credit-live-topbar,
  .ai-credit-activation-topbar {
    padding: 10px 12px;
    border-radius: 16px;
  }
}


.desktop-shell-access-launch {
  min-height: 100vh;
}

.desktop-shell-access-launch.access-launch-shell-root,
.desktop-shell-access-launch .access-launch-shell-root {
  width: 100%;
}

.desktop-shell-access-launch .desktop-shell-header {
  margin-bottom: 18px;
}

.access-launch-topbar {
  width: 100%;
}

.desktop-app-mainbar .access-launch-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
}

.desktop-app-enhanced .access-launch-shell-root,
.desktop-app-enhanced .page-access-launch {
  min-height: calc(100vh - 120px);
}

.desktop-app-enhanced .page-access-launch {
  padding-bottom: 32px;
}

@media (max-width: 1180px) {
  .access-launch-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}


.desktop-shell-square-status {
  width: min(100%, 1600px);
}

.internal-tools-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
}

.internal-tools-topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.internal-tools-topbar-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.desktop-shell-square-status .internal-tools-hero-card {
  margin-top: 0;
}

@media (max-width: 980px) {
  .internal-tools-topbar {
    padding: 12px;
  }
}


/* === Pass 242: owner/admin shell flattening === */
.desktop-shell-integrations .integrations-shell-root,
.desktop-shell-billing-admin.billing-admin-shell-root {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.desktop-shell-integrations .integrations-shell-root,
.desktop-shell-billing-admin.billing-admin-shell-root,
.desktop-shell-settings .settings-shell-root {
  overflow: visible;
}

.desktop-shell-integrations .integrations-topbar,
.desktop-shell-billing-admin .billing-admin-topbar,
.desktop-shell-billing-admin .planner-shell-utility-row {
  display: none;
}

.desktop-shell-integrations .integrations-state-actions,
.desktop-shell-billing-admin .billing-admin-actions {
  align-items: stretch;
}


/* Pass 243 — keep owner billing follow-through shells wide and direct */
.desktop-shell-billing-portal .billing-portal-shell-wrap,
.desktop-shell-cancel-plan .cancel-plan-shell-wrap,
.desktop-shell-billing-renew .billing-sales-shell-wrap {
  width: 100%;
  max-width: none;
}
