/* Mike Scorecards: Business Planner. Scoped under .mbp so it won't fight the theme. */

.mbp {
	--mbp-blue: #19469D;
	--mbp-navy: #14213D;
	--mbp-orange: #F5821F;
	--mbp-soft: #FFF3E8;
	--mbp-ink: #8A4100;
	--mbp-bg: #F4F6FB;
	--mbp-line: #DCE2EE;
	--mbp-field: #B9C3D9;
	--mbp-body: #33405C;
	--mbp-muted: #4A5672;
	--mbp-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--mbp-navy);
	line-height: 1.5;
	max-width: 1120px;
	margin: 0 auto;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.mbp *, .mbp *::before, .mbp *::after { box-sizing: border-box; }
:where(.mbp) :where(h2, h3, p, ul, ol, dl, dd, fieldset, legend) { margin: 0; padding: 0; }
.mbp :focus-visible { outline: 3px solid var(--mbp-orange); outline-offset: 2px; }
.mbp a { color: var(--mbp-blue); }

/* Top bar and steps */
.mbp-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; background: var(--mbp-navy); color: #fff; padding: 16px 22px; border-radius: 16px 16px 0 0; }
.mbp-brand { font-family: var(--mbp-display); font-weight: 800; font-size: 24px; letter-spacing: .3px; }
.mbp-sub { color: #C9D3EA; font-size: 15px; }
.mbp-pill { margin-left: auto; font-size: 13px; background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 999px; }
.mbp-nav { background: #fff; border: 1px solid var(--mbp-line); border-top: 0; padding: 12px 16px; }
.mbp-nav ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mbp-step { font: inherit; font-size: 13px; padding: 7px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--mbp-line); background: #fff; color: var(--mbp-muted); cursor: pointer; }
.mbp-step:hover { border-color: var(--mbp-blue); color: var(--mbp-blue); }
.mbp-step.is-done { color: var(--mbp-blue); }
.mbp-step.is-now { background: var(--mbp-orange); border-color: var(--mbp-orange); color: var(--mbp-navy); font-weight: 700; }

/* Layout */
.mbp-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; background: var(--mbp-bg); padding: 24px; border-radius: 0 0 16px 16px; border: 1px solid var(--mbp-line); border-top: 0; }
.mbp-main { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--mbp-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.mbp-main h2 { font-family: var(--mbp-display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; outline: none; }
.mbp-main h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.mbp-lede { font-size: 17px; color: var(--mbp-body); max-width: 720px; }
.mbp-note { font-size: 14px; color: var(--mbp-muted); }
.mbp-checks { list-style: none; display: grid; gap: 8px; }
.mbp-checks li { padding-left: 28px; position: relative; font-weight: 500; }
.mbp-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 4px; background: var(--mbp-orange); }

/* Fields */
.mbp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.mbp-field { display: flex; flex-direction: column; gap: 6px; }
.mbp-field.mbp-wide { grid-column: 1 / -1; }
.mbp-field label { font-size: 15px; font-weight: 600; }
.mbp-help { font-size: 13px; color: var(--mbp-muted); }
.mbp-input { display: flex; align-items: stretch; border: 1.5px solid var(--mbp-field); border-radius: 10px; background: #fff; overflow: hidden; }
.mbp-input:focus-within { border-color: var(--mbp-blue); box-shadow: 0 0 0 3px rgba(25, 70, 157, .15); }
.mbp-input input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; font-weight: 500; padding: 11px 12px; min-height: 46px; background: transparent; color: var(--mbp-navy); }
.mbp-affix { display: flex; align-items: center; padding: 0 0 0 12px; color: var(--mbp-muted); font-weight: 600; }
.mbp-affix-end { padding: 0 12px 0 0; }
.mbp textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--mbp-field); border-radius: 10px; resize: vertical; min-height: 64px; color: var(--mbp-navy); }
.mbp textarea:focus { border-color: var(--mbp-blue); outline: none; box-shadow: 0 0 0 3px rgba(25, 70, 157, .15); }

/* Money rows */
.mbp-rows { border: 1px solid var(--mbp-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mbp-rows legend { font-size: 19px; font-weight: 700; padding: 0 6px; }
.mbp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 40px; gap: 10px; align-items: center; }
.mbp-row-label { font-weight: 500; }
.mbp-row-name { font: inherit; font-size: 15px; padding: 10px 12px; min-height: 46px; border: 1.5px solid var(--mbp-field); border-radius: 10px; }
.mbp-x { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--mbp-muted); font-size: 22px; cursor: pointer; }
.mbp-x:hover { background: var(--mbp-bg); color: var(--mbp-navy); }
.mbp-row-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.mbp-row-foot strong { font-size: 18px; margin-left: 6px; }
.mbp-link { font: inherit; font-weight: 600; color: var(--mbp-blue); background: none; border: 0; padding: 8px 2px; min-height: 44px; cursor: pointer; }
.mbp-link:hover { text-decoration: underline; }
.mbp-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--mbp-navy); color: #fff; padding: 16px 20px; border-radius: 12px; font-weight: 600; }
.mbp-total strong { font-family: var(--mbp-display); font-size: 30px; color: var(--mbp-orange); }

