:root {
  --mft-page-pad: clamp(12px, 2vw, 32px);
  --mft-readable: 900px;
  --mft-bg: #07090d;
  --mft-bg-2: #101520;
  --mft-text: #f5f1e8;
  --mft-muted: rgba(245,241,232,.68);
  --mft-line: rgba(255,255,255,.12);
  --mft-panel: rgba(255,255,255,.055);
  --mft-panel-2: rgba(255,255,255,.085);
  --mft-gold: #d8b45d;
  --mft-soft: rgba(216,180,93,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.metasol-flow-theme {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,180,93,.14), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(85,119,180,.12), transparent 30%),
    linear-gradient(135deg, var(--mft-bg), var(--mft-bg-2) 58%, var(--mft-bg));
  color: var(--mft-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.mft-skip { position: absolute; left: -999px; top: 12px; background: var(--mft-gold); color: #111; padding: 10px 14px; border-radius: 999px; z-index: 100; }
.mft-skip:focus { left: 12px; }
.mft-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mft-line);
  backdrop-filter: blur(18px);
  background: rgba(7,9,13,.72);
}
.mft-header-inner {
  width: 100%;
  margin: 0;
  padding: 0 var(--mft-page-pad);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mft-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mft-mark, .mft-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(216,180,93,.55);
  background: rgba(216,180,93,.12);
  display: grid;
  place-items: center;
  color: #ffe4a2;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(216,180,93,.14);
}
.mft-logo .custom-logo-link { display: block; line-height: 0; }
.mft-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mft-brand-text strong { font-size: 15px; letter-spacing: .02em; }
.mft-brand-text small { color: var(--mft-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.mft-menu { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; }
.mft-menu a {
  display: inline-flex;
  padding: 10px 13px;
  border: 1px solid transparent;
  color: var(--mft-muted);
  border-radius: 999px;
}
.mft-menu a:hover { color: var(--mft-text); border-color: var(--mft-line); background: rgba(255,255,255,.045); }
.mft-menu-toggle { display: none; border: 1px solid var(--mft-line); background: rgba(255,255,255,.06); color: var(--mft-text); border-radius: 999px; padding: 10px 13px; }
.mft-main { min-height: calc(100vh - 136px); }
.mft-landing {
  width: calc(100% - (var(--mft-page-pad) * 2));
  margin: 34px var(--mft-page-pad) 12px;
  padding: 42px;
  border: 1px solid var(--mft-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 10%, rgba(216,180,93,.20), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}
.mft-landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 28px; align-items: stretch; }
.mft-kicker { margin: 0 0 12px; color: var(--mft-gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.mft-hero-copy h1 { margin: 0; font-size: clamp(42px, 6vw, 96px); letter-spacing: -.07em; line-height: .92; max-width: 1180px; }
.mft-hero-copy p { max-width: 820px; color: var(--mft-muted); font-size: 18px; line-height: 1.58; margin: 22px 0 0; }
.mft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mft-button { border: 1px solid var(--mft-line); border-radius: 999px; padding: 13px 17px; background: rgba(255,255,255,.055); color: var(--mft-text); }
.mft-button-primary { background: var(--mft-soft); border-color: rgba(216,180,93,.5); color: #ffe4a2; }
.mft-intel-card {
  min-height: 310px;
  border: 1px solid var(--mft-line);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}
.mft-intel-card span, .mft-intel-card small { color: var(--mft-muted); }
.mft-intel-card strong { font-size: 32px; line-height: 1.08; letter-spacing: -.04em; }
.mft-pulse-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.mft-pulse-grid em { font-style: normal; border: 1px solid var(--mft-line); border-radius: 16px; padding: 12px; background: rgba(0,0,0,.18); color: var(--mft-muted); }
.mft-flow-section { width: 100%; margin: 0 0 38px; padding: 0 var(--mft-page-pad); }
.mft-template-flow { padding-top: 22px; }
.mft-content-wrap { width: min(var(--mft-readable), calc(100% - (var(--mft-page-pad) * 2))); margin: 42px auto; }
.mft-article { border: 1px solid var(--mft-line); border-radius: 28px; background: rgba(255,255,255,.055); padding: 32px; }
.mft-article h1 { margin-top: 0; font-size: clamp(32px, 5vw, 58px); letter-spacing: -.06em; }
.mft-entry-content { color: var(--mft-muted); line-height: 1.7; }
.mft-entry-content a { color: #ffe4a2; text-decoration: underline; }
.mft-fallback { width: calc(100% - (var(--mft-page-pad) * 2)); margin: 32px var(--mft-page-pad); padding: 32px; border: 1px solid var(--mft-line); border-radius: 28px; background: rgba(255,255,255,.055); }
.mft-fallback h1 { margin: 0 0 12px; font-size: clamp(34px,5vw,60px); letter-spacing: -.06em; }
.mft-fallback p { color: var(--mft-muted); line-height: 1.6; }
.mft-fallback code { color: #ffe4a2; }
.mft-footer { border-top: 1px solid var(--mft-line); background: rgba(7,9,13,.64); }
.mft-footer-inner { width: 100%; margin: 0; padding: 0 var(--mft-page-pad); min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--mft-muted); font-size: 13px; }
@media (max-width: 860px) {
  :root { --mft-page-pad: 10px; }
  .mft-header-inner, .mft-landing, .mft-content-wrap { width: calc(100% - (var(--mft-page-pad) * 2)); }
  .mft-header-inner { width: 100%; }
  .mft-header-inner { min-height: 68px; }
  .mft-menu-toggle { display: inline-flex; }
  .mft-nav { display: none; position: absolute; left: 10px; right: 10px; top: 68px; border: 1px solid var(--mft-line); border-radius: 20px; background: rgba(7,9,13,.96); padding: 10px; }
  .mft-nav.is-open { display: block; }
  .mft-menu { display: grid; gap: 6px; }
  .mft-menu a { display: flex; }
  .mft-brand-text small { max-width: 180px; }
  .mft-landing { margin-top: 18px; padding: 24px; border-radius: 26px; }
  .mft-landing-grid { grid-template-columns: 1fr; }
  .mft-intel-card { min-height: 240px; }
  .mft-footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 14px 0; }
}


/* v1.0.2 — true full-width workspace/flow mode.
   WordPress pages, block wrappers and the Metasol Flow shortcode can otherwise keep inherited max-widths. */
body.metasol-flow-theme .mft-main,
body.metasol-flow-theme .mft-flow-section,
body.metasol-flow-theme .mft-template-flow,
body.metasol-flow-theme .mft-shortcode-page,
body.metasol-flow-theme .mft-flow-section .entry-content,
body.metasol-flow-theme .mft-flow-section .wp-block-group,
body.metasol-flow-theme .mft-flow-section .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
}
body.metasol-flow-theme .mft-flow-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--mft-page-pad) !important;
  padding-right: var(--mft-page-pad) !important;
}
body.metasol-flow-theme .mft-flow-section > * {
  max-width: none !important;
}
body.metasol-flow-theme .mft-flow-section .mf-shell,
body.metasol-flow-theme .mft-template-flow .mf-shell,
body.metasol-flow-theme .mft-shortcode-page .mf-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.metasol-flow-theme .mft-flow-section .mf-hero h1 {
  max-width: 1280px;
}
body.metasol-flow-theme .mft-flow-section .mf-subtitle {
  max-width: 920px;
}
body.metasol-flow-theme .mft-flow-section .mf-grid-3 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.metasol-flow-theme .mft-flow-section .mf-grid-2 {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
}
@media (max-width: 1280px) {
  body.metasol-flow-theme .mft-flow-section .mf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.metasol-flow-theme .mft-flow-section .mf-grid-2 { grid-template-columns: 1.2fr .8fr; }
}
@media (max-width: 860px) {
  body.metasol-flow-theme .mft-flow-section { padding-left: 10px !important; padding-right: 10px !important; }
  body.metasol-flow-theme .mft-flow-section .mf-grid-2,
  body.metasol-flow-theme .mft-flow-section .mf-grid-3 { grid-template-columns: 1fr; }
}

/* v1.0.3 — Workspace polish: aligned grids, equal cards, consistent rhythm. */
body.metasol-flow-theme .mft-flow-section .mf-shell,
body.metasol-flow-theme .mft-template-flow .mf-shell,
body.metasol-flow-theme .mft-shortcode-page .mf-shell {
  padding: clamp(18px, 1.8vw, 32px) !important;
  border-radius: 28px !important;
}

body.metasol-flow-theme .mf-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin-bottom: 18px !important;
}

body.metasol-flow-theme .mf-status-card,
body.metasol-flow-theme .mf-card,
body.metasol-flow-theme .mf-state-grid div,
body.metasol-flow-theme .mf-signal,
body.metasol-flow-theme .mf-risk-row,
body.metasol-flow-theme .mf-haven,
body.metasol-flow-theme .mf-causal,
body.metasol-flow-theme .mf-flow-node,
body.metasol-flow-theme .mf-cycle-phase {
  border-radius: 18px !important;
}

body.metasol-flow-theme .mf-status-card,
body.metasol-flow-theme .mf-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.45vw, 24px) !important;
}

