.omg-root{display:grid;gap:16px;align-content:start}
.omg-root .omg-header{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.omg-root .omg-header h2{margin:0;font:700 clamp(24px,3.5vw,32px) Georgia,serif}
.omg-header p{margin:3px 0 0;color:var(--muted);font-size:14px}
.omg-month{display:flex;gap:10px;align-items:center;justify-content:center;background:var(--soft);border-radius:10px;padding:7px}
.omg-month strong{font-size:17px;min-width:154px;text-align:center}
.omg-month button{width:42px;height:42px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:25px;line-height:1}
.omg-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.omg-stat{display:grid;gap:7px;background:var(--soft);padding:15px;border:1px solid var(--line);border-radius:12px}
.omg-stat small{color:var(--muted);font-weight:750;font-size:13px}
.omg-stat strong{font-size:clamp(24px,3.5vw,37px);line-height:1.1;font-variant-numeric:tabular-nums}
.omg-stat span{color:var(--muted);font-size:12px}
.omg-root h3{font-size:18px;margin:0;color:var(--ink)}
.omg-breakdown{display:grid;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.omg-breakdown-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 15px;border-bottom:1px solid var(--line);font-size:14px}
.omg-breakdown-row strong{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.omg-profit-row{background:var(--soft)}
.omg-profit-row .omg-breakdown-row:last-child{border:0}
.omg-profit-row .omg-breakdown-row:first-child{font-weight:850}
.omg-profit-row .omg-breakdown-row:first-child strong{color:var(--ink)}
.omg-disclaimer{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.omg-details{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
.omg-details>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:16px;min-height:64px}
.omg-details>summary::-webkit-details-marker{display:none}
.omg-details>summary>span:first-child{display:grid;gap:3px}
.omg-details>summary strong{font-size:16px}
.omg-details>summary small{font-size:12px;color:var(--muted)}
.omg-details>summary>span:last-child{font-size:22px;color:var(--pink)}
.omg-details[open]>summary>span:last-child{transform:rotate(45deg)}
.omg-details-body{padding:16px;border-top:1px solid var(--line);display:grid;gap:14px;line-height:1.6}
.omg-details-body p{margin:0}
.omg-details-body>p{font-size:14px}
.omg-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.omg-input{display:grid;gap:6px;color:var(--ink);font-size:14px;font-weight:700}
.omg-input input{width:100%;min-width:0;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:11px;font-size:17px;min-height:46px;font-variant-numeric:tabular-nums}
.omg-input input:disabled{opacity:.72}
.omg-help{color:var(--muted);font-size:13px!important}
.omg-save{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.omg-save button,.omg-secondary-save{border:1px solid var(--pink);border-radius:9px;background:var(--pink);color:white;font-size:14px;font-weight:800;padding:11px 15px;min-height:44px}
.omg-save span{font-size:13px;color:var(--muted)}
.omg-manual-result{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.omg-manual-result .omg-breakdown-row:last-child{border:0}
.omg-error{color:var(--pink);font-weight:700;min-height:0;margin:0}
.omg-error:empty{display:none}
.omg-root button:focus-visible,.omg-root summary:focus-visible,.omg-root input:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
@media(max-width:740px){.omg-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.omg-stat:last-child{grid-column:1/-1}}
@media(max-width:430px){.omg-stats{grid-template-columns:1fr}.omg-stat:last-child{grid-column:auto}.omg-inputs{grid-template-columns:1fr}.omg-stat{padding:13px}.omg-details>summary{padding:13px}.omg-details-body{padding:13px}.omg-root .omg-header h2{font-size:26px}}

/* Compact Money & Goals layout for the Owner’s phone. */
@media(max-width:740px){
 .omg-root{gap:12px;padding:15px}
 .omg-root .omg-header{display:block}
 .omg-month{justify-content:space-between;background:transparent;border-block:1px solid var(--line);border-radius:0;padding:2px 0;gap:6px}
 .omg-month strong{min-width:0}
 .omg-month button{width:44px;height:44px;border:0;background:transparent}
 .omg-stats{grid-template-columns:1fr;gap:0;border-bottom:1px solid var(--line)}
 .omg-stats .omg-stat{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;padding:6px 0;min-height:52px;background:transparent;border:0;border-radius:0;grid-column:auto}
 .omg-stat + .omg-stat{border-top:1px solid var(--line)}
 .omg-stat small{grid-column:1}
 .omg-stat > span{grid-column:1}
 .omg-stat > :is(strong,.omg-edit-value){grid-column:2;grid-row:1 / span 2;justify-self:end}
 .omg-stat strong{font-size:clamp(18px,5.2vw,25px)}
 .omg-root .omg-edit-value{border:0;background:transparent;padding:0 2px 0 8px;gap:6px;color:var(--ink)}
 .omg-root .omg-edit-value strong{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
 .omg-root .omg-edit-value:hover:not(:disabled) strong{text-decoration-color:var(--pink)}
 .omg-stat .omg-inline-edit{grid-column:1 / -1;width:100%;margin-block:5px}
}

/* Give the monthly goal and guest counts their own visual hierarchy. */
.omg-stats .omg-stat:first-child {
 background:linear-gradient(135deg,#771630,#a62248);color:#fff8ef;
 border:1px solid transparent;border-radius:12px;padding:13px 15px;
}
.omg-stats .omg-stat:first-child small,.omg-stats .omg-stat:first-child .omg-edit-value {color:#fff8ef}
.omg-stats .omg-stat:first-child .omg-edit-value {background:transparent;border-color:#ffffff75}
.omg-stats .omg-stat:first-child .omg-edit-value span {color:#fff8ef}
.omg-stats .omg-stat:first-child .omg-edit-value strong {text-decoration-color:#ffffff9c}
.omg-stats .omg-stat:first-child .omg-edit-value:focus-visible {outline-color:#fff}
.omg-stats .omg-stat:first-child .omg-inline-edit .omg-input,
.omg-stats .omg-stat:first-child .omg-inline-edit .omg-error {color:#fff8ef}
.omg-stats .omg-stat:first-child .omg-inline-edit .omg-input span {color:inherit}
.omg-guest-targets {background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:13px 15px}
.omg-guest-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}
.omg-guest-grid > div {display:grid;gap:4px}
.omg-guest-grid > div + div {border-inline-start:1px solid var(--line);padding-inline-start:14px}
.omg-guest-grid small,.omg-guest-days > span {color:var(--muted);font-size:13px}
.omg-guest-grid strong {font-size:clamp(22px,6vw,30px);font-variant-numeric:tabular-nums}
.omg-guest-days {display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:6px;border-top:1px solid var(--line)}

.gm-money-panel {
 --ink:#fff4ec;--muted:#d2bec5;--paper:#21191e;--soft:#32252e;--line:#684954;--pink:#dc7497;
 min-width:0;
}
html[data-theme="light"] .gm-money-panel {
 --ink:#431c0d;--muted:#705245;--paper:#fffaf2;--soft:#f6ebdf;--line:#d8bda9;--pink:#af2447;
}
.gm-money-panel .omg-root {
 color:var(--ink);background:var(--paper);border:1px solid var(--line);
 border-radius:14px;padding:clamp(14px,3vw,26px);
}
.gm-money-panel .omg-header h2 {display:none}
.gm-money-panel .omg-month button {display:grid;place-items:center;padding:0}
