/* 2026-11-20 — Compact SERVICES owner page on phones.
   Presentation only: all add, edit, delete, ordering and navigation handlers stay intact.
   Scope excludes storefront, client portals and other owner screens. */
body.cv-services-hub .tool-hero {
  overflow:visible !important;
  margin:0 0 4px !important;
  padding:4px 0 2px !important;
}
/* The + dropdown is an anchored popover, never an extra page row. */
body.cv-services-hub .cv-serv-titlebar {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  position:relative !important;
  gap:10px !important;
}
body.cv-services-hub .cv-serv-titlebar>div:first-child {
  flex:1 1 auto !important;
  min-width:0 !important;
  padding-right:0 !important;
}
body.cv-services-hub #cvAddMenu,
body.cv-services-hub #cvAddMenu[open] {
  display:block !important;
  position:relative !important;
  z-index:50 !important;
  flex:0 0 44px !important;
  width:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 !important;
}
body.cv-services-hub #cvAddMenu>summary {
  position:relative !important;
  inset:auto !important;
  width:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  font-size:28px !important;
}
body.cv-services-hub #cvAddMenu .cv-plus-actions {
  position:absolute !important;
  top:calc(100% + 6px) !important;
  right:0 !important;
  left:auto !important;
  z-index:51 !important;
  box-sizing:border-box !important;
  display:block !important;
  width:min(228px, calc(100vw - 28px)) !important;
  max-width:calc(100vw - 28px) !important;
  min-width:0 !important;
  padding:5px !important;
  margin:0 !important;
  box-shadow:0 10px 24px #000a !important;
}
body.cv-services-hub #cvAddMenu:not([open]) .cv-plus-actions {display:none !important;}
body.cv-services-hub #cvAddMenu .cv-plus-actions button {
  min-height:42px !important;
  margin:0 !important;
  padding:9px 11px !important;
  text-align:left !important;
  font-size:13px !important;
  line-height:1.2 !important;
}
/* Successful loads should not leave an empty loading/retry toolbar. */
body.cv-services-hub .cv-services-load-controls[hidden],
body.cv-services-hub #cvServiceRetry[hidden] {display:none !important;}
body.cv-services-hub .cv-services-load-controls {
  margin:3px 0 6px !important;
  padding:0 !important;
  min-height:0 !important;
}
body.cv-services-hub .cv-management-hub {margin:5px 0 10px !important;gap:7px !important;}
body.cv-services-hub .cv-hub-content>.fine {
  margin:4px 0 8px !important;
  font-size:12px !important;
  line-height:1.35 !important;
}
@media (max-width:699px) {
  body.cv-services-hub main.tool-shell {padding-top:6px !important;}
  body.cv-services-hub .cv-serv-titlebar h1 {margin:2px 0 3px !important;line-height:1.1 !important;}
  body.cv-services-hub .cv-serv-titlebar .subtle {
    max-width:none !important;
    margin:1px 0 0 !important;
    font-size:13px !important;
    line-height:1.3 !important;
  }
  body.cv-services-hub main.tool-shell>a.cv-previous-link {
    margin:4px 0 7px !important;
    padding:7px 11px !important;
    min-height:36px !important;
  }
  body.cv-services-hub .cv-setup-nav.cv-mini-links {
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    align-items:stretch !important;
    width:100% !important;
    gap:7px !important;
    margin:5px 0 7px !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.cv-services-hub .cv-setup-nav.cv-mini-links>a {
    display:flex !important;
    flex:none !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:39px !important;
    padding:7px 7px !important;
    margin:0 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    text-align:center !important;
    white-space:normal !important;
  }
  body.cv-services-hub .cv-hub-group>summary {
    min-height:44px !important;
    padding:8px 12px !important;
    font-size:15px !important;
  }
  body.cv-services-hub .cv-hub-content {padding:5px 8px 9px !important;}
  body.cv-services-hub #newServiceList {gap:6px !important;}
  body.cv-services-hub #newServiceList>.item {
    min-height:0 !important;
    padding:8px 9px !important;
    gap:5px 7px !important;
    margin:0 !important;
  }
  body.cv-services-hub #newServiceList>.item>strong {line-height:1.2 !important;}
  body.cv-services-hub #newServiceList>.item>small {line-height:1.3 !important;}
}