body.metasol-flow-theme .mf-panels,
body.metasol-flow-theme .mf-panel.is-active,
body.metasol-flow-theme .mf-panel.is-active > .mf-grid,
body.metasol-flow-theme .mf-panel.is-active > .mf-card {
  width: 100%;
}

body.metasol-flow-theme .mf-grid {
  display: grid !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.metasol-flow-theme .mft-flow-section .mf-grid-2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr) !important;
}

body.metasol-flow-theme .mft-flow-section .mf-grid-3 {
  grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
}

body.metasol-flow-theme .mf-grid-2 > *,
body.metasol-flow-theme .mf-grid-3 > * {
  min-width: 0;
  height: 100%;
}

body.metasol-flow-theme .mf-state-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body.metasol-flow-theme .mf-state-grid div {
  min-height: 132px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.metasol-flow-theme .mf-state-grid span,
body.metasol-flow-theme .mf-state-grid strong {
  display: block;
}

body.metasol-flow-theme .mf-state-grid strong {
  margin-top: auto;
  min-height: 46px;
}

body.metasol-flow-theme .mf-signal {
  min-height: 76px;
  margin-bottom: 0 !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-content: center;
}

body.metasol-flow-theme .mf-card .mf-signal + .mf-signal {
  margin-top: 10px !important;
}

body.metasol-flow-theme .mf-flow-list {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 12px !important;
}

body.metasol-flow-theme .mf-flow-node {
  min-height: 150px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 10px !important;
  padding: 16px !important;
  white-space: normal !important;
}

body.metasol-flow-theme .mf-flow-node span,
body.metasol-flow-theme .mf-flow-node strong,
body.metasol-flow-theme .mf-flow-node small {
  display: block;
  width: 100%;
}

body.metasol-flow-theme .mf-flow-node strong {
  min-height: 42px;
  line-height: 1.25;
}

body.metasol-flow-theme .mf-causal {
  min-height: 150px;
  margin-top: 16px !important;
}

body.metasol-flow-theme .mf-cycle-ring {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}

body.metasol-flow-theme .mf-cycle-phase {
  min-height: 150px !important;
  text-align: center;
  padding: 16px;
}

body.metasol-flow-theme .mf-mini {
  min-height: 260px;
}

body.metasol-flow-theme .mf-mini h3 {
  min-height: 56px;
  line-height: 1.2;
}

body.metasol-flow-theme .mf-mini .mf-meter {
  margin-top: auto !important;
}

body.metasol-flow-theme .mf-haven {
  min-height: 172px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.metasol-flow-theme .mf-haven strong {
  min-height: 44px;
  line-height: 1.25;
}

body.metasol-flow-theme .mf-haven p {
  margin-top: auto !important;
}

body.metasol-flow-theme .mf-risk-row {
  min-height: 76px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px 140px !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

body.metasol-flow-theme .mf-card .mf-risk-row + .mf-risk-row {
  margin-top: 10px !important;
}

body.metasol-flow-theme .mf-ask-box,
body.metasol-flow-theme .mf-answer {
  width: 100%;
}

body.metasol-flow-theme .mf-answer {
  min-height: 160px;
}

@media (max-width: 1480px) {
  body.metasol-flow-theme .mft-flow-section .mf-grid-3 { grid-template-columns: repeat(3, minmax(220px, 1fr)) !important; }
  body.metasol-flow-theme .mf-flow-list { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
  body.metasol-flow-theme .mf-cycle-ring { grid-template-columns: repeat(3, minmax(160px, 1fr)) !important; }
  body.metasol-flow-theme .mf-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 980px) {
  body.metasol-flow-theme .mf-hero,
  body.metasol-flow-theme .mft-flow-section .mf-grid-2,
  body.metasol-flow-theme .mft-flow-section .mf-grid-3,
  body.metasol-flow-theme .mf-flow-list,
  body.metasol-flow-theme .mf-cycle-ring,
  body.metasol-flow-theme .mf-state-grid,
  body.metasol-flow-theme .mf-risk-row {
    grid-template-columns: 1fr !important;
  }
  body.metasol-flow-theme .mf-state-grid strong,
  body.metasol-flow-theme .mf-mini h3,
  body.metasol-flow-theme .mf-haven strong {
    min-height: 0;
  }
  body.metasol-flow-theme .mf-flow-node,
  body.metasol-flow-theme .mf-mini,
  body.metasol-flow-theme .mf-haven,
  body.metasol-flow-theme .mf-cycle-phase,
  body.metasol-flow-theme .mf-state-grid div {
    min-height: auto !important;
  }
  body.metasol-flow-theme .mf-ask-box { flex-direction: column; }
}

/* v1.0.4 — Equal width + equal padding rule for top dashboard cards.
   Scope: Current Regime / World State / Signal Monitor visual alignment.
   This intentionally changes only width/padding rhythm, not content or structure. */
body.metasol-flow-theme {
  --mf-equal-card-padding: 24px;
  --mf-equal-card-gap: 16px;
}

/* Keep the Current Regime/status card as the size reference and remove asymmetric padding. */
body.metasol-flow-theme .mf-status-card,
body.metasol-flow-theme .mf-card {
  padding: var(--mf-equal-card-padding) !important;
  box-sizing: border-box !important;
}

/* Hero status card: no fixed-width behavior from plugin/theme overrides. */
body.metasol-flow-theme .mf-hero {
  gap: var(--mf-equal-card-gap) !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
body.metasol-flow-theme .mf-hero > * {
  min-width: 0 !important;
}
body.metasol-flow-theme .mf-status-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Workspace row: World State and Signal Monitor must have identical width. */
body.metasol-flow-theme .mft-flow-section .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
body.metasol-flow-theme .mft-template-flow .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
body.metasol-flow-theme .mft-shortcode-page .mf-panel[data-mf-panel="workspace"] .mf-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mf-equal-card-gap) !important;
  align-items: stretch !important;
}

body.metasol-flow-theme .mf-panel[data-mf-panel="workspace"] .mf-grid-2 > .mf-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: var(--mf-equal-card-padding) !important;
}

/* Remove older asymmetric min-width constraints from the polished/full-width rules. */
body.metasol-flow-theme .mft-flow-section .mf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 980px) {
  body.metasol-flow-theme .mf-hero,
  body.metasol-flow-theme .mft-flow-section .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
  body.metasol-flow-theme .mft-template-flow .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
  body.metasol-flow-theme .mft-shortcode-page .mf-panel[data-mf-panel="workspace"] .mf-grid-2 {
    grid-template-columns: 1fr !important;
  }
}


/* v1.0.5 — Two-column application layout.
   Right column is locked to 1/3 of the available page width; left/main area is 2/3.
   Scope: hero/status row and workspace World State + Signal Monitor row. */
body.metasol-flow-theme {
  --mf-app-card-padding: 24px;
  --mf-app-grid-gap: 16px;
}

body.metasol-flow-theme .mf-status-card,
body.metasol-flow-theme .mf-card {
  padding: var(--mf-app-card-padding) !important;
  box-sizing: border-box !important;
}

body.metasol-flow-theme .mf-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: var(--mf-app-grid-gap) !important;
  align-items: stretch !important;
}

