/*
 * The Money Mirror — A&L Statement form.
 * Money Syndicates branding: teal + gold, accent #E97132, Plus Jakarta Sans.
 * All colours are variables here — adjust in one place.
 */
.msmm-root,
.msmm-gate {
	--msmm-teal: #0e5e63;
	--msmm-teal-dark: #0a464a;
	--msmm-teal-tint: #eef5f5;
	--msmm-gold: #c9a84c;
	--msmm-gold-tint: #faf4e3;
	--msmm-accent: #e97132;
	--msmm-accent-dark: #c95a1f;
	--msmm-ink: #1f2933;
	--msmm-muted: #5f6b76;
	--msmm-line: #dde4e7;
	--msmm-bg: #ffffff;
	--msmm-page: #f7f9f9;
	--msmm-bad: #b3261e;
	--msmm-radius: 12px;

	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--msmm-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.msmm-root *,
.msmm-root *::before,
.msmm-root *::after {
	box-sizing: border-box;
}

.msmm-gate {
	max-width: 560px;
	margin: 32px auto;
	padding: 24px;
	border: 1px solid var(--msmm-line);
	border-radius: var(--msmm-radius);
	text-align: center;
	background: var(--msmm-bg);
}

.msmm-loading {
	padding: 40px 0;
	text-align: center;
	color: var(--msmm-muted);
}

.msmm-app {
	max-width: 1120px;
	margin: 0 auto;
	padding-bottom: 96px; /* room for the mobile totals bar */
}

/* ---- header ---------------------------------------------------------- */

.msmm-head {
	padding: 24px 24px 18px;
	border-radius: var(--msmm-radius) var(--msmm-radius) 0 0;
	background: var(--msmm-teal);
	border-bottom: 4px solid var(--msmm-accent);
	color: #fff;
}

.msmm-head-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
}

/* Not started → In progress → Submitted → Report ready */
.msmm-status {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 4px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

.msmm-status li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.msmm-status li + li::before {
	content: "";
	width: 18px;
	height: 2px;
	margin-right: 2px;
	background: rgba(255, 255, 255, 0.25);
}

.msmm-status-dot {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	font-size: 0.7rem;
	line-height: 1;
}

.msmm-status .is-done {
	color: rgba(255, 255, 255, 0.9);
}

.msmm-status .is-done .msmm-status-dot {
	background: var(--msmm-gold);
	border-color: var(--msmm-gold);
	color: var(--msmm-teal-dark);
}

.msmm-status .is-current {
	color: #fff;
}

.msmm-status .is-current .msmm-status-dot {
	border-color: var(--msmm-accent);
	background: var(--msmm-accent);
}

.msmm-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--msmm-muted);
}

.msmm-progress-bar {
	flex: 1 1 auto;
	max-width: 220px;
	height: 6px;
	border-radius: 999px;
	background: var(--msmm-teal-tint);
	overflow: hidden;
}

.msmm-progress-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--msmm-gold);
}

.msmm-tip {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--msmm-teal-tint);
	font-size: 0.88rem;
}

.msmm-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.msmm-sub-name {
	flex: 1 1 auto !important;
	margin: 0;
}

.msmm-root .msmm-sub-name input {
	font-weight: 700;
}

.msmm-sub.is-unused {
	border-left-color: var(--msmm-accent);
}

.msmm-subtotals {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.msmm-subtotals > div {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--msmm-teal-tint);
}

.msmm-subtotals > .is-unused {
	background: #fff4ec;
}

.msmm-subtotals span,
.msmm-subtotals small {
	display: block;
	font-size: 0.82rem;
	color: var(--msmm-muted);
}

.msmm-subtotals strong {
	display: block;
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
}

.msmm-subtotals > .is-unused strong {
	color: #8a3d12;
}

/* ---- Money Mirror reports (above the form) ---- */

.msmm-reports {
	margin: 0;
	padding: 20px 24px;
	background: var(--msmm-gold-tint);
	border: 1px solid var(--msmm-line);
	border-top: 0;
}

.msmm-done .msmm-reports {
	border-radius: 0 0 var(--msmm-radius) var(--msmm-radius);
}

