/* Our Home modules. Matches the existing site: dark #22262c, yellow #ffd21f, Arial/system text. All classes are prefixed oh- so nothing clashes with the garage page. */
.oh { color-scheme: light dark; --ink: light-dark(#2e3338, #e8e6e1); --muted: light-dark(#6f7479, #a3a8ae); --line: light-dark(#ebe5da, #30353d); --bg: light-dark(#f4efe6, #252930); --field: light-dark(#fff, #1c1f24); --fieldline: light-dark(#b9bfc8, #3a414b); --yellow: #f5cf6b; --dark: #3d4a57; --late: light-dark(#b5473f, #ee8f87); --soon: light-dark(#b7791f, #e8b86a); --ok: light-dark(#3f7d5c, #7cc4a0); --link: light-dark(#1f4fbf, #8fb0ff); --warmbg: light-dark(#fdf6e3, #2c281d); --warmline: light-dark(#f1dc9e, #5e5130); color: var(--ink); font: 16px/1.5 Arial, Helvetica, system-ui, sans-serif; }
.oh h2 { font-size: 20px; margin: 22px 0 8px; }
.oh h3 { font-size: 17px; margin: 0 0 10px; grid-column: 1 / -1; }
.oh-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.oh-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.oh-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.oh-count { background: var(--yellow); color: #2e3338; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.oh-msg { background: var(--warmbg); border: 1px solid var(--warmline); border-radius: 6px; padding: 10px 12px; margin: 8px 0; }
.oh-upsell { background: light-dark(#e3ecf4, #2a2f37); color: var(--ink); border-radius: 8px; padding: 12px 14px; margin: 8px 0 14px; }
.oh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.oh-kpi { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.oh-kpi b { display: block; font-size: 26px; } .oh-kpi span { font-size: 13px; color: var(--muted); }
.oh-kpi.late { background: light-dark(#fde4e1, #3a2422); } .oh-kpi.late b { color: var(--late); }
.oh-kpi.soon { background: light-dark(#fdf0d5, #3a3020); } .oh-kpi.soon b { color: var(--soon); }
.oh-list { list-style: none; margin: 0; padding: 0; }
.oh-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 10px 12px 14px; border-top: 1px solid var(--line); border-left: 4px solid var(--ok); }
.oh-row.st-soon { border-left-color: var(--soon); } .oh-row.st-late { border-left-color: var(--late); }
.oh-row small { display: block; color: var(--muted); font-size: 13px; }
.oh-row .oh-tip { color: var(--ink); background: var(--bg); padding: 6px 8px; border-radius: 6px; margin-top: 6px; }
.oh-when { text-align: right; white-space: nowrap; }
.oh-row.st-soon .oh-when b { color: var(--soon); } .oh-row.st-late .oh-when b { color: var(--late); }
.oh-actions { display: block; margin-top: 4px; }
.up { color: var(--late); } .down { color: var(--ok); }
.oh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.oh-head p { margin: 0 0 8px; color: var(--muted); }
.oh-btn { background: var(--yellow); color: #2e3338; border: 0; border-radius: 10px; box-shadow: 0 1px 2px #0000001f; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.oh-btn:disabled, .oh-chip:disabled { opacity: .45; cursor: not-allowed; }
.oh-link { background: none; border: 0; color: var(--link); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.oh-link.danger { color: var(--late); }
.oh-uphead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
.oh-uphead h2 { margin: 0; }
.oh-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.oh-fchip { background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; min-height: 36px; font: inherit; font-size: 14px; cursor: pointer; }
.oh-fchip span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.oh-fchip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #2e3338; font-weight: 700; }
.oh-fchip[aria-pressed="true"] span { color: #5a4413; }
.oh-fchip:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.oh-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.oh-chip { background: var(--field); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px #0000000d; border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.oh-chip:hover { border-color: var(--yellow); }
.oh-empty { color: var(--muted); background: var(--bg); border-radius: 8px; padding: 14px; }
.oh-small { font-size: 13px; color: var(--muted); }
.oh-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; background: var(--bg); border-radius: 8px; padding: 14px; margin: 10px 0 14px; }
.oh-form label { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; gap: 4px; }
.oh-form label small { font-weight: 400; color: var(--muted); }
.oh-form input, .oh-form select, .oh-form textarea, .oh-inline select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--fieldline); border-radius: 6px; background: var(--field); color: var(--ink); min-height: 44px; box-sizing: border-box; }
.oh-form .oh-wide { grid-column: 1 / -1; }
.oh-form .oh-check { flex-direction: row; align-items: center; font-weight: 400; }
.oh-form .oh-check input { min-height: 0; width: 20px; height: 20px; }
.oh-formbtns { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.oh-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; margin: 6px 0; }
.oh-app { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.oh-app.major { border-color: var(--warmline); background: var(--warmbg); }
.oh-app p { margin: 4px 0; } .oh-app small { display: block; color: var(--muted); font-size: 13px; }
.oh-app .oh-closing { color: var(--late); font-weight: 700; }
.oh-app a { font-size: 14px; color: var(--link); }
.oh-badge { display: inline-block; background: #f9e3a8; color: #5a4413; border-radius: 4px; padding: 1px 6px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 560px) {
  .oh-kpis { grid-template-columns: repeat(2, 1fr); }
  .oh-row { flex-direction: column; gap: 4px; } .oh-when { text-align: left; }
  .oh-head { flex-direction: column; }
}

/* Money tab */
.oh-kpi.good b { color: var(--ok); } .oh-kpi.good { background: light-dark(#e3f1e8, #1f2d25); }
.oh-chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 200px; padding: 8px 0 22px; border-bottom: 1px solid var(--line); }
.oh-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.oh-bar span { display: block; width: 100%; background: var(--yellow); border-radius: 4px 4px 0 0; }
.oh-bar.fc span { background: light-dark(#fbeec4, #4a4128); border: 1px dashed light-dark(#d9b24a, #b89a4a); border-bottom: 0; }
.oh-bar small { position: absolute; bottom: -20px; left: 0; font-size: 11px; color: var(--muted); white-space: nowrap; }
.oh-legend { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oh-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--yellow); }
.oh-legend .sw.fc { background: light-dark(#fbeec4, #4a4128); border: 1px dashed light-dark(#d9b24a, #b89a4a); margin-left: 10px; }
.oh-note { background: var(--warmbg); border: 1px solid var(--warmline); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.oh-cats { display: grid; gap: 8px; }
.oh-cat { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; }
.oh-meter { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.oh-meter i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.oh-hist { margin-top: 8px; background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.oh-hist ul { margin: 4px 0; padding-left: 18px; }
@media (max-width: 560px) { .oh-chart { gap: 2px; height: 160px; } .oh-bar small { font-size: 10px; } .oh-cat { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; font-size: 14px; } }
.oh-inline select { width: auto; max-width: 100%; }
.oh-tabs button { flex: none; } @media (max-width: 560px) { .oh-tabs button { padding: 10px 11px; } }
/* Help with bills (nursery funding etc.) */
.oh-headbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oh-fund { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.oh-fund legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.oh-fund small { color: var(--muted); font-size: 13px; }
.oh-fundrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.oh-fundrow select, .oh-fundrow input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--fieldline); border-radius: 6px; background: var(--field); color: var(--ink); min-height: 44px; min-width: 0; }
.oh-fundbtns { display: flex; gap: 12px; flex-wrap: wrap; }
.oh-fundnet { margin: 0; font-size: 14px; }
.oh-fundline { color: var(--ok) !important; }
.oh-help { background: light-dark(#e6f0e8, #1f2d25); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 10px 0 0; }
@media (max-width: 560px) { .oh-fundrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .oh-fundrow [name=flabel] { grid-column: 1 / -1; } }
.oh-head .oh-headbtns { flex-wrap: nowrap; flex: none; }
/* Buttons: keep the label centred inside its bubble at every width */
.oh-btn, .oh-chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; line-height: 1.2; white-space: nowrap; flex: none; min-height: 44px; padding: 10px 18px; font-family: inherit; }
.oh-chip { min-height: 40px; padding: 8px 14px; }
.oh-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.oh-head .oh-chip { min-height: 44px; font-size: 15px; padding: 10px 16px; }