body.metasol-flow-theme .mf-hero > *,
body.metasol-flow-theme .mf-panel[data-mf-panel="workspace"] .mf-grid-2 > * {
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.metasol-flow-theme .mft-flow-section .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
body.metasol-flow-theme .mft-template-flow .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
body.metasol-flow-theme .mft-shortcode-page .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
body.metasol-flow-theme .mf-panel[data-mf-panel="workspace"] .mf-grid-2 {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: var(--mf-app-grid-gap) !important;
  align-items: stretch !important;
}

@media (max-width: 980px) {
  body.metasol-flow-theme .mf-hero,
  body.metasol-flow-theme .mft-flow-section .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
  body.metasol-flow-theme .mft-template-flow .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
  body.metasol-flow-theme .mft-shortcode-page .mf-panel[data-mf-panel="workspace"] .mf-grid-2,
  body.metasol-flow-theme .mf-panel[data-mf-panel="workspace"] .mf-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* v1.0.6 — strict 2/3 + 1/3 hero/workspace alignment.
   Applies identical column, gap and padding rules to the hero and workspace rows. */
body.metasol-flow-theme .mft-flow-section .mf-shell .mf-hero,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-hero,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-hero,
body.metasol-flow-theme .mft-flow-section .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2 {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
}

body.metasol-flow-theme .mft-flow-section .mf-shell .mf-hero > *,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-hero > *,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-hero > *,
body.metasol-flow-theme .mft-flow-section .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2 > *,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2 > *,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2 > * {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

body.metasol-flow-theme .mft-flow-section .mf-shell .mf-status-card,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-status-card,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-status-card,
body.metasol-flow-theme .mft-flow-section .mf-shell .mf-card,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-card,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-card {
  padding: 24px !important;
  box-sizing: border-box !important;
}

body.metasol-flow-theme .mft-flow-section .mf-shell .mf-hero,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-hero,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-hero {
  margin-bottom: 16px !important;
}

body.metasol-flow-theme .mft-flow-section .mf-shell .mf-tabs,
body.metasol-flow-theme .mft-template-flow .mf-shell .mf-tabs,
body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-tabs {
  margin-bottom: 16px !important;
}

@media (max-width: 860px) {
  body.metasol-flow-theme .mft-flow-section .mf-shell .mf-hero,
  body.metasol-flow-theme .mft-template-flow .mf-shell .mf-hero,
  body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-hero,
  body.metasol-flow-theme .mft-flow-section .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2,
  body.metasol-flow-theme .mft-template-flow .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2,
  body.metasol-flow-theme .mft-shortcode-page .mf-shell .mf-panel[data-mf-panel="workspace"] > .mf-grid.mf-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* v1.0.7 — landing hero strict 2/3 + 1/3 alignment.
   Fixes the front-page Current Regime card so it follows the same width, gap and padding rhythm as Workspace. */
body.metasol-flow-theme .mft-landing {
  padding: 24px !important;
}

body.metasol-flow-theme .mft-landing-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
}

body.metasol-flow-theme .mft-landing-grid > * {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
}

body.metasol-flow-theme .mft-landing-grid .mft-intel-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  body.metasol-flow-theme .mft-landing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Metasol Flow v1.0.6 — Branding Alignment Fix
   Keep Logo/Site Title left-aligned with a modest, consistent gap. */
.mft-header .mft-header-inner {
  justify-content: space-between !important;
  text-align: left !important;
}

.mft-header .mft-brand,
.mft-header a.mft-brand {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
  margin: 0 !important;
  width: auto !important;
  max-width: min(520px, 62vw) !important;
}

.mft-header .mft-logo,
.mft-header .mft-mark {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.mft-header .mft-logo .custom-logo-link,
.mft-header .mft-logo a,
.mft-header .mft-logo img,
.mft-header .custom-logo-link,
.mft-header img.custom-logo {
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.mft-header .mft-brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  text-align: left !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.mft-header .mft-brand-text strong,
.mft-header .mft-brand-text small {
  display: block !important;
  text-align: left !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  .mft-header .mft-brand,
  .mft-header a.mft-brand {
    gap: 10px !important;
    max-width: calc(100vw - 112px) !important;
  }
}

/* v1.0.8 — Hard header branding left lock.
   Some WP/logo wrappers can inherit centered alignment from blocks/customizer CSS.
   This rule locks the brand group to the left edge and keeps nav pushed right. */
body.metasol-flow-theme .mft-header,
body.metasol-flow-theme .mft-header * {
  text-align: left !important;
}

body.metasol-flow-theme .mft-header .mft-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--mft-page-pad) !important;
  padding-right: var(--mft-page-pad) !important;
  gap: 16px !important;
}

body.metasol-flow-theme .mft-header .mft-brand,
body.metasol-flow-theme .mft-header a.mft-brand {
  order: 1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: flex !important;
  flex: 0 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 560px !important;
  transform: none !important;
}

body.metasol-flow-theme .mft-header .mft-logo,
body.metasol-flow-theme .mft-header .mft-logo .custom-logo-link,
body.metasol-flow-theme .mft-header .custom-logo-link,
body.metasol-flow-theme .mft-header .mft-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.metasol-flow-theme .mft-header .mft-logo img,
body.metasol-flow-theme .mft-header img.custom-logo {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover !important;
  margin: 0 !important;
}

body.metasol-flow-theme .mft-header .mft-brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
}

body.metasol-flow-theme .mft-header .mft-brand-text strong,
body.metasol-flow-theme .mft-header .mft-brand-text small {
  width: auto !important;
  max-width: 360px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.metasol-flow-theme .mft-header .mft-nav {
  order: 2 !important;
  margin-left: auto !important;
}

body.metasol-flow-theme .mft-header .mft-menu-toggle {
  order: 3 !important;
  margin-left: auto !important;
}

@media (max-width: 720px) {
  body.metasol-flow-theme .mft-header .mft-brand,
  body.metasol-flow-theme .mft-header a.mft-brand {
    gap: 10px !important;
    max-width: calc(100vw - 118px) !important;
  }
  body.metasol-flow-theme .mft-header .mft-brand-text small {
    max-width: 190px !important;
  }
}