.msmm-report-latest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
}

.msmm-report-latest h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--msmm-teal-dark);
}

.msmm-report-latest p {
	margin: 2px 0 0;
	color: var(--msmm-muted);
}

.msmm-report-latest .msmm-eyebrow {
	margin: 0 0 2px;
	color: var(--msmm-accent-dark);
}

.msmm-report-earlier {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(201, 168, 76, 0.45);
}

.msmm-report-earlier h3 {
	margin: 0 0 6px;
	font-size: 0.95rem;
}

.msmm-report-earlier ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.msmm-report-earlier li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 6px 0;
	font-size: 0.92rem;
}

.msmm-statement-copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.msmm-statement-copy h3,
.msmm-statement-copy p {
	margin: 0;
}

.msmm-statement-copy p {
	color: var(--msmm-muted);
	font-size: 0.92rem;
}

.msmm-gate h2 {
	margin-top: 0;
	color: var(--msmm-teal-dark);
}

.msmm-head h1 {
	margin: 0;
	font-size: clamp(1.4rem, 3.5vw, 1.9rem);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	letter-spacing: -0.01em;
}

.msmm-eyebrow {
	margin: 0 0 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--msmm-gold);
}

.msmm-save {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
}

.msmm-save.is-ok {
	color: #fff;
}

.msmm-save.is-error {
	padding: 4px 10px;
	border-radius: 6px;
	background: #fff;
	color: var(--msmm-bad);
	font-weight: 600;
}

/* ---- step navigation --------------------------------------------------- */

.msmm-steps {
	overflow-x: auto;
	background: var(--msmm-teal-tint);
	border-bottom: 1px solid var(--msmm-line);
	scrollbar-width: none;
}

.msmm-steps::-webkit-scrollbar {
	display: none;
}

.msmm-steps ol {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 10px 16px;
	list-style: none;
}

.msmm-steps li {
	margin: 0;
	flex: 0 0 auto;
}

.msmm-steps button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--msmm-muted);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.msmm-steps button:hover {
	background: rgba(14, 94, 99, 0.08);
	color: var(--msmm-teal-dark);
}

.msmm-step-n {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--msmm-line);
	font-size: 0.8rem;
}

.msmm-steps .is-done .msmm-step-n {
	background: var(--msmm-gold-tint);
	border-color: var(--msmm-gold);
	color: var(--msmm-teal-dark);
}

.msmm-steps .is-current {
	background: var(--msmm-teal);
	color: #fff;
}

.msmm-steps .is-current:hover {
	background: var(--msmm-teal);
	color: #fff;
}

.msmm-steps .is-current .msmm-step-n {
	background: var(--msmm-accent);
	border-color: var(--msmm-accent);
	color: #fff;
}

/* ---- layout ------------------------------------------------------------- */

.msmm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	padding: 28px 24px;
	background: var(--msmm-bg);
	border: 1px solid var(--msmm-line);
	border-top: 0;
	border-radius: 0 0 var(--msmm-radius) var(--msmm-radius);
}

.msmm-step h2 {
	margin: 0 0 6px;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--msmm-teal-dark);
	outline: none;
}

.msmm-intro {
	margin: 0 0 20px;
	color: var(--msmm-muted);
	max-width: 62ch;
}

.msmm-help {
	margin: 4px 0 0;
	font-size: 0.82rem;
	color: var(--msmm-muted);
}

.msmm-opt,
.msmm-req {
	font-weight: 500;
	font-size: 0.8em;
	color: var(--msmm-muted);
}

/* ---- cards, rows, fields ----------------------------------------------- */

.msmm-card {
	margin: 0 0 18px;
	padding: 16px 18px 18px;
	border: 1px solid var(--msmm-line);
	border-radius: var(--msmm-radius);
	background: var(--msmm-bg);
	min-width: 0;
}

.msmm-card legend {
	padding: 0 6px;
	margin-left: -6px;
	font-weight: 700;
	color: var(--msmm-teal-dark);
}

.msmm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.msmm-field {
	margin: 0 0 14px;
	min-width: 0;
}

.msmm-grid > .msmm-field {
	margin: 0;
}

.msmm-field.is-hidden {
	display: none;
}

