/* 2026-11-11: iPad readable business management. Preserve header, data, and branding.
   Previous service-list grid forced 706px rows and 11px text, leaving the
   main editing interface tiny and horizontally scrollable on iPad. */
@media (pointer:coarse), (min-width:700px) and (max-width:1366px) {
  html{scroll-padding-top:90px}
  body.cv-services-hub .tool-shell,
  body.cv-library-page.cv-addon-editor-page .tool-shell{
    width:calc(100% - 28px)!important;
    max-width:1140px!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:18px clamp(12px,2.5vw,28px) 90px!important;
    margin-inline:auto!important;
  }
  body.cv-services-hub .tool-hero h1,
  body.cv-addon-editor-page .tool-hero h1{font-size:clamp(27px,3.5vw,36px)!important;line-height:1.18!important}
  body.cv-services-hub .tool-hero .subtle,
  body.cv-addon-editor-page .tool-hero .subtle,
  body.cv-addon-editor-page .tool-hero p{font-size:15px!important;line-height:1.5!important}
  body.cv-services-hub .cv-mini-links,
  body.cv-addon-editor-page .cv-setup-nav,
  body.cv-addon-editor-page .tool-nav{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.cv-services-hub .cv-mini-links a,
  body.cv-addon-editor-page .cv-setup-nav a,
  body.cv-addon-editor-page .tool-nav a{font-size:14px!important;min-height:44px!important;padding:11px 14px!important;white-space:normal!important}
  body.cv-services-hub .cv-hub-group>summary{min-height:53px!important;font-size:17px!important;padding:13px 15px!important}
  body.cv-services-hub .cv-hub-content{min-width:0!important;max-width:100%!important;overflow-x:clip!important;padding:9px 12px 13px!important}
  body.cv-services-hub #newServiceList{min-width:0!important;width:100%!important;overflow-x:visible!important}
  body.cv-services-hub #newServiceList>.item{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    align-items:center!important;
    gap:7px 12px!important;
    min-height:unset!important;
    margin:7px 0!important;
    padding:12px 14px!important;
    border-radius:12px!important;
  }
  body.cv-services-hub #newServiceList>.item>strong{
    grid-column:1!important;grid-row:1!important;
    font-size:16px!important;line-height:1.35!important;
    min-width:0!important;overflow-wrap:anywhere!important;
  }
  body.cv-services-hub #newServiceList>.item>small{
    grid-column:1!important;grid-row:2!important;
    font-size:14px!important;line-height:1.45!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.cv-services-hub #newServiceList>.item>.cv-service-actions{
    grid-column:2!important;grid-row:1/span 2!important;
    display:flex!important;align-items:center!important;
    gap:7px!important;flex-wrap:wrap!important;justify-content:flex-end!important;
  }
  body.cv-services-hub #newServiceList .cv-service-actions button,
  body.cv-services-hub #newServiceList .cv-service-actions .btn{
    min-width:70px!important;min-height:44px!important;
    padding:10px 12px!important;font-size:14px!important;
  }
  body.cv-services-hub #newServiceList .cv-service-order-controls{
    grid-column:1/-1!important;grid-row:3!important;
    display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;
    align-items:center!important;gap:8px!important;margin:4px 0 0!important;
    padding-top:8px!important;border-top:1px solid #2b5667!important;
  }
  body.cv-services-hub #newServiceList .cv-service-order-controls button,
  body.cv-services-hub #newServiceList .cv-service-order-position select{
    width:auto!important;min-width:44px!important;max-width:none!important;
    min-height:44px!important;padding:8px 10px!important;font-size:16px!important;
  }
  body.cv-services-hub #newServiceList .cv-service-order-position{font-size:14px!important;gap:7px!important}
  body.cv-services-hub #libraryAddonList>.item,
  body.cv-addon-editor-page #libraryAddonList>.item{
    display:flex!important;flex-wrap:wrap!important;
    min-width:0!important;gap:8px 12px!important;
    padding:13px!important;margin:8px 0!important;border-radius:11px!important;
  }
  body.cv-services-hub #libraryAddonList>.item>strong,
  body.cv-addon-editor-page #libraryAddonList>.item>strong{flex:1 1 100%!important;font-size:16px!important}
  body.cv-services-hub #libraryAddonList>.item>small,
  body.cv-addon-editor-page #libraryAddonList>.item>small{flex:1 1 100%!important;font-size:14px!important}
  body.cv-services-hub #libraryAddonList button,
  body.cv-addon-editor-page #libraryAddonList button{min-height:44px!important;font-size:14px!important;padding:9px 12px!important}
  body.cv-services-hub .cv-management-editor,
  body.cv-addon-editor-page .card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.cv-services-hub .cv-management-editor label,
  body.cv-addon-editor-page .field{font-size:15px!important;line-height:1.4!important}
  body.cv-services-hub .cv-management-editor input:not([type=checkbox]),
  body.cv-services-hub .cv-management-editor select,
  body.cv-services-hub .cv-management-editor textarea,
  body.cv-addon-editor-page .card input:not([type=checkbox]),
  body.cv-addon-editor-page .card select,
  body.cv-addon-editor-page .card textarea{
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
    min-height:46px!important;font-size:16px!important;
  }
  body.cv-addon-editor-page .tool-shell>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.cv-addon-editor-page .tool-shell .tool-grid,
  body.cv-addon-editor-page .tool-shell .tool-row{min-width:0!important;max-width:100%!important}
  body.cv-addon-editor-page .tool-shell .btn,
  body.cv-addon-editor-page .tool-shell button{min-height:44px;font-size:14px}
  body.cv-owner-client-manager-page .cv-cm-main{width:calc(100% - 24px)!important;max-width:1200px!important;min-width:0!important}
  body.cv-owner-client-manager-page .cv-hub-tab{font-size:15px!important;min-height:46px!important}
  body.cv-owner-client-manager-page .cv-cm-card h2{font-size:22px!important}
  body.cv-owner-client-manager-page .cv-cm-line strong{font-size:16px!important}
  body.cv-owner-client-manager-page .cv-cm-line small{font-size:14px!important}
  body.cv-owner-client-manager-page .cv-cm-line a{font-size:14px!important}
  body.cv-owner-client-manager-page .cv-cm-line button{min-height:44px!important;font-size:14px!important}
  body.cv-owner-client-manager-page .cv-cm-actions a,
  body.cv-owner-client-manager-page .cv-cm-actions button{min-height:46px!important;font-size:15px!important}
  body.cv-owner-client-manager-page .cv-hub-workspace{min-width:0!important}
  body.cv-owner-client-manager-page #cvHubFrame{max-width:100%!important}
}
@media(max-width:680px){
 body.cv-services-hub #newServiceList>.item{grid-template-columns:minmax(0,1fr)!important}
 body.cv-services-hub #newServiceList>.item>.cv-service-actions{grid-column:1!important;grid-row:3!important;justify-content:flex-start!important}
 body.cv-services-hub #newServiceList .cv-service-order-controls{grid-column:1!important;grid-row:4!important;justify-content:flex-start!important}
}
