/* Calenvella responsive builder & campaign analytics: 2026-11-07 tablet fix.
   Visual-only: no changes to saved design data, sending, payment flows or credentials. */
@media (min-width: 601px) and (max-width: 1366px) {
  body:has(#cvFreeSiteCanvas) main.shell {
    width:100%!important;max-width:870px!important;min-width:0!important;
    padding:18px clamp(16px,3vw,34px) 140px!important;margin:0 auto!important;
  }
  body:has(#cvFreeSiteCanvas) main.shell > * {min-width:0;max-width:100%;}
  #app.cv-free-website-app, #app.cv-free-website-app .template-editor,
  #app.cv-free-website-app .cv-template-editor-form,
  #app.cv-free-website-app #templateForm {width:100%!important;min-width:0!important;max-width:100%!important;}
  #app.cv-free-website-app #cvFreeSiteCanvas {
    box-sizing:border-box!important;width:100%!important;max-width:780px!important;
    margin:0 auto 12px!important;padding:18px!important;
  }
  #app.cv-free-website-app #cvFreeSiteTitle {font-size:27px!important;}
  #app.cv-free-website-app .cv-design-freely-title > p {
    font-size:15px!important;line-height:1.48!important;max-width:660px!important;
  }
  #app.cv-free-website-app .cv-free-site-paper {padding:16px!important;max-width:100%!important;min-width:0!important;}
  #app.cv-free-website-app .cv-free-element {min-width:0!important;max-width:100%!important;}
  #app.cv-free-website-app .cv-free-element-body {padding:12px 14px 15px!important;}
  #app.cv-free-website-app .cv-free-site-tools {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;}
  #app.cv-free-website-app .cv-free-site-tools button {font-size:15px!important;min-height:53px!important;padding:10px 12px!important;}
  #app.cv-free-website-app .cv-free-style-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #app.cv-free-website-app .cv-free-input {max-width:100%!important;min-width:0!important;}
  #app.cv-free-website-app .cv-direct-photo-sizing {max-width:100%!important;}
  #app.cv-free-website-app .cv-page-manager {max-width:100%!important;}
  body:has(#cvFreeSiteCanvas) .cv-acuity-footer {
    max-width:780px!important;width:100%!important;margin:12px auto 0!important;
    border-radius:14px!important;box-sizing:border-box!important;
  }
  body:has(#cvFreeSiteCanvas) .cv-acuity-footer button,
  body:has(#cvFreeSiteCanvas) .cv-acuity-footer a {min-height:44px!important;}
  .cv-analytics {width:100%!important;max-width:900px!important;margin:12px auto!important;padding:18px!important;}
  .cv-analytics-row {padding:15px!important;margin-top:12px!important;}
  .cv-analytics-title {font-size:17px!important;line-height:1.38!important;}
  .cv-analytics-counts {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .cv-analytics-count {min-height:78px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;padding:13px!important;}
  .cv-analytics-count b {font-size:24px!important;}
  .cv-analytics-count small {font-size:13px!important;}
  .cv-analytics-openers summary {padding:8px 0!important;line-height:1.35!important;min-height:34px!important;}
  .cv-analytics-meta,.cv-analytics-note {font-size:13px!important;}
}
@media (min-width: 601px) and (max-width: 850px) {
  #app.cv-free-website-app #cvFreeSiteCanvas {padding:14px!important;}
  #app.cv-free-website-app .cv-free-site-tools button {font-size:14px!important;min-height:50px!important;}
  .cv-analytics-counts {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
/* Prevent iPad Safari form widgets and legacy editor panels from stretching past cards. */
body:has(#cvFreeSiteCanvas) #app.cv-free-website-app input,
body:has(#cvFreeSiteCanvas) #app.cv-free-website-app textarea,
body:has(#cvFreeSiteCanvas) #app.cv-free-website-app select {box-sizing:border-box!important;max-width:100%!important;}
body:has(#cvFreeSiteCanvas) #app.cv-free-website-app .cv-free-element-body,
body:has(#cvFreeSiteCanvas) #app.cv-free-website-app .cv-free-style-grid {min-width:0!important;}