.msmm-field label,
.msmm-label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.9rem;
	font-weight: 600;
}

.msmm-root input[type="text"],
.msmm-root input[type="email"],
.msmm-root input[type="tel"],
.msmm-root input[type="date"],
.msmm-root input[type="number"],
.msmm-root select,
.msmm-root textarea {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1.5px solid var(--msmm-line);
	border-radius: 8px;
	background: #fff;
	color: var(--msmm-ink);
	font: inherit;
	font-size: 16px; /* stops iOS zooming in on focus */
	box-shadow: none;
}

.msmm-root textarea {
	line-height: 1.55;
	resize: vertical;
}

.msmm-root input:focus,
.msmm-root select:focus,
.msmm-root textarea:focus {
	outline: none;
	border-color: var(--msmm-teal);
	box-shadow: 0 0 0 3px rgba(14, 94, 99, 0.15);
}

.msmm-money {
	position: relative;
	display: flex;
	align-items: center;
}

.msmm-money > span:first-child {
	position: absolute;
	left: 12px;
	color: var(--msmm-muted);
	pointer-events: none;
}

.msmm-root .msmm-money input {
	padding-left: 26px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.msmm-suffix {
	flex: 0 0 auto;
	margin-left: 8px;
	font-size: 0.85rem;
	color: var(--msmm-muted);
	white-space: nowrap;
}

.msmm-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
	margin: 0;
}

.msmm-pair > .msmm-field {
	margin: 0;
}

.msmm-row {
	margin: 0 0 14px;
	padding: 14px 16px 16px;
	border: 1px solid var(--msmm-line);
	border-left: 4px solid var(--msmm-gold);
	border-radius: var(--msmm-radius);
	background: #fff;
}

.msmm-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.msmm-row-head .msmm-field {
	margin: 0;
	flex: 0 1 280px;
}

.msmm-root .msmm-type select {
	font-weight: 700;
	color: var(--msmm-teal-dark);
	background-color: var(--msmm-teal-tint);
	border-color: transparent;
}

.msmm-row > .msmm-field {
	margin: 14px 0 0;
}

.msmm-row-foot {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--msmm-teal);
	font-weight: 600;
}

.msmm-empty {
	padding: 18px;
	border: 1.5px dashed var(--msmm-line);
	border-radius: var(--msmm-radius);
	color: var(--msmm-muted);
	text-align: center;
}

/* ---- buttons ------------------------------------------------------------- */

.msmm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.msmm-btn-primary {
	background: var(--msmm-accent);
	color: #fff;
}

.msmm-btn-primary:hover,
.msmm-btn-primary:focus-visible {
	background: var(--msmm-accent-dark);
	color: #fff;
}

.msmm-btn-primary[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.msmm-btn-secondary {
	background: #fff;
	border-color: var(--msmm-teal);
	color: var(--msmm-teal);
}

.msmm-btn-secondary:hover {
	background: var(--msmm-teal-tint);
}

.msmm-btn-ghost {
	background: transparent;
	color: var(--msmm-muted);
	padding-left: 8px;
	padding-right: 8px;
}

.msmm-btn-ghost:hover {
	color: var(--msmm-ink);
}

.msmm-root button:focus-visible,
.msmm-root a:focus-visible {
	outline: 3px solid var(--msmm-gold);
	outline-offset: 2px;
}

.msmm-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.msmm-choice {
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid var(--msmm-line);
	border-radius: 999px;
	background: #fff;
	color: var(--msmm-ink);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
}

.msmm-choice:hover {
	border-color: var(--msmm-teal);
}

.msmm-choice.is-on {
	background: var(--msmm-teal);
	border-color: var(--msmm-teal);
	color: #fff;
}

.msmm-choices-sm .msmm-choice {
	min-height: 38px;
	padding: 6px 14px;
	font-size: 0.85rem;
}

.msmm-remove,
.msmm-link,
.msmm-x {
	border: 0;
	background: none;
	padding: 4px;
	font: inherit;
	cursor: pointer;
}

.msmm-remove {
	font-size: 0.85rem;
	color: var(--msmm-muted);
	text-decoration: underline;
}

.msmm-remove:hover {
	color: var(--msmm-bad);
}

.msmm-link {
	color: var(--msmm-teal);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.msmm-link-muted {
	color: var(--msmm-muted);
	font-weight: 500;
}

.msmm-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.msmm-add-label {
	width: 100%;
	font-weight: 700;
	font-size: 0.9rem;
}

.msmm-chip {
	min-height: 40px;
	padding: 6px 14px;
	border: 1.5px dashed var(--msmm-teal);
	border-radius: 999px;
	background: var(--msmm-teal-tint);
	color: var(--msmm-teal-dark);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.msmm-chip:hover {
	border-style: solid;
	background: #fff;
}

.msmm-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--msmm-line);
}

.msmm-nav .msmm-btn-primary {
	margin-left: auto;
}

/* ---- spending lines -------------------------------------------------------- */

.msmm-callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: var(--msmm-radius);
	background: var(--msmm-gold-tint);
	border: 1px solid var(--msmm-gold);
	font-size: 0.92rem;
}

