.homebase-view-switch { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; padding:13px 17px; margin:0 0 14px; border:1px solid #c6ddce; border-radius:13px; background:#fff; color:#173c28; box-shadow:0 4px 16px #163e2110; }
.homebase-view-switch[hidden],.homebase-view-preview[hidden] { display:none !important; }
.homebase-view-switch > div:first-child { display:grid; gap:3px; }
.homebase-view-switch strong { font-size:15px; }
.homebase-view-switch small { font-size:12px; color:#5a7061; line-height:1.35; }
.homebase-view-buttons { display:inline-flex; gap:4px; padding:4px; border:1px solid #c9ddcf; border-radius:10px; background:#edf6ef; }
.homebase-view-buttons button { min-height:41px; padding:8px 15px; border:0; border-radius:7px; background:transparent; color:#28523a; font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.homebase-view-buttons button[aria-pressed="true"] { background:#146b39; color:#fff; box-shadow:0 2px 8px #13452833; }
.homebase-view-buttons button:focus-visible,.homebase-preview-heading button:focus-visible { outline:3px solid #24b461; outline-offset:2px; }
#homebaseView .dashboard-content.homebase-show-preview > :not(.homebase-view-switch):not(.homebase-view-preview) { display:none !important; }
.homebase-view-preview { padding:17px; border:1px solid #c9dfcf; border-radius:16px; background:#e9f1eb; }
.homebase-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; max-width:1280px; margin:0 auto 14px; }
.homebase-preview-heading strong { font-size:18px; color:#173c28; }
.homebase-preview-heading p { margin:3px 0 0; color:#54705d; font-size:13px; }
.homebase-preview-heading button { min-height:40px; padding:8px 13px; border:1px solid #a9c6b2; border-radius:8px; background:white; color:#17613a; font:inherit; font-weight:750; cursor:pointer; }
.homebase-preview-scroll { width:100%; max-width:1280px; margin:auto; overflow:auto; border-radius:14px; }
.homebase-view-preview iframe { display:block; width:390px; height:min(790px,80vh); min-height:600px; margin:auto; border:8px solid #193c29; border-radius:27px; background:white; box-sizing:content-box; box-shadow:0 20px 45px #0b2f1d33; }
.homebase-view-preview.is-desktop-preview iframe { width:1180px; height:790px; min-height:0; margin:0; border:1px solid #9bb8a3; border-radius:8px; }
@media(max-width:760px) {
  #homebaseView[data-mobile-ready] .homebase-view-switch { display:flex; order:-11; margin:0; padding:11px; }
  #homebaseView[data-mobile-ready] .homebase-view-switch small { display:none; }
  #homebaseView[data-mobile-ready] .homebase-view-buttons { width:100%; }
  #homebaseView[data-mobile-ready] .homebase-view-buttons button { flex:1; padding:8px; }
  #homebaseView[data-mobile-ready] .homebase-view-preview:not([hidden]) { display:block; order:-9; padding:10px; }
  #homebaseView[data-mobile-ready] .homebase-view-preview iframe { height:75dvh; min-height:530px; }
  #homebaseView[data-mobile-ready] .homebase-view-preview.is-desktop-preview iframe { width:1180px; height:760px; }
  #homebaseView[data-mobile-ready] .homebase-preview-heading { align-items:flex-start; }
  #homebaseView[data-mobile-ready] .homebase-preview-heading p { font-size:12px; }
}
