:root{font:15px/1.5 system-ui,sans-serif;color:#20324d;background:#f3f6fa;--accent:#426da9}*{box-sizing:border-box}body{margin:0}header{padding:22px 5%;background:white;border-bottom:1px solid #dce4ee;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:12px;font-size:25px;font-weight:750;text-decoration:none;color:var(--accent)}.brand span{font-size:18px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#68798e}main{max-width:1250px;margin:auto;padding:36px 24px}h1{font-size:34px;letter-spacing:-1px;margin:0}h2{font-size:20px;margin:0 0 18px}h3{margin:0}p{color:#61738a}button,select,input,textarea{font:inherit;border:1px solid #cbd6e4;border-radius:9px;padding:10px 13px;background:white;color:inherit}button{cursor:pointer}button:hover{border-color:var(--accent);background:#eaf0f8}button.primary{background:var(--accent);color:white;border-color:var(--accent)}.top,.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:750}.tools{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:25px 0}.card,.panel{background:white;border:1px solid #dfe6ef;border-radius:16px;padding:22px}.card strong{display:block;font-size:28px;letter-spacing:-1px;margin:10px 0}.card.featured{background:#26466f;color:white}.card small{opacity:1;color:#61738a}.card.featured small{color:#dce7f6}.columns{display:grid;grid-template-columns:1.7fr 1fr;gap:20px}.panel{margin-bottom:20px}.muted{color:#61738a;font-size:13px}.tag{background:#eaf0f8;color:var(--accent);border-radius:6px;font-size:11px;padding:4px 7px;display:inline-block}.row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #edf1f6;padding:17px 0}.row:first-of-type{border-top:0}.row .grow{flex:1}.avatar{width:40px;height:40px;display:grid;place-items:center;background:#eaf0f8;border-radius:11px;color:var(--accent);font-weight:700}.amount{text-align:right;white-space:nowrap}.amount strong{display:block}button.small{padding:5px 8px;font-size:12px}.empty{padding:24px 0;color:#61738a}.note{padding:16px 20px;border-left:3px solid #a9bdd8;background:#eaf0f8;border-radius:6px;font-size:13px}.danger{color:#a13b32}footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}dialog{border:0;border-radius:18px;width:min(680px,95vw);padding:28px;max-height:90vh;box-shadow:0 25px 100px #20324d33}dialog::backdrop{background:#20324d66}form .fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:flex;flex-direction:column;gap:5px;font-size:13px}label.wide{grid-column:1/-1}textarea{min-height:70px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#20324d;color:white;border-radius:8px;padding:12px 22px;display:none}progress{width:100%;accent-color:#426da9;height:7px}.intro{margin:8px 0 0}@media(max-width:850px){.cards{grid-template-columns:1fr 1fr}.columns{grid-template-columns:1fr}.top{align-items:flex-start}h1{font-size:28px}}@media(max-width:480px){header{padding:16px}.brand span{font-size:15px}main{padding:24px 15px}.cards{gap:10px}.card{padding:16px}.card strong{font-size:24px}.top{flex-direction:column}.row{gap:9px}.avatar{display:none}form .fields{grid-template-columns:1fr}label.wide{grid-column:auto}.panel{padding:17px}}
.cards.costs{grid-template-columns:repeat(2,1fr)}.cards.business-cards{grid-template-columns:repeat(3,1fr)}.analytics{margin:16px 0 24px;padding-top:24px;border-top:1px solid #dce4ee}.analytics>.sectionhead{align-items:flex-end}.analytics h2{margin:0}.checkbox{flex-direction:row;align-items:center;gap:10px}.checkbox input{width:20px;height:20px;accent-color:var(--accent)}.fields .wide{grid-column:1/-1}.onboarding{margin:26px 0}.onboarding p{margin:5px 0 12px}.grow{min-width:0;overflow-wrap:anywhere}.sectionhead{flex-wrap:wrap}.brand{min-width:0}header>div{display:flex;gap:8px}#toast{max-width:calc(100vw - 30px);width:max-content}input,select,textarea{max-width:100%}@media(max-width:600px){.cards.business-cards{grid-template-columns:1fr}.brand small{font-size:8px}.analytics>.sectionhead{align-items:center}}@media(max-width:360px){.cards.costs{grid-template-columns:1fr}header{gap:8px}.brand span{font-size:13px}}
.redsmile-credit{display:flex;align-items:center;gap:18px;margin-top:32px;padding-top:24px;border-top:1px solid #dce4ee;color:#61738a;font-size:13px}.redsmile-credit img{filter:grayscale(1) invert(1) brightness(3);mix-blend-mode:screen;object-fit:contain;display:block;max-width:136px;height:auto}.redsmile-credit a{display:block;background:#26466f;padding:12px 16px;border-radius:10px}.redsmile-credit a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sync-strip{margin-top:20px}.sync-strip button{font-size:12px;padding:6px 10px;background:#eaf0f8}.sync-settings{margin:20px 0;padding:18px;border:1px solid #dce4ee;border-radius:12px}.sync-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.signin{display:inline-block;padding:8px 12px;border:1px solid #cbd6e4;border-radius:9px;color:#426da9;text-decoration:none;font-size:13px}.signin.primary{background:#426da9;color:white}

.area-suggestions{margin-top:16px;padding-top:18px;border-top:1px solid #edf1f6}.area-suggestions h3{font-size:14px}.area-suggestions p{margin:6px 0 12px}.area-chips{display:flex;flex-wrap:wrap;gap:8px}.area-chips button{font-size:13px;padding:7px 10px;border-radius:20px;background:#f5f8fc}.area-chips button span:first-child{display:inline-block;width:17px;color:var(--accent)}.cost-chart h2{margin:0}.cost-chart .sectionhead p{margin:5px 0 0}.cost-bars{list-style:none;padding:0;margin:24px 0 2px;display:grid;grid-template-columns:1fr 1fr;gap:20px 32px}.bar-label{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px;font-size:14px}.bar-label>span:first-child{overflow-wrap:anywhere;min-width:0}.bar-label>span:last-child{white-space:nowrap}.bar-label small{display:inline-block;min-width:48px;text-align:right}.bar-track{height:9px;background:#eaf0f8;border-radius:8px;overflow:hidden}.bar-fill{height:100%;background:var(--accent);border-radius:8px;min-width:2px}.chart-empty{display:flex;align-items:center;gap:16px;margin-top:18px;padding:12px 0}.chart-empty>span{font-size:36px;color:#8ca6c9}.chart-empty p{font-size:14px;margin:0}@media(max-width:650px){.cost-bars{grid-template-columns:1fr;gap:18px}.bar-label{font-size:13px}.bar-label small{min-width:43px}.cost-chart h2{font-size:18px}}

.feedback-link{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #cbd6e4;border-radius:9px;background:white;color:var(--accent);font-size:12px;text-decoration:none}.feedback-link:hover{border-color:var(--accent);background:#eaf0f8}.feedback-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.feedback-callout{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:20px 22px;border:1px solid #cedcf0;border-radius:14px;background:#edf3fc}.feedback-callout p{margin:0;max-width:650px;font-size:14px;line-height:1.65;color:#526983}.feedback-callout .feedback-link{flex-shrink:0;justify-content:center;padding:12px 18px;background:#426da9;border-color:#426da9;color:white;font-size:14px;font-weight:650;box-shadow:0 3px 9px #426da920}.feedback-callout .feedback-link:hover{background:#345b91;border-color:#345b91}.feedback-callout .feedback-link:focus-visible{outline-color:#345b91}@media(max-width:600px){.feedback-callout{align-items:flex-start;flex-direction:column;gap:14px;padding:18px}.feedback-callout .feedback-link{max-width:100%;white-space:normal}}

button.primary:hover{background:#345b91;border-color:#345b91}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.status-active{margin:4px 0;background:#eaf0f8}.status-paused{margin:4px 0;background:#fff3d9;color:#75520a}.status-cancelled{margin:4px 0;background:#edf0f4;color:#536175}.amount>div button{margin:5px 0 0 5px}.inactive-cost{max-width:170px;white-space:normal;font-size:11px}.calendar-action{margin-top:8px}button:disabled{cursor:not-allowed;opacity:.55}.amount>div{max-width:230px;white-space:normal}@media(max-width:480px){.amount>div{max-width:150px}.amount>div button{margin-left:0}.tools #state-filter{width:100%}}
.actions{flex-wrap:wrap}dialog{color:#20324d}dialog .actions button{max-width:100%;white-space:normal}

/* The form body scrolls; the action bar always remains in the visible dialog. */
dialog{padding:0;overflow:hidden;max-height:min(90vh,var(--dialog-space));max-height:min(90dvh,var(--dialog-space))}#editor{display:flex;flex-direction:column;max-height:min(90vh,var(--dialog-space));max-height:min(90dvh,var(--dialog-space));min-height:0}.dialog-body{padding:26px 28px 18px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scroll-padding:16px}.dialog-body>h2{margin-top:0}#editor>.actions{flex-shrink:0;position:relative;margin:0;padding:14px 28px max(14px,env(safe-area-inset-bottom));border-top:1px solid #dfe6ef;background:white;box-shadow:0 -5px 12px #20324d06}#editor>.actions button{min-height:44px}.calendar-google{display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;border-radius:9px;background:#426da9;color:white;font-weight:650;text-decoration:none}.calendar-google:hover{background:#345b91}.calendar-google:focus-visible{outline:2px solid #26466f;outline-offset:3px}.calendar-file{margin:18px 0;padding:14px;border:1px solid #dfe6ef;border-radius:10px}.calendar-file summary{cursor:pointer;font-weight:600;font-size:14px}.calendar-file label{margin-top:16px}.calendar-download{max-width:100%;white-space:normal}@media(max-width:600px){dialog{width:calc(100vw - 20px);max-height:var(--dialog-space)}#editor{max-height:var(--dialog-space)}.dialog-body{padding:20px 18px 16px}#editor>.actions{padding:12px 18px max(12px,env(safe-area-inset-bottom));gap:8px}#editor>.actions button{padding:10px 12px;flex:1}#editor>.actions #delete{flex:0 1 auto}.calendar-google{width:100%;text-align:center}}

.admin-person{padding:16px 0;border-bottom:1px solid #dfe6ef}.admin-person h3{font-size:15px;overflow-wrap:anywhere}.admin-person dl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0 0;font-size:13px}.admin-person dt{color:#61738a}.admin-person dd{margin:0;text-align:right}.admin-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}#admin-access:empty{display:none}

.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #dfe6ef;flex-shrink:0;background:white}.dialog-heading h2{margin:0;font-size:20px}.dialog-dismiss{border:0;background:transparent;font-size:28px;line-height:1;padding:6px 10px;min-width:44px;min-height:44px;color:#61738a}.extra-fields{border-top:1px solid #dfe6ef;padding-top:14px;margin-top:2px}.extra-fields summary{cursor:pointer;font-weight:600;color:#426da9;font-size:14px}.extra-fields>.fields{margin-top:16px}.extra-fields[open]{padding-bottom:8px}#editor>.dialog-body{padding-top:18px}
@media(max-width:600px){
 dialog{inset:0;margin:0;width:100%;max-width:100%;height:var(--dialog-height,100dvh);max-height:var(--dialog-height,100dvh);border-radius:0;border:0}
 #editor{height:100%;max-height:100%}.dialog-heading{padding:10px 16px max(10px,env(safe-area-inset-top));min-height:62px}.dialog-heading h2{font-size:19px}.dialog-body{flex:1;padding:16px;scroll-padding-bottom:24px}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px;min-height:44px;width:100%;min-width:0}.dialog-body label{min-width:0;gap:4px}
 #editor>.actions{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.fields.subscription-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.subscription-fields>label:has([name=name]),.subscription-fields>label:has([name=status]),.subscription-fields>label:has([name=nextDue]),.subscription-fields>label:has([name=kind]),.subscription-fields>label:has([name=project]),.subscription-fields>.extra-fields{grid-column:1/-1}.extra-fields .fields{grid-template-columns:1fr}
}

html.editor-open,html.editor-open body{overflow:hidden;overscroll-behavior:none}dialog[open]{overscroll-behavior:none;touch-action:pan-y pinch-zoom}#editor{width:100%;min-width:0;overflow:hidden}.dialog-body{overflow-x:hidden;overscroll-behavior:none;touch-action:pan-y pinch-zoom;max-width:100%;overflow-wrap:anywhere}.dialog-heading,#editor>.actions{touch-action:manipulation}.dialog-body .fields,.dialog-body details{min-width:0;max-width:100%}@media(max-width:600px){dialog[open]{left:0;right:0;width:100%;max-width:100%;transform:none}.dialog-heading,#editor>.actions{width:100%;min-width:0}}

.brand picture{display:block}.brand #brand-logo{display:block;width:360px;max-width:100%;height:auto}.brand{flex-shrink:1;max-width:calc(100% - 170px)}header{padding-top:12px;padding-bottom:12px}header>div{flex-shrink:0}@media(max-width:600px){.brand #brand-logo{width:235px}.brand{max-width:calc(100% - 118px)}header{gap:12px;padding:12px 16px}header>div button{padding:9px 10px;font-size:13px}}@media(max-width:360px){header{gap:8px;padding:10px 12px}.brand{max-width:calc(100% - 108px)}}

.brand{align-items:center;gap:12px;color:#20324d}.brand .brand-mark{display:block;width:65px;height:auto;flex-shrink:0}.brand .brand-copy{display:block;position:relative;padding-bottom:20px;min-width:0}.brand .brand-title{display:block;font:700 34px/1.2 system-ui,sans-serif;letter-spacing:-1px;white-space:nowrap;color:#20324d}.brand #brand-logo{position:absolute;left:0;bottom:0;display:block;width:100%;height:auto;max-width:100%}@media(max-width:600px){.brand{gap:8px}.brand .brand-mark{width:38px}.brand .brand-copy{padding-bottom:0}.brand .brand-title{font-size:28px;letter-spacing:-1px}.brand #brand-logo{display:none}}@media(max-width:360px){.brand .brand-mark{width:30px}.brand .brand-title{font-size:28px;letter-spacing:-1px}}

@media(min-width:601px) and (max-width:850px){.brand .brand-title{font-size:28px}}

.settings-icon{display:none}@media(max-width:600px){header{flex-wrap:nowrap;gap:8px;padding:16px 12px}header>div{display:flex;align-items:center;gap:6px;flex-shrink:0}.brand{gap:6px;flex-shrink:0}#settings{display:grid;place-items:center;width:44px;height:44px;padding:10px;flex-shrink:0}.settings-icon{display:block;width:22px;height:22px}.settings-label{display:none}#install:not([hidden]){position:fixed;right:12px;bottom:12px;z-index:10;box-shadow:0 2px 8px #20324d22}}