.msmm-lines {
	margin-top: 10px;
}

.msmm-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px 36px;
	gap: 8px;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--msmm-teal-tint);
}

.msmm-root .msmm-line-name {
	border-color: transparent;
	background: transparent;
	padding-left: 4px;
}

.msmm-root .msmm-line-name:hover {
	border-color: var(--msmm-line);
}

.msmm-x {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.3rem;
	line-height: 1;
	color: var(--msmm-muted);
}

.msmm-x:hover {
	background: #fdecea;
	color: var(--msmm-bad);
}

.msmm-warn {
	display: none;
	grid-column: 1 / -1;
	margin: 0;
	padding: 6px 10px;
	border-radius: 6px;
	background: #fff4ec;
	color: #8a3d12;
	font-size: 0.82rem;
}

.msmm-line.has-warn .msmm-warn {
	display: block;
}

.msmm-lines-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 0.9rem;
}

/* ---- foundations, goals --------------------------------------------------- */

.msmm-question {
	padding: 14px 0;
	border-bottom: 1px solid var(--msmm-line);
}

.msmm-question p {
	margin: 0 0 10px;
	font-weight: 600;
}

.msmm-prompts {
	margin: 0 0 18px;
	padding-left: 20px;
	color: var(--msmm-muted);
}

/* ---- review ------------------------------------------------------------------ */

.msmm-review {
	margin: 0 0 22px;
	border: 1px solid var(--msmm-line);
	border-radius: var(--msmm-radius);
	overflow: hidden;
}

.msmm-review-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--msmm-line);
}

.msmm-review-line:last-child {
	border-bottom: 0;
}

.msmm-review-line.is-strong {
	background: var(--msmm-teal-tint);
}

.msmm-review-label {
	display: block;
	font-weight: 700;
}

.msmm-review-sub {
	display: block;
	font-size: 0.82rem;
	color: var(--msmm-muted);
}

.msmm-review-value {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.msmm-review-line.is-negative .msmm-review-value {
	color: var(--msmm-bad);
}

.msmm-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 10px 0;
	cursor: pointer;
	font-size: 0.95rem;
}

.msmm-check input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--msmm-teal);
}

.msmm-errors {
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: var(--msmm-radius);
	background: #fdecea;
	border: 1px solid #f3b8b3;
	color: #7a1c16;
}

.msmm-errors ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.msmm-errors li {
	margin: 4px 0;
}

.msmm-previous {
	margin: 18px 0;
}

.msmm-previous h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.msmm-previous ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.msmm-previous li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--msmm-line);
	font-size: 0.92rem;
}

.msmm-discard {
	margin-top: 18px;
}

/* ---- totals panel ---------------------------------------------------------- */

.msmm-totals {
	position: sticky;
	top: 24px;
	align-self: start;
}

.msmm-totals-bar {
	display: none;
}

.msmm-totals-body {
	padding: 18px;
	border-radius: var(--msmm-radius);
	background: var(--msmm-teal-dark);
	color: #fff;
}

.msmm-totals h3 {
	margin: 0 0 12px;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--msmm-gold);
}

