/* My Home, redesigned 24 October 2026 from the owner's handoff (docs/design/my-home-redesign/README.md).
   Loaded only under /my-home/. Fonts are self-hosted: My Home's privacy notice names no Google service. */
@font-face {
  font-family: "Space Grotesk";
  src: url("./my-home-space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./my-home-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./my-home-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #2a4767;
  --navy-deep: #1b2f45;
  --navy-card: #223a55;
  --navy-line: #33506f;
  --navy-border: #4b6787;
  --navy-border-2: #6f86a0;
  --on-dark: #c9d3df;
  --on-dark-eyebrow: #a9bbd0;
  --on-dark-2: #d5dde7;
  --saved: #8fa7c2;
  --range: #c7d3e1;
  --tint: #eceff5;
  --tint-line: #d9dfe9;
  --ink: #15171a;
  --ink-soft: #4a4e52;
  --faint: #676d67;
  --page: #f6f7f5;
  --surface: #fff;
  --surface-2: #f8faf8;
  --line: #e4e7e3;
  --line-strong: #d4d8d3;
  --line-faint: #eef0ee;
  --input: #b9c2c9;
  --green: #33614e;
  --green-tint: #e6efe9;
  --green-text: #2b5442;
  --green-on-dark: #9fd0b4;
  --amber: #8b4a23;
  --amber-tint: #f6ece4;
  --amber-text: #7a3f1d;
  --amber-dot: #a0562a;
  --red: #943b30;
  --link: #20364e;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 3px solid #ae620f; outline-offset: 3px; }
.num, .mh-money { font-variant-numeric: tabular-nums; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.mh-wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Type */
.mh-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.mh-h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 700; }
.mh-sub { color: var(--ink-soft); margin-top: 8px; }
.mh-caption { font-size: 13px; color: var(--faint); }
.mh-note { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.mh-error { font-size: 14px; color: var(--red); }
.mh-error:empty { display: none; }

/* Buttons */
.mh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 0;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.3;
}
.mh-button:hover { background: var(--navy-deep); color: #fff; }
.mh-button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.mh-button.secondary:hover { border-color: var(--navy); background: var(--surface); color: var(--ink); }
.mh-button.mh-danger { background: var(--red); }
.mh-button.mh-danger:hover { background: #7a2f26; }
.mh-button.lg { min-height: 56px; padding: 14px 26px; border-radius: 10px; font-size: 17px; font-weight: 700; }
.mh-button.light { background: #fff; color: var(--navy-deep); }
.mh-button.light:hover { background: var(--tint); color: var(--navy-deep); }
.mh-button.outline-dark { background: transparent; border: 1px solid var(--navy-border); color: #fff; }
.mh-button.outline-dark:hover { background: var(--navy-card); color: #fff; }
.mh-button.block { display: flex; width: 100%; }
.mh-text-button { border: 0; background: none; padding: 10px 0; color: var(--link); font-weight: 600; font-size: 14px; text-align: left; }
.mh-text-button:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.mh-text-button.danger { color: var(--red); }
.mh-text-link { color: var(--link); font-weight: 600; font-size: 14px; }

/* Cards, pills, figures, bars */
.mh-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.mh-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mh-card-head h2 { font-size: 17px; font-weight: 700; }
.mh-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.mh-pill.ok { background: var(--green-tint); color: var(--green-text); }
.mh-pill.tint { background: var(--tint); color: var(--link); }
.mh-pill.warn { background: var(--amber-tint); color: var(--amber-text); }
/* Four figures across where they fit, two by two otherwise: never three and an orphan. */
.mh-project-main, .mh-l-planner { container-type: inline-size; }
@container (max-width: 560px) { .mh-figs { grid-template-columns: 1fr 1fr !important; } }
.mh-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mh-fig { background: var(--surface); padding: 14px 16px; }
.mh-fig span { display: block; font-size: 12px; color: var(--faint); }
.mh-fig strong { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-fig.tint { background: var(--tint); }
.mh-fig.tint span, .mh-fig.tint strong { color: var(--link); }
.mh-bar { height: 10px; border-radius: 5px; background: var(--line); display: flex; overflow: hidden; }
.mh-bar span:first-child { background: var(--navy); }
.mh-bar span + span { background: var(--saved); }
.mh-forecast-line { font-size: 14px; font-weight: 500; color: var(--green); }
.mh-forecast-line.late { color: var(--amber); }
.mh-forecast-line.plain { color: var(--ink-soft); }

/* Forms */
.mh-field { display: grid; gap: 6px; }
.mh-field label, .mh-label { font-weight: 600; font-size: 14px; }
.mh-field small { font-size: 13px; color: var(--faint); }
.mh-field input, .mh-field select, .mh-field textarea, .mh-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--input); border-radius: 8px;
  font-size: 16px; background: var(--surface); color: var(--ink);
}
.mh-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.mh-form-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.mh-form-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.mh-form-actions > .mh-button { flex: 1 1 140px; }
.mh-form-actions > .mh-text-button { flex-basis: 100%; }
.mh-choice { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.mh-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.mh-choice small { display: block; color: var(--ink-soft); font-size: 13px; }
.mh-plain-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.mh-plain-fieldset legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
input[type="range"] { padding: 0; accent-color: var(--navy); width: 100%; }

/* App shell */
.mh-appbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.mh-appbar .mh-wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.mh-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.mh-brand:hover { color: var(--ink); }
.mh-slash { color: var(--line-strong); }
.mh-product { font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.mh-guide-link { margin-left: auto; font-size: 14px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.mh-guide-link:hover { color: var(--ink); }
.mh-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tint-line); background: var(--tint); color: var(--navy); font-weight: 700; flex: none; }
.mh-avatar[hidden] { display: none; }
.mh-trial { background: var(--navy-deep); color: #fff; }
.mh-trial[hidden] { display: none; }
.mh-trial .mh-wrap { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.mh-trial-chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--navy); padding: 4px 8px; border-radius: 4px; }
.mh-trial span.soft { color: var(--on-dark); }
.mh-trial button { margin-left: auto; border: 1px solid var(--navy-border-2); background: transparent; color: #fff; border-radius: 6px; padding: 7px 14px; font-weight: 600; font-size: 14px; min-height: 40px; }
.mh-trial button:hover { background: var(--navy); }
.mh-demo-note { background: var(--tint); border-bottom: 1px solid var(--tint-line); font-size: 13px; color: var(--link); }
.mh-demo-note .mh-wrap { padding-top: 8px; padding-bottom: 8px; }
.mh-home-context { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 26px 0 18px; }
.mh-home-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.mh-home-identity { min-width: 0; flex: 1; }
.mh-home-identity .mh-eyebrow { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); font-weight: 500; }
.mh-home-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mh-sync { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.mh-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mh-sync[data-state="saved"] { color: var(--green); }
.mh-sync[data-state="error"] { color: var(--red); }
.mh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tabs a { flex: none; padding: 12px 14px 13px; font-size: 15px; font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.mh-tabs a:hover { color: var(--ink); }
.mh-tabs a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.mh-workspace { padding: 30px 0 90px; outline: none; }
.mh-signed-out .mh-home-context, .mh-signed-out .mh-tabs, .mh-signed-out .mh-trial { display: none; }
.mh-signed-out .mh-workspace { padding-top: clamp(28px, 6vw, 72px); }
.mh-app-footer { border-top: 1px solid var(--line); background: var(--surface); }
.mh-app-footer .mh-wrap { padding-top: 18px; padding-bottom: 18px; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.mh-app-footer .mh-by { margin-left: auto; color: var(--faint); }
.mh-noscript { max-width: 1160px; margin: 20px auto; padding: 0 24px; }

/* Page headings and empty states */
.mh-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.mh-page-heading .mh-eyebrow { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 8px; display: block; }
.mh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-empty { padding: 30px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; }
.mh-empty .mh-button { margin-top: 14px; }
.mh-card .mh-empty { border: 0; padding: 20px 0 6px; text-align: left; background: none; }
.mh-rule-note { font-size: 13px; color: var(--faint); margin-top: 18px; }
.mh-rule-note .mh-text-button { font-size: 13px; padding: 0; }
.mh-readonly { background: var(--amber-tint); color: var(--amber-text); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }

/* Sign-up */
.mh-signup { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: flex-start; max-width: 1080px; margin: 0 auto; }
.mh-signup-card { flex: 1 1 380px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; }
.mh-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.mh-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.mh-steps span.on { background: var(--navy); }
.mh-signup-card .mh-eyebrow { letter-spacing: 0.14em; }
.mh-signup-card h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.mh-signup-card > p { color: var(--ink-soft); }
.mh-signup-card form { display: grid; gap: 14px; }
.mh-signup-card .mh-button { width: 100%; min-height: 52px; font-size: 16px; }
.mh-code { font-family: var(--mono) !important; font-size: 26px !important; letter-spacing: 0.4em; min-height: 58px !important; }
.mh-signup-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mh-signup-aside { flex: 1 1 300px; min-width: 0; padding-top: 8px; }
.mh-signup-aside .mh-eyebrow { letter-spacing: 0.14em; }
.mh-includes { list-style: none; margin: 18px 0 0; padding: 0; }
.mh-includes li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.mh-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.mh-includes strong { display: block; font-weight: 600; }
.mh-includes span.d { font-size: 14px; color: var(--ink-soft); }
.mh-after { margin-top: 22px; padding: 20px; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-line); }
.mh-after p:first-child { font-weight: 600; }
.mh-after p + p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.mh-pending { margin: 0; border: 1px solid var(--tint-line); background: var(--tint); border-radius: 12px; padding: 4px 16px; }
.mh-pending-title { font-weight: 600; font-size: 14px; padding: 10px 0 2px; }
.mh-pending div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--tint-line); }
.mh-pending div:first-of-type { border-top: 0; }
.mh-pending dt { font-size: 13px; color: var(--faint); }
.mh-pending dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 420px) { .mh-pending div { grid-template-columns: 1fr; gap: 2px; } }

/* Overview */
.mh-row-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.mh-next { flex: 1.6 1 420px; min-width: 0; }
.mh-next-hero { margin-top: 16px; padding: 20px; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-line); display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.mh-next-hero > div { flex: 1 1 240px; min-width: 0; }
.mh-when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; text-transform: uppercase; }
.mh-when.late, .mh-meta.late { color: var(--amber); }
.mh-next-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 6px; overflow-wrap: anywhere; }
.mh-next-hero .mh-note { margin-top: 6px; }
.mh-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mh-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-faint); }
.mh-group .mh-row { border-bottom: 0; border-top: 1px solid var(--line-faint); }
.mh-row-content { flex: 1; min-width: 0; padding-top: 2px; }
.mh-row-title { font-weight: 600; overflow-wrap: anywhere; }
.mh-meta { font-size: 13px; color: var(--faint); }
.mh-row .mh-note { margin-top: 4px; }
.mh-complete { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #c5ccd3; background: var(--surface); color: var(--navy); font-size: 17px; }
.mh-complete:hover { border-color: var(--navy); background: var(--tint); }
.mh-complete.sm { width: 40px; height: 40px; font-size: 16px; }
.mh-money-card { flex: 1 1 300px; min-width: 0; background: var(--navy-deep); color: #fff; border-radius: 14px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; }
.mh-money-card .mh-card-head a { color: var(--on-dark); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 0; }
.mh-money-card .mh-card-head a:hover { color: #fff; }
.mh-money-card .soft { font-size: 14px; color: var(--on-dark); }
.mh-money-big { font-size: clamp(40px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mh-money-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy-line); border-radius: 10px; overflow: hidden; margin-top: 20px; }
.mh-money-cells div { background: var(--navy-card); padding: 12px 14px; }
.mh-money-cells span { display: block; font-size: 12px; color: var(--on-dark); }
.mh-money-cells strong { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.mh-money-projects { margin-top: 20px; display: grid; gap: 14px; }
.mh-money-projects .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.mh-money-projects .top span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.mh-money-projects .top span + span { color: var(--on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-money-card .mh-bar { height: 8px; border-radius: 4px; background: var(--navy-line); margin-top: 6px; }
.mh-money-card .mh-bar span:first-child { background: #fff; }
.mh-legend { font-size: 12px; color: var(--on-dark); margin-top: auto; padding-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.mh-legend span { display: flex; align-items: center; gap: 6px; }
.mh-legend i { width: 9px; height: 9px; border-radius: 2px; background: #fff; }
.mh-legend i.s { background: var(--saved); }
.mh-money-card .mh-button { margin-top: 18px; align-self: flex-start; }
.mh-recent { margin-top: 20px; }
.mh-recent li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-faint); flex-wrap: wrap; }
.mh-recent li p:first-child { flex: 1 1 200px; font-weight: 600; overflow-wrap: anywhere; }
.mh-date { font-size: 13px; color: var(--faint); font-family: var(--mono); }
.mh-cost { min-width: 70px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Maintenance */
.mh-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.mh-filter { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; }
.mh-filter span { opacity: 0.75; font-variant-numeric: tabular-nums; }
.mh-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.mh-groups { display: grid; gap: 18px; }
.mh-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px clamp(16px, 3vw, 24px); }
.mh-group-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.mh-group-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.mh-group-label.late { color: var(--amber); }
.mh-subsection { margin-top: 22px; }
.mh-subsection summary { cursor: pointer; font-weight: 600; color: var(--link); padding: 8px 0; }

/* Projects */
.mh-projects { display: grid; gap: 20px; }
.mh-project { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mh-project-main { padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.mh-project-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.mh-project-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mh-project-head .mh-meta { font-size: 14px; margin-top: 2px; }
.mh-quotes { border-top: 1px solid var(--line); background: var(--surface-2); padding: clamp(18px, 3vw, 28px); }
.mh-quotes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-quotes-head h3 { font-size: 16px; font-weight: 700; }
.mh-quotes-head h3 span { font-weight: 500; color: var(--faint); }
.mh-quotes-head .mh-button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.mh-quote-list { display: grid; gap: 8px; margin-top: 14px; }
.mh-quote-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.mh-quote-row .name { flex: 1 1 160px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mh-quote-row .diff { font-size: 13px; color: var(--faint); min-width: 120px; text-align: right; }
.mh-quote-row .amt { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.mh-quote-row .mh-note { flex-basis: 100%; font-size: 13px; }
.mh-quote-tools { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.mh-quotes > .mh-caption { margin-top: 12px; }

/* Records */
.mh-search { max-width: 520px; margin-bottom: 22px; }
.mh-record { display: flex; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line-faint); flex-wrap: wrap; align-items: baseline; }
.mh-record > div { flex: 1 1 260px; min-width: 0; }
.mh-record .mh-row-title { font-weight: 600; }
.mh-record .mh-note { margin-top: 2px; }
.mh-record .mh-cost { min-width: 80px; font-weight: 700; }
.mh-record .mh-text-button { padding: 4px 0; }
.mh-record details { margin-top: 8px; font-size: 14px; }
.mh-record summary { cursor: pointer; color: var(--link); font-weight: 600; }

/* Settings */
.mh-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 18px; }
.mh-settings-grid .mh-card { padding: clamp(18px, 3vw, 26px); display: grid; gap: 10px; align-content: start; }
.mh-settings-grid h2 { font-size: 17px; font-weight: 700; }
.mh-settings-grid p { font-size: 14px; color: var(--ink-soft); }
.mh-card.dashed { border-style: dashed; background: transparent; }
.mh-inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.mh-inline-form .mh-field { flex: 1 1 200px; }
.mh-inline-form label { font-size: 13px; }
.mh-subscription { display: grid; gap: 10px; }
.mh-subscription-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.mh-subscription-head h2 { font-size: 19px; font-weight: 700; }
.mh-subscription-head p, .mh-subscription > p { font-size: 14px; color: var(--ink-soft); }
.mh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.mh-plan { text-align: left; padding: 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); display: grid; gap: 2px; }
.mh-plan[aria-pressed="true"] { border-color: var(--navy); background: var(--tint); }
.mh-plan .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mh-plan .top b { font-weight: 700; }
.mh-plan .top i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.mh-plan .price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mh-plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.mh-plan .note { font-size: 13px; color: var(--ink-soft); }
.mh-subscription .mh-button { justify-self: start; min-height: 48px; padding: 10px 22px; }
.mh-test-note { background: var(--amber-tint); color: var(--amber-text); padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* Drawer: the existing <dialog>, as a right-hand sheet */
.mh-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none;
  width: min(480px, 100%); max-width: 100%; border: 0; border-radius: 0; padding: 28px;
  background: var(--surface); color: var(--ink); box-shadow: -12px 0 40px rgba(30, 53, 76, 0.12); overflow: auto;
}
.mh-drawer::backdrop { background: rgba(27, 47, 69, 0.35); }
.mh-drawer > form, .mh-drawer > .mh-drawer-body { display: grid; gap: 18px; }
.mh-drawer > * + * { margin-top: 18px; }
.mh-drawer > p { color: var(--ink-soft); font-size: 15px; }
.mh-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mh-dialog-top h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.mh-dialog-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f0f3f4; font-size: 20px; color: var(--ink); flex: none; }
.mh-dialog-context { font-size: 14px; color: var(--faint); }
.mh-help { font-size: 13px; color: var(--faint); }
.mh-ideas { display: grid; gap: 12px; }
.mh-ideas .mh-choice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.mh-quote { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; margin: 0; }
.mh-quote legend { font-weight: 700; padding: 0 6px; }
.mh-quote-details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.mh-quote-details > p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 12px; }
.mh-quote-details { display: grid; gap: 12px; }
.mh-forecast { background: var(--tint); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.mh-forecast span { display: block; font-size: 12px; color: var(--faint); }
.mh-forecast strong { font-variant-numeric: tabular-nums; }
.mh-forecast > strong { font-size: 22px; display: block; }
.mh-forecast hr { border: 0; border-top: 1px solid var(--tint-line); margin: 10px 0; }
.mh-forecast small { display: block; color: var(--faint); margin-top: 6px; }

/* Toast */
.mh-status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; z-index: 50; max-width: calc(100% - 32px); font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); min-height: 44px; }
.mh-status:empty { display: none; }
.mh-status button { border: 0; background: var(--navy); color: #fff; border-radius: 7px; padding: 8px 14px; font-weight: 600; min-height: 40px; flex: none; }

/* Legal pages */
.mh-legal { max-width: 760px; margin: 44px auto 80px; padding: 0 24px; }
.mh-legal h1 { margin: 30px 0 20px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; }
.mh-legal h2 { margin: 32px 0 12px; }
.mh-legal p { margin-bottom: 16px; line-height: 1.8; }
.mh-legal li { margin-bottom: 8px; }

/* Landing (Landing B) */
.mh-l-band { background: var(--navy-deep); color: #fff; }
.mh-l-wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(18px, 4vw, 40px); padding-right: clamp(18px, 4vw, 40px); }
.mh-l-head { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.mh-l-head .mh-brand, .mh-l-head .mh-product { color: #fff; }
.mh-l-head .mh-slash { color: var(--navy-border-2); }
.mh-l-nav { margin-left: auto; display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mh-l-nav a { color: var(--on-dark); text-decoration: none; }
.mh-l-nav a:hover { color: #fff; }
.mh-l-nav a.cta { padding: 9px 16px; border-radius: 8px; background: #fff; color: var(--navy-deep); font-weight: 600; }
.mh-l-nav a.cta:hover { background: var(--tint); }
.mh-l-hero { text-align: center; padding-top: clamp(40px, 7vw, 88px); }
.mh-l-hero .mh-eyebrow, .mh-l-pricing .mh-eyebrow { color: var(--on-dark-eyebrow); }
.mh-l-hero h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; margin: 20px auto 22px; max-width: 15ch; text-wrap: balance; }
.mh-l-lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--on-dark); max-width: 620px; margin: 0 auto; text-wrap: pretty; }
.mh-l-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.mh-l-small { font-size: 14px; color: var(--on-dark-eyebrow); margin-top: 16px; }
.mh-l-panel { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1040px; background: var(--surface); color: var(--ink); border-radius: 18px 18px 0 0; text-align: left; padding: clamp(18px, 3.4vw, 36px); box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18); }
.mh-l-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mh-l-panel-head .t { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.mh-l-panel-head .s { font-size: 14px; color: var(--faint); }
.mh-l-panel-head .x { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.mh-l-scale { position: relative; height: 74px; margin: 26px 8px 8px; }
.mh-l-scale .track, .mh-l-scale .fill { position: absolute; left: 0; top: 34px; height: 6px; border-radius: 3px; background: var(--line); right: 0; }
.mh-l-scale .fill { right: auto; width: 75%; background: var(--range); }
.mh-l-scale .budget { position: absolute; left: 75%; top: 4px; bottom: 0; width: 2px; background: var(--ink); }
.mh-l-scale .budget-label { position: absolute; left: 75%; top: -18px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.mh-l-scale .dot { position: absolute; top: 28px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); }
.mh-l-scale .dot.warn { border-color: var(--amber-dot); }
.mh-l-scale .end { position: absolute; bottom: 0; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mh-l-scale .end.l { left: 0; }
.mh-l-scale .end.r { right: 0; }
.mh-l-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 18px; }
.mh-l-quote { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.mh-l-quote .who { font-weight: 600; }
.mh-l-quote .amt { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mh-l-quote .mh-pill { margin-top: 6px; }
.mh-l-quote .n { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.mh-l-section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.mh-l-split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.mh-l-split.center { align-items: center; }
.mh-l-split.rev { flex-wrap: wrap-reverse; }
.mh-l-copy { flex: 1 1 320px; min-width: 0; }
.mh-l-copy h2, .mh-l-pricing h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin-top: 14px; text-wrap: balance; }
.mh-l-copy p:not(.mh-eyebrow) { color: var(--ink-soft); margin-top: 16px; max-width: 440px; text-wrap: pretty; }
.mh-l-checks { flex: 1.3 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.mh-l-checks li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.mh-l-checks .n { font-family: var(--mono); font-size: 13px; color: var(--navy); font-weight: 600; padding-top: 3px; }
.mh-l-checks .t { font-weight: 700; font-size: 18px; }
.mh-l-checks .d { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.mh-l-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mh-l-planner { flex: 1.2 1 400px; min-width: 0; background: var(--page); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 30px); }
.mh-l-planner > p:first-child { font-weight: 700; font-size: 17px; }
.mh-l-planner .mh-figs { margin-top: 16px; }
.mh-l-planner .mh-bar { margin-top: 18px; }
.mh-l-planner .mh-forecast-line { margin-top: 12px; }
.mh-l-h2s { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; max-width: 640px; text-wrap: balance; }
.mh-l-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 30px; }
.mh-l-cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.mh-l-cards .t { font-weight: 700; font-size: 18px; }
.mh-l-cards .d { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.mh-l-pricing .mh-l-split { align-items: center; gap: clamp(28px, 5vw, 64px); }
.mh-l-pricing .mh-l-copy { flex: 1 1 340px; }
.mh-l-trust { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; color: var(--on-dark-2); }
.mh-l-trust li { display: flex; gap: 12px; }
.mh-l-trust li::before { content: "✓"; color: var(--green-on-dark); font-weight: 700; }
.mh-l-price-card { flex: 1 1 360px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 18px; padding: clamp(22px, 3.4vw, 34px); border: 0; margin: 0; }
.mh-l-toggle { display: flex; background: var(--tint); border-radius: 10px; padding: 4px; }
.mh-l-toggle label { flex: 1; min-height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; padding: 0 8px; }
.mh-l-price-card input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
#mh-bill-month:checked ~ .mh-l-toggle label[for="mh-bill-month"],
#mh-bill-year:checked ~ .mh-l-toggle label[for="mh-bill-year"] { background: #fff; box-shadow: 0 1px 3px rgba(21, 23, 26, 0.12); }
#mh-bill-month:focus-visible ~ .mh-l-toggle label[for="mh-bill-month"],
#mh-bill-year:focus-visible ~ .mh-l-toggle label[for="mh-bill-year"] { outline: 3px solid #ae620f; outline-offset: 2px; }
.mh-l-price { display: none; }
#mh-bill-month:checked ~ .mh-l-price.m, #mh-bill-year:checked ~ .mh-l-price.y { display: block; }
.mh-l-price .big { font-size: clamp(48px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; margin-top: 22px; font-variant-numeric: tabular-nums; line-height: 1; }
.mh-l-price .big small { font-size: 18px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.mh-l-price .pn { color: var(--ink-soft); margin-top: 8px; }
.mh-l-price-card .mh-button { margin-top: 24px; }
.mh-l-price-card .mh-caption { margin-top: 12px; text-align: center; }
.mh-l-faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 40px; margin-top: 20px; }
.mh-l-faqs > div { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.mh-l-faqs .q { font-weight: 700; font-size: 17px; }
.mh-l-faqs .a { color: var(--ink-soft); margin-top: 6px; text-wrap: pretty; }
.mh-l-founder { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 28px; }
.mh-l-founder > div { display: flex; align-items: center; gap: 16px; }
.mh-l-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.mh-l-founder p { color: var(--ink-soft); max-width: 420px; }
.mh-l-preview { background: var(--amber-tint); color: var(--amber-text); text-align: center; font-size: 14px; padding: 10px 16px; }
.mh-footer { border-top: 1px solid var(--line); }
.mh-footer .mh-l-wrap { padding-top: 22px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-soft); }
.mh-footer .r { margin-left: auto; }

@media (max-width: 520px) {
  .mh-l-ctas .mh-button { width: 100%; }
  .mh-appbar .mh-guide-link { font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mh-button, .mh-filter, .mh-complete, .mh-plan { transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
}
/* Phase 1 (25 October 2026): guide prices, home profile, reminders and calendar link. */
.mh-price { font-size: 13px; color: var(--ink-soft); margin-top: 4px; font-variant-numeric: tabular-nums; }
.mh-price a { font-weight: 600; }
.mh-price-news { font-size: 13px; background: var(--tint); color: var(--link); border-radius: 10px; padding: 8px 12px; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mh-price-news .mh-text-button { padding: 4px 0; font-size: 13px; }
.mh-stack { display: grid; gap: 14px; }
.mh-stack > .mh-button { justify-self: start; }
.mh-radio-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.mh-rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.mh-dialog-h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.mh-suggestion { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mh-suggestion .mh-field { margin: 0 0 0 32px; max-width: 220px; }
#feed-url { font-size: 13px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.mh-radio-row .mh-choice, .mh-plain-fieldset > .mh-choice { padding: 4px 0; min-height: 32px; }
.mh-plain-fieldset legend { overflow-wrap: anywhere; }
/* Phase 2 (25 October 2026): the home file and its printed summary. */
.mh-file-progress { margin: 4px 0 18px; color: var(--ink-soft); font-size: 15px; }
.mh-file-row { align-items: center; }
.mh-file-row .mh-pill { flex: none; }
.mh-rule-note p + p { margin-top: 10px; }
.mh-print { display: none; }
@media print {
  body.mh-printing > *:not(#mh-print) { display: none !important; }
  body.mh-printing { background: #fff; }
  body.mh-printing .mh-print { display: block; color: #000; font: 10.5pt/1.4 "Space Grotesk", Arial, sans-serif; }
  .mh-print h1 { font-size: 17pt; margin: 0 0 6pt; }
  .mh-print h2 { font-size: 12.5pt; margin: 16pt 0 6pt; }
  .mh-print table { width: 100%; border-collapse: collapse; }
  .mh-print th, .mh-print td { border: 1px solid #999; padding: 4pt 6pt; text-align: left; vertical-align: top; }
  .mh-print tr { break-inside: avoid; }
}
.mh-files { margin-top: 8px; }
.mh-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; margin: 2px 0; }
.mh-file a { font-weight: 600; overflow-wrap: anywhere; }
.mh-file span { color: var(--faint); font-size: 13px; }
.mh-file .mh-text-button { padding: 6px 0; font-size: 13px; }
