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

.ttmhb-field .wp-picker-container{display:block}
.ttmhb-field .wp-picker-input-wrap{display:inline-flex;gap:6px;align-items:center}


/* Frontend editor UI polish */
.ttmrb-front-wrap{font-family:Inter,Arial,sans-serif;color:#111827;box-sizing:border-box}.ttmrb-front-wrap *{box-sizing:border-box}.ttmrb-front-card{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:22px!important;padding:24px!important;margin:0 0 22px!important;box-shadow:0 12px 34px rgba(15,23,42,.07)!important}.ttmrb-front-card>h3{font-family:Inter,Arial,sans-serif!important;font-size:22px!important;line-height:1.25!important;font-weight:800!important;margin:0 0 18px!important;color:#111827!important}.ttmrb-front-card>p{color:#64748b;margin-top:-8px}.ttmhb-subcard{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:16px!important;padding:16px!important;margin:0 0 14px!important}.ttmhb-subcard h3,.ttmhb-subcard h4{font-family:Inter,Arial,sans-serif!important;font-size:16px!important;font-weight:800!important;margin:0 0 12px!important;color:#0f172a!important}.ttmhb-field{margin:0 0 14px!important}.ttmhb-field label{display:block!important;margin:0 0 7px!important;font-size:13px!important;line-height:1.3!important;color:#0f172a!important}.ttmhb-field label strong{font-weight:800!important}.ttmrb-front-wrap input[type=text],.ttmrb-front-wrap input[type=url],.ttmrb-front-wrap input[type=number],.ttmrb-front-wrap input[type=email],.ttmrb-front-wrap select,.ttmrb-front-wrap textarea{width:100%!important;max-width:100%!important;min-height:42px!important;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;color:#111827!important;padding:10px 12px!important;font-size:14px!important;line-height:1.45!important;box-shadow:none!important;outline:none!important}.ttmrb-front-wrap textarea{min-height:96px!important;resize:vertical!important}.ttmrb-front-wrap input:focus,.ttmrb-front-wrap select:focus,.ttmrb-front-wrap textarea:focus{border-color:#d60302!important;box-shadow:0 0 0 3px rgba(214,3,2,.12)!important}.ttmhb-grid{display:grid!important;gap:16px!important;margin:0 0 14px!important;align-items:start!important}.ttmhb-grid-1{grid-template-columns:1fr!important}.ttmhb-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ttmhb-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ttmhb-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ttmhb-media-wrap{display:grid!important;gap:10px!important}.ttmhb-media-preview{min-height:112px!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:14px!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}.ttmhb-media-preview img{max-width:100%!important;max-height:160px!important;object-fit:cover!important;border-radius:12px!important}.ttmhb-media-placeholder{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:86px!important;border-radius:12px!important;background:#eef2f7!important;color:#64748b!important;font-size:13px!important}.ttmrb-front-wrap .button,.ttmrb-front-wrap button.button,.ttmrb-front-btn{min-height:40px!important;border:1px solid #d60302!important;border-radius:12px!important;background:#d60302!important;color:#fff!important;padding:9px 14px!important;font-size:13px!important;line-height:1.2!important;font-weight:800!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important}.ttmrb-front-wrap .ttmhb-media-remove{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}.ttmrb-front-wrap .button:hover,.ttmrb-front-btn:hover{filter:brightness(.96)!important}.ttmrb-front-btn-primary{background:#d60302!important;color:#fff!important;border-color:#d60302!important}.ttmrb-front-top{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:18px;margin-bottom:18px;box-shadow:0 12px 34px rgba(15,23,42,.06)}.ttmrb-front-title{font-size:26px!important;font-weight:900!important;margin:0 0 4px!important;color:#0f172a!important}.ttmrb-front-table{background:#fff;border-radius:18px;overflow:hidden}.ttmrb-front-table th{background:#f8fafc;font-weight:800;color:#0f172a}.ttmrb-front-table th,.ttmrb-front-table td{padding:13px 14px!important;border-bottom:1px solid #eef2f7!important}.ttmrb-front-wrap hr{border:0;border-top:1px solid #e5e7eb;margin:22px 0}.ttmrb-front-wrap .description{font-size:12px;color:#64748b;margin:5px 0 0}.ttmrb-front-wrap .wp-picker-container{display:block}.ttmrb-front-wrap .wp-picker-container .wp-color-result.button{background:#fff!important;color:#111827!important;border-color:#cbd5e1!important}.ttmrb-front-wrap .wp-picker-input-wrap input[type=text]{width:110px!important;min-height:34px!important}.ttmrb-form-actions{position:sticky;bottom:12px;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid #e5e7eb;border-radius:18px;padding:12px;box-shadow:0 12px 32px rgba(15,23,42,.12);display:flex;gap:10px;justify-content:flex-end;margin-top:18px}@media(max-width:1100px){.ttmhb-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ttmhb-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:760px){.ttmrb-front-wrap{padding:0 10px!important}.ttmrb-front-card{padding:18px!important;border-radius:18px!important}.ttmhb-grid-2,.ttmhb-grid-3,.ttmhb-grid-4{grid-template-columns:1fr!important}.ttmrb-front-table{display:block;overflow:auto}.ttmrb-form-actions{justify-content:stretch}.ttmrb-form-actions .button{width:100%!important}}

/* v0.2.2 frontend list/editor action fixes */
.ttmrb-front-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important}
.ttmrb-front-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.ttmrb-front-btn-light{background:#f1f5f9!important;color:#0f172a!important;border-color:#f1f5f9!important}
.ttmrb-front-btn-light:hover{background:#e2e8f0!important;color:#0f172a!important;border-color:#e2e8f0!important}
.ttmrb-front-table{width:100%!important;border-collapse:collapse!important}
.ttmrb-front-table td{vertical-align:middle!important}
.ttmrb-form-actions{bottom:0!important;margin:22px -8px 0!important;border-radius:22px!important;padding:14px 16px!important;align-items:center!important;justify-content:space-between!important;background:rgba(255,255,255,.96)!important;box-shadow:0 -10px 30px rgba(15,23,42,.10)!important}
.ttmrb-form-actions span{color:#1f2937!important;font-size:15px!important}
@media(max-width:760px){.ttmrb-front-top{align-items:stretch!important;flex-direction:column!important}.ttmrb-front-actions{align-items:stretch!important}.ttmrb-front-actions .ttmrb-front-btn,.ttmrb-form-actions .ttmrb-front-btn{width:100%!important;text-align:center!important}.ttmrb-form-actions{flex-direction:column!important;align-items:stretch!important;margin-left:0!important;margin-right:0!important}.ttmrb-form-actions span{font-size:14px!important}.ttmrb-front-table,.ttmrb-front-table thead,.ttmrb-front-table tbody,.ttmrb-front-table th,.ttmrb-front-table td,.ttmrb-front-table tr{display:block!important}.ttmrb-front-table th{display:none!important}.ttmrb-front-table tr{border-bottom:1px solid #e2e8f0!important;padding:12px 0!important}.ttmrb-front-table td{border-bottom:0!important;padding:8px 0!important}}


/* v0.2.7 color picker fallback + editor polish */
.ttmhb-color-pair{display:flex!important;gap:10px!important;align-items:center!important}
.ttmhb-color-pair .ttmhb-color-field{flex:1 1 auto!important}
.ttmhb-native-color{width:52px!important;min-width:52px!important;height:42px!important;padding:2px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;cursor:pointer!important}
.ttmrb-front-wrap .wp-picker-container{width:100%!important}
.ttmrb-front-wrap .wp-picker-container .wp-picker-input-wrap{display:inline-flex!important;gap:8px!important;align-items:center!important;margin-top:6px!important}


/* v0.2.10 frontend manager shell: hide website header and show Core Launcher style top bar. */
html.ttmrb-frontend-page-html,
html.ttmrb-frontend-page-html body,
body.ttmrb-frontend-page {
  margin: 0 !important;
  margin-top: 0 !important;
  background: #f5f7fb !important;
}
body.ttmrb-frontend-page #wpadminbar {
  display: none !important;
}
body.ttmrb-frontend-page .site-header,
body.ttmrb-frontend-page header.site-header,
body.ttmrb-frontend-page #masthead,
body.ttmrb-frontend-page .elementor-location-header,
body.ttmrb-frontend-page .wp-site-blocks > header,
body.ttmrb-frontend-page .tt-header,
body.ttmrb-frontend-page .main-header,
body.ttmrb-frontend-page .header,
body.ttmrb-frontend-page .hfe-header,
body.ttmrb-frontend-page .ast-primary-header-bar,
body.ttmrb-frontend-page header[role="banner"],
body.ttmrb-frontend-page > header {
  display: none !important;
}
body.ttmrb-frontend-page .site,
body.ttmrb-frontend-page .site-content,
body.ttmrb-frontend-page #content,
body.ttmrb-frontend-page .content-area,
body.ttmrb-frontend-page .site-main,
body.ttmrb-frontend-page main,
body.ttmrb-frontend-page .entry-content,
body.ttmrb-frontend-page .page-content,
body.ttmrb-frontend-page .elementor,
body.ttmrb-frontend-page .elementor-section,
body.ttmrb-frontend-page .elementor-container,
body.ttmrb-frontend-page .elementor-column,
body.ttmrb-frontend-page .elementor-widget-wrap,
body.ttmrb-frontend-page .elementor-widget-container,
body.ttmrb-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.ttmrb-frontend-page:not(.elementor-editor-active) .ttmrb-frontend-shell[data-ttmrb-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;
}
.ttmrb-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;
}
.ttmrb-frontend-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  color: #fff !important;
  text-decoration: none !important;
}
.ttmrb-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;
}
.ttmrb-frontend-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.05;
  color: #fff;
}
.ttmrb-frontend-brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 11px;
}
.ttmrb-frontend-topbar-spacer {
  flex: 1;
}
.ttmrb-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;
}
.ttmrb-frontend-core-link:hover {
  border-color: #d60302;
  color: #fff !important;
}
.ttmrb-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;
}
.ttmrb-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;
}
.ttmrb-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;
}
.ttmrb-frontend-user-badge em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: #a9bddb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
body.ttmrb-frontend-page .ttmrb-frontend-shell .ttmrb-front-wrap,
body.ttmrb-frontend-page .ttmrb-frontend-shell .ttmrb-front-editor {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  padding: 18px 20px 44px !important;
}
body.ttmrb-frontend-page .ttmrb-frontend-shell .ttmrb-front-notice {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}
@media (max-width: 782px) {
  .ttmrb-frontend-topbar {
    min-height: 60px;
    padding: 0 10px;
    gap: 8px;
  }
  .ttmrb-frontend-brand {
    min-width: 0;
  }
  .ttmrb-frontend-brand strong,
  .ttmrb-frontend-brand em,
  .ttmrb-frontend-core-link,
  .ttmrb-frontend-user-badge strong,
  .ttmrb-frontend-user-badge em {
    display: none;
  }
  .ttmrb-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .ttmrb-frontend-user-badge {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  .ttmrb-frontend-user-badge span {
    width: 34px;
    height: 34px;
  }
  body.ttmrb-frontend-page .ttmrb-frontend-shell .ttmrb-front-wrap,
  body.ttmrb-frontend-page .ttmrb-frontend-shell .ttmrb-front-editor {
    padding: 14px 10px 36px !important;
  }
}