.msmm-totals h4 {
	margin: 16px 0 6px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.msmm-networth span {
	display: block;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
}

.msmm-networth strong {
	display: block;
	margin-bottom: 10px;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.msmm-total {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
	font-size: 0.9rem;
}

.msmm-total span {
	color: rgba(255, 255, 255, 0.8);
}

.msmm-total strong {
	font-variant-numeric: tabular-nums;
}

.msmm-total.is-result {
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--msmm-gold);
	color: var(--msmm-ink);
}

.msmm-total.is-result span {
	color: var(--msmm-ink);
	font-weight: 600;
}

.msmm-total.is-result.is-negative {
	background: var(--msmm-accent);
	color: #fff;
}

.msmm-total.is-result.is-negative span {
	color: #fff;
}

.msmm-networth .is-negative {
	color: #ffb48a;
}

.msmm-totals .msmm-help {
	color: rgba(255, 255, 255, 0.7);
}

/* ---- submitted ---------------------------------------------------------------- */

.msmm-done .msmm-card {
	margin-top: 18px;
}

.msmm-thanks {
	text-align: center;
	padding: 32px 24px;
}

.msmm-thanks h2 {
	margin: 8px 0;
	color: var(--msmm-teal-dark);
}

.msmm-tick {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--msmm-gold);
	color: #fff;
	font-size: 1.8rem;
	font-weight: 800;
}

.msmm-again h3 {
	margin: 0 0 6px;
}

/* ---- toast --------------------------------------------------------------------- */

.msmm-toast {
	position: fixed;
	left: 50%;
	bottom: 88px;
	z-index: 1000;
	max-width: min(92vw, 520px);
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--msmm-ink);
	color: #fff;
	font-size: 0.92rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}

.msmm-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---- mobile ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.msmm-layout {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 16px;
	}

	/* Totals become a bar pinned to the bottom of the screen; tap to expand. */
	.msmm-totals {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 999;
		background: var(--msmm-teal-dark);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
	}

	.msmm-totals-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 58px;
		padding: 10px 16px;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: 0.85rem;
		text-align: left;
		cursor: pointer;
	}

	.msmm-totals-bar strong {
		display: block;
		font-size: 1.05rem;
		font-variant-numeric: tabular-nums;
	}

	.msmm-totals-bar small {
		font-size: 0.75rem;
		font-weight: 500;
		opacity: 0.8;
	}

	.msmm-totals-bar .is-negative strong {
		color: #ffb48a;
	}

	.msmm-totals-caret {
		transition: transform 0.2s;
	}

	.msmm-totals.is-open .msmm-totals-caret {
		transform: rotate(180deg);
	}

	.msmm-totals-body {
		display: none;
		max-height: 60vh;
		overflow-y: auto;
		border-radius: 0;
		padding-top: 4px;
	}

	.msmm-totals.is-open .msmm-totals-body {
		display: block;
	}

	.msmm-totals-body h3,
	.msmm-networth {
		display: none;
	}
}

@media (max-width: 600px) {
	.msmm-head {
		padding: 18px 16px 16px;
	}

	.msmm-grid,
	.msmm-subtotals {
		grid-template-columns: minmax(0, 1fr);
	}

	.msmm-steps .msmm-step-t {
		display: none;
	}

	.msmm-steps .is-current .msmm-step-t {
		display: inline;
	}

	.msmm-row {
		padding: 12px 12px 14px;
	}

	.msmm-row-head .msmm-field {
		flex: 1 1 auto;
	}

	.msmm-line {
		grid-template-columns: minmax(0, 1fr) 120px 36px;
	}

	.msmm-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.msmm-nav .msmm-btn {
		width: 100%;
	}

	.msmm-nav .msmm-btn-primary {
		margin-left: 0;
	}

	.msmm-nav > span:empty {
		display: none;
	}
}

@media (max-width: 420px) {
	.msmm-pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.msmm-line {
		grid-template-columns: minmax(0, 1fr) 36px;
		gap: 4px 8px;
	}

	.msmm-root .msmm-line-name {
		grid-column: 1 / -1;
		min-height: 36px;
		padding-top: 4px;
		padding-bottom: 0;
		font-weight: 600;
	}
}