/* Math blocks */
.mbp-math { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mbp-math div, .mbp-funnel div { background: var(--mbp-bg); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.mbp-math span, .mbp-funnel span { font-size: 13px; color: var(--mbp-body); }
.mbp-math strong, .mbp-funnel strong { font-family: var(--mbp-display); font-size: 30px; color: var(--mbp-blue); line-height: 1.1; }
.mbp-math .is-key { background: var(--mbp-orange); }
.mbp-math .is-key strong, .mbp-math .is-key span { color: var(--mbp-navy); }
.mbp-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mbp-funnel strong { order: -1; }
.mbp-weekly { background: var(--mbp-orange); color: var(--mbp-navy); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mbp-weekly span { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.mbp-weekly strong { font-family: var(--mbp-display); font-size: 44px; line-height: 1; }
.mbp-weekly em { font-style: normal; font-weight: 500; }

/* Paths */
.mbp-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mbp-path { border: 1.5px solid var(--mbp-line); border-radius: 12px; padding: 12px 14px; }
.mbp-path.is-on { border-color: var(--mbp-orange); background: var(--mbp-soft); }
.mbp-path-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 32px; }
.mbp-tactics { display: none; flex-direction: column; gap: 2px; margin-top: 8px; }
.mbp-path.is-on .mbp-tactics { display: flex; }
.mbp-tactic { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; cursor: pointer; }
.mbp input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mbp-blue); flex: none; }

/* Look back */
.mbp-src { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(70px, .9fr) 40px; gap: 8px; align-items: center; }
.mbp-src-head span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--mbp-muted); }
.mbp-src .mbp-input input { font-size: 15px; padding: 9px 8px; min-height: 44px; }
.mbp-net { font-weight: 700; color: var(--mbp-blue); text-align: right; }

/* Done */
.mbp-dl { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mbp-cta { background: var(--mbp-navy); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mbp-cta p { color: #E4E9F4; max-width: 620px; }
.mbp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mbp-orange) !important; }
.mbp-cta-title { font-family: var(--mbp-display); font-weight: 800; font-size: 30px; line-height: 1.1; color: #fff !important; }

/* Buttons */
.mbp-move { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--mbp-line); }
.mbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 12px; border: 0; background: var(--mbp-orange); color: var(--mbp-navy); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(245, 130, 31, .3); }
.mbp-btn:hover { background: #F79A47; color: var(--mbp-navy); }
.mbp-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mbp-btn svg { width: 20px; height: 20px; }
.mbp-btn-ghost { background: #fff; border: 1.5px solid var(--mbp-field); box-shadow: none; }
.mbp-btn-ghost:hover { background: var(--mbp-bg); }
.mbp-btn-light { background: var(--mbp-orange); }

/* Side panel */
.mbp-side { flex: 1 1 280px; min-width: 0; background: var(--mbp-navy); color: #fff; border-radius: 16px; padding: 22px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.mbp-side-title { font-family: var(--mbp-display); font-weight: 800; font-size: 24px; }
.mbp-side dl { display: flex; flex-direction: column; gap: 0; }
.mbp-side dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #33405C; }
.mbp-side dt { color: #C9D3EA; font-size: 14px; }
.mbp-side dd { font-weight: 700; color: var(--mbp-orange); }
.mbp-side-week { background: var(--mbp-orange); color: var(--mbp-navy); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.mbp-side-week span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.mbp-side-week strong { font-family: var(--mbp-display); font-size: 28px; line-height: 1.1; }

@media (max-width: 720px) {
	.mbp-body { padding: 12px; }
	.mbp-main { padding: 18px; }
	.mbp-side { position: static; }
	.mbp-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mbp-rows { padding: 14px 12px; }
	.mbp-row { grid-template-columns: minmax(0, 1fr) 112px 36px; gap: 6px; }
	.mbp-row-label { font-size: 15px; overflow-wrap: anywhere; }
	.mbp-x { width: 36px; }
	.mbp-src, .mbp-src-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
	.mbp-src-head { display: none; }
	.mbp-src > :first-child { grid-column: 1 / -1; }
	.mbp-net { text-align: left; }
	.mbp-pill { margin-left: 0; }
}
