.ttmgb-grid{display:grid;gap:16px;margin:12px 0}.ttmgb-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ttmgb-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ttmgb-field{margin-bottom:14px}.ttmgb-field label{display:block;margin-bottom:6px}.ttmgb-subcard{background:#fafafa;border:1px solid #e2e8f0;border-radius:12px;padding:14px}.ttmgb-media-wrap{display:flex;flex-direction:column;gap:10px}.ttmgb-media-preview{min-height:110px;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:center}.ttmgb-media-placeholder{color:#64748b;font-size:13px;text-align:center}.ttmgb-gallery-row{margin-top:14px}.ttmgb-native-color-field{width:72px!important;height:42px!important;min-height:42px!important;padding:3px!important;border-radius:12px!important;cursor:pointer}@media(max-width:1100px){.ttmgb-grid-3,.ttmgb-grid-2{grid-template-columns:1fr}}

.ttmgb-front-editor .ttmgb-grid{display:grid;gap:18px;margin:0}
.ttmgb-front-editor .ttmgb-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ttmgb-front-editor .ttmgb-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ttmgb-front-editor .ttmgb-field{margin-bottom:18px}
.ttmgb-front-editor .ttmgb-field label{font-size:13px;color:#0f172a;margin-bottom:8px}
.ttmgb-front-editor .ttmgb-subcard{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;margin-top:16px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ttmgb-front-editor .ttmgb-subcard h4{margin:0 0 14px;font-size:18px}
.ttmgb-front-editor .ttmgb-media-preview{min-height:170px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:12px;display:flex;align-items:center;justify-content:center}
.ttmgb-front-editor .ttmgb-media-preview img{max-height:180px;width:auto}
.ttmgb-front-editor .button,.ttmgb-front-editor button.button{border-radius:10px!important;padding:8px 12px!important;min-height:38px!important}
.ttmgb-front-editor [data-ttmgb-add-image]{background:#d60302!important;border-color:#d60302!important;color:#fff!important;font-weight:800!important}
@media(max-width:900px){.ttmgb-front-editor .ttmgb-grid-2,.ttmgb-front-editor .ttmgb-grid-3{grid-template-columns:1fr}}
/* Gallery repeater card layout: 3 columns on wide screens, responsive down to 2/1 columns */
.ttmgb-gallery-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.ttmgb-gallery-list .ttmgb-gallery-row{margin-top:0}
.ttmgb-gallery-list .ttmgb-grid-2{grid-template-columns:1fr}
.ttmgb-front-editor .ttmgb-gallery-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.ttmgb-front-editor .ttmgb-gallery-list .ttmgb-gallery-row{margin-top:0}
.ttmgb-front-editor .ttmgb-gallery-list .ttmgb-grid-2{grid-template-columns:1fr}
@media(max-width:1180px){.ttmgb-gallery-list,.ttmgb-front-editor .ttmgb-gallery-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ttmgb-gallery-list,.ttmgb-front-editor .ttmgb-gallery-list{grid-template-columns:1fr}}

/* v0.1.3 frontend editor width + true gallery card columns */
.ttmgb-front-editor{width:min(1200px,calc(100vw - 32px))!important;max-width:none!important;margin:24px 0 24px 50%!important;transform:translateX(-50%)!important;box-sizing:border-box!important}
.ttmgb-front-editor .ttmgb-gallery-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}
.ttmgb-front-editor .ttmgb-gallery-list .ttmgb-gallery-row{margin-top:0!important}
.ttmgb-front-editor .ttmgb-gallery-list .ttmgb-grid-2{grid-template-columns:1fr!important}
@media(max-width:1180px){.ttmgb-front-editor .ttmgb-gallery-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.ttmgb-front-editor{width:calc(100vw - 20px)!important;padding:0 10px!important}.ttmgb-front-editor .ttmgb-gallery-list{grid-template-columns:1fr!important}}

/* v0.1.10 frontend manager shell: hide website header and show Core Launcher style top bar. */
html.ttmgb-frontend-page-html,
html.ttmgb-frontend-page-html body,
body.ttmgb-frontend-page {
  margin: 0 !important;
  margin-top: 0 !important;
  background: #f5f7fb !important;
}
body.ttmgb-frontend-page #wpadminbar {
  display: none !important;
}
body.ttmgb-frontend-page .site-header,
body.ttmgb-frontend-page header.site-header,
body.ttmgb-frontend-page #masthead,
body.ttmgb-frontend-page .elementor-location-header,
body.ttmgb-frontend-page .wp-site-blocks > header,
body.ttmgb-frontend-page .tt-header,
body.ttmgb-frontend-page .main-header,
body.ttmgb-frontend-page .header,
body.ttmgb-frontend-page .hfe-header,
body.ttmgb-frontend-page .ast-primary-header-bar,
body.ttmgb-frontend-page header[role="banner"],
body.ttmgb-frontend-page > header {
  display: none !important;
}
body.ttmgb-frontend-page .site,
body.ttmgb-frontend-page .site-content,
body.ttmgb-frontend-page #content,
body.ttmgb-frontend-page .content-area,
body.ttmgb-frontend-page .site-main,
body.ttmgb-frontend-page main,
body.ttmgb-frontend-page .entry-content,
body.ttmgb-frontend-page .page-content,
body.ttmgb-frontend-page .elementor,
body.ttmgb-frontend-page .elementor-section,
body.ttmgb-frontend-page .elementor-container,
body.ttmgb-frontend-page .elementor-column,
body.ttmgb-frontend-page .elementor-widget-wrap,
body.ttmgb-frontend-page .elementor-widget-container,
body.ttmgb-frontend-page .elementor-widget-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.ttmgb-frontend-page:not(.elementor-editor-active) .ttmgb-frontend-shell[data-ttmgb-frontend="1"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
  background: #f5f7fb !important;
}
.ttmgb-frontend-topbar {
  position: sticky;
  top: 0;
  z-index: 99990;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: #071123;
  color: #fff;
  border-bottom: 1px solid #264674;
  box-shadow: 0 12px 30px rgba(7, 17, 35, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ttmgb-frontend-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  color: #fff !important;
  text-decoration: none !important;
}
.ttmgb-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #d60302;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: lowercase;
}
.ttmgb-frontend-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.05;
  color: #fff;
}
.ttmgb-frontend-brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 11px;
}
.ttmgb-frontend-topbar-spacer {
  flex: 1;
}
.ttmgb-frontend-core-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #345987;
  background: #091427;
  color: #dfeaff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
}
.ttmgb-frontend-core-link:hover {
  border-color: #d60302;
  color: #fff !important;
}
.ttmgb-frontend-user-badge {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #345987;
  background: #091427;
  border-radius: 26px;
  padding: 0 16px 0 6px;
}
.ttmgb-frontend-user-badge span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18cc82;
  color: #fff;
  font-weight: 900;
}
.ttmgb-frontend-user-badge strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #fff;
  line-height: 1.1;
}
.ttmgb-frontend-user-badge em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
body.ttmgb-frontend-page .ttmgb-frontend-shell .ttmgb-front-wrap,
body.ttmgb-frontend-page .ttmgb-frontend-shell .ttmgb-front-editor {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  padding: 18px 20px 44px !important;
}
body.ttmgb-frontend-page .ttmgb-frontend-shell .ttmgb-front-notice {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}
@media (max-width: 782px) {
  .ttmgb-frontend-topbar {
    min-height: 60px;
    padding: 0 10px;
    gap: 8px;
  }
  .ttmgb-frontend-brand {
    min-width: 0;
  }
  .ttmgb-frontend-brand strong,
  .ttmgb-frontend-brand em,
  .ttmgb-frontend-core-link,
  .ttmgb-frontend-user-badge strong,
  .ttmgb-frontend-user-badge em {
    display: none;
  }
  .ttmgb-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .ttmgb-frontend-user-badge {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  .ttmgb-frontend-user-badge span {
    width: 34px;
    height: 34px;
  }
  body.ttmgb-frontend-page .ttmgb-frontend-shell .ttmgb-front-wrap,
  body.ttmgb-frontend-page .ttmgb-frontend-shell .ttmgb-front-editor {
    padding: 14px 10px 36px !important;
  }
}
