[hidden]{display:none!important}
:root{--navy:#2b183e;--ink:#251d2c;--muted:#695f72;--line:#e5ddec;--paper:#d5c7df;--teal:#6d4bb3;--soft:#d9cbe2}*{box-sizing:border-box}body{margin:0;font-family:"Aptos","Segoe UI Variable","Segoe UI",Tahoma,sans-serif;background:var(--paper);color:var(--ink)}button,input,select,textarea{font:inherit}.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:26px;background:linear-gradient(155deg,#21122f,#3b2353)}.auth-brand{display:flex;align-items:center;gap:12px;color:white;margin-bottom:18px}.auth-brand img{width:64px;height:64px;object-fit:contain}.auth-brand b,.auth-brand span{display:block}.auth-brand b{font-size:20px}.auth-brand span{opacity:.72;font-size:12px}.auth-card{width:min(100%,480px);background:#dfd1e8;border-radius:28px;padding:24px;box-shadow:0 28px 70px #0004}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#cdb9dc;border-radius:14px;padding:4px}.auth-tabs button{border:0;background:transparent;padding:11px;border-radius:11px;font-weight:800;color:#72677b}.auth-tabs button.active{background:#dfd1e8;color:var(--ink);box-shadow:0 2px 9px #0001}.auth-form{display:grid;gap:14px;padding-top:22px}.auth-form h1{margin:0;font-size:30px}.auth-form p{color:var(--muted);margin:0 0 7px}.auth-form label,.form-grid label{display:grid;gap:6px;font-size:12px;font-weight:800}.auth-form input,.form-grid input,.form-grid select,.form-grid textarea,.chat-compose textarea{width:100%;border:1px solid var(--line);background:#e5dbea;border-radius:13px;padding:13px;outline:0}.auth-form input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.chat-compose textarea:focus{border-color:#7b5bbd;box-shadow:0 0 0 3px #7b5bbd1f}.primary,.ghost{border:0;border-radius:999px;padding:12px 17px;font-weight:850;cursor:pointer}.primary{background:var(--teal);color:#fff}.ghost{background:#dfd1e8;border:1px solid var(--line);color:var(--ink)}.status{min-height:22px;font-size:12px;color:#b44}.back-site{display:block;text-align:center;margin-top:15px;color:#75687f;text-decoration:none;font-weight:750;font-size:12px}.portal-head{height:78px;background:#dfd1e8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1180px)/2));position:sticky;top:0;z-index:10}.portal-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.portal-brand img{width:48px;height:48px;object-fit:contain}.portal-brand b,.portal-brand small{display:block}.portal-brand small{color:var(--muted)}.head-actions{display:flex;gap:8px}.portal-shell main{width:min(1180px,calc(100% - 34px));margin:auto;padding:36px 0 90px}.welcome{display:grid;grid-template-columns:1.25fr .75fr;gap:22px;align-items:stretch;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:900;color:#d8c8f2}.eyebrow.dark{color:#6d4bb3}.welcome h1{font-family:Georgia,serif;font-size:clamp(42px,6vw,72px);font-weight:500;letter-spacing:-.04em;margin:5px 0 5px}.welcome p,.muted{color:var(--muted)}.next-card{background:var(--navy);color:#fff;border-radius:24px;padding:24px;display:flex;flex-direction:column;justify-content:center}.next-card small{color:#d8c8f2;font-weight:900;letter-spacing:.04em}.next-card strong{font-size:24px;margin:7px 0}.next-card span{color:#d7cbdf;font-size:13px}.portal-tabs{display:flex;gap:7px;overflow-x:auto;padding:5px 0 14px;scrollbar-width:none}.portal-tabs button{white-space:nowrap;border:1px solid var(--line);background:#dfd1e8;border-radius:999px;padding:10px 15px;font-weight:800;color:#6d6176;position:relative}.portal-tabs button.active{background:var(--navy);color:white;border-color:var(--navy)}.portal-tabs i{position:absolute;width:8px;height:8px;border-radius:50%;background:#e04949;right:5px;top:5px}.tab{display:none}.tab.active{display:block}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#dfd1e8;border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:18px;box-shadow:0 8px 28px rgba(0,0,0,.06)}.panel.narrow{max-width:760px;margin-left:auto;margin-right:auto}.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:15px}.panel h2{margin:4px 0 4px;font-size:23px}.panel-head p{margin:0;color:var(--muted);font-size:13px}.stack{display:grid;gap:10px}.clean-card,.request-row,.receipt-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:#e5dbea}.clean-card{display:flex;justify-content:space-between;gap:14px}.clean-card strong{display:block}.clean-card small{display:block;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;border-radius:999px;background:#f0e9f9;color:#5b3d96;padding:5px 8px;font-size:12px;font-weight:900;text-transform:uppercase}.account-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-details div{padding:12px;border-radius:14px;background:#f8f4fb}.account-details small,.account-details strong{display:block}.account-details small{color:var(--muted);font-size:12px;letter-spacing:.04em}.link{border:0;background:none;color:#5b3d96;font-weight:850;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .wide{grid-column:1/-1}.request-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.request-row small{display:block;color:var(--muted)}.receipt-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.receipt-card h3{margin:3px 0}.receipt-card p{color:var(--muted);font-size:12px}.receipt-card button{margin-top:5px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.photo-tile{border:0;padding:0;background:#eee8f2;border-radius:15px;overflow:hidden;aspect-ratio:4/3;position:relative;cursor:pointer}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-tile span{position:absolute;left:8px;right:8px;bottom:8px;background:#261633d9;color:white;border-radius:9px;padding:6px 8px;font-size:12px;text-align:left}.chat-panel{max-width:820px;margin:auto}.chat-messages{min-height:380px;max-height:58dvh;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:9px;background:#f7f3fa;border-radius:18px}.bubble{max-width:78%;padding:10px 13px;border-radius:16px;background:#dfd1e8;border:1px solid var(--line);align-self:flex-start}.bubble.mine{align-self:flex-end;background:#6d4bb3;color:#fff;border-color:#6d4bb3}.bubble small{display:block;opacity:.65;font-size:12px;margin-top:4px}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:10px;align-items:end}.chat-compose textarea{resize:none}.photo-dialog,dialog{border:0;border-radius:24px;padding:24px;max-width:min(760px,calc(100% - 24px));box-shadow:0 30px 90px #0007}.photo-dialog{padding:12px;background:#21122f;color:#fff}.photo-dialog img{max-height:78dvh;max-width:100%;display:block;border-radius:16px}.dialog-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#dfd1e8;color:#392447;font-size:24px;z-index:2}.receipt-sheet h2{margin-bottom:3px}.receipt-sheet .receipt-meta{color:var(--muted);margin-bottom:18px}.receipt-total{font-size:28px;font-weight:900;margin:18px 0}.receipt-lines{display:grid;gap:8px}.receipt-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(30px);opacity:0;background:#3a2251;color:#fff;padding:11px 16px;border-radius:999px;font-size:12px;font-weight:800;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:720px){.portal-head{height:70px;padding:0 14px}.portal-brand img{width:42px;height:42px}.head-actions .ghost{padding:8px 11px;font-size:12px}.portal-shell main{width:min(100% - 22px,1180px);padding-top:24px}.welcome{grid-template-columns:1fr}.welcome h1{font-size:45px}.grid.two,.receipt-list{grid-template-columns:1fr}.panel{padding:17px;border-radius:19px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.account-details{grid-template-columns:1fr 1fr}.photo-grid{grid-template-columns:1fr 1fr}.clean-card{align-items:flex-start}.chat-messages{min-height:54dvh}.auth-card{padding:18px;border-radius:22px}}@media(max-width:420px){.account-details{grid-template-columns:1fr}.portal-brand small{display:none}.photo-grid{grid-template-columns:1fr 1fr}}
.receipt-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.receipt-photo-btn{border:1px solid var(--line);background:#d5c7df;border-radius:12px;padding:9px 11px;font-weight:800;color:var(--ink);cursor:pointer}.receipt-photo-btn span{margin-right:5px}

.access-notice{max-width:1180px;margin:0 auto 18px;padding:15px 17px;border-radius:16px;border:1px solid #dfd0ef;background:#d5c7df;color:#432b59;line-height:1.5}.access-notice strong{display:block;margin-bottom:3px}.access-notice.pending{background:#fff9e9;border-color:#efd79a}.access-notice.prospect{background:#f5effb;border-color:#d9c6ed}.portal-tabs button[hidden]{display:none!important}

/* Live cleaning status */
.clean-card-live{align-items:flex-start}.clean-card-main{min-width:0;flex:1}.clean-live-status{margin-top:11px;padding:11px 12px;border-radius:14px;background:#f5f0fa;border:1px solid #e1d4ef}.clean-live-status .live-status-copy{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.clean-live-status .live-status-copy strong{font-size:12px;color:#5b3d96}.clean-live-status .live-status-copy span{font-size:12px;color:var(--muted);text-align:right}.clean-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin-top:11px}.progress-step{position:relative;text-align:center;padding-top:16px;color:#887596;font-size:12px}.progress-step:before{content:'';position:absolute;top:5px;left:0;right:0;height:2px;background:#e1d4ef}.progress-step:first-child:before{left:50%}.progress-step:last-child:before{right:50%}.progress-step i{position:absolute;z-index:1;top:1px;left:50%;transform:translateX(-50%);width:10px;height:10px;border-radius:50%;background:#cbb9dd;border:2px solid #f5f0fa}.progress-step.done:before,.progress-step.active:before{background:#7b5bbd}.progress-step.done i,.progress-step.active i{background:#7b5bbd}.progress-step.active{font-weight:900;color:#5b3d96}.progress-step small{font-size:12px;line-height:1.2}.clean-live-status.stopped{display:grid;gap:2px;background:#f5f1f1;border-color:#e2cece}.clean-live-status.stopped span{font-size:12px;color:var(--muted)}.next-card .clean-live-status{background:#3c2454;border-color:#654783;color:#fff;margin-top:14px}.next-card .clean-live-status .live-status-copy strong{color:#fff}.next-card .clean-live-status .live-status-copy span{color:#d7c7e7}.next-card .progress-step{color:#b4a0c7}.next-card .progress-step.active{color:#dfcff3}.next-card .progress-step:before{background:#654783}.next-card .progress-step.done:before,.next-card .progress-step.active:before{background:#8564c9}.next-card .progress-step i{border-color:#3c2454;background:#9277a8}.next-card .progress-step.done i,.next-card .progress-step.active i{background:#8564c9}
@media(max-width:520px){.clean-live-status .live-status-copy{display:block}.clean-live-status .live-status-copy span{display:block;text-align:left;margin-top:2px}.progress-step small{font-size:12px}.clean-card-live{display:grid;grid-template-columns:1fr auto}}
.owner-login-link{display:block;margin:18px 0 4px;text-align:center;font-weight:800;color:#5b3d96;text-decoration:none}.owner-login-link:hover{text-decoration:underline}

/* Portal polish v10 */
.portal-shell main{padding-top:28px}.welcome{background:linear-gradient(135deg,#2a173b,#43265f);border-radius:30px;padding:28px 30px;color:#fff;box-shadow:0 20px 55px rgba(0,0,0,.14)}.welcome .eyebrow{color:#dfcff3}.welcome p{color:#d9cde2}.welcome h1{font-size:clamp(40px,5vw,64px)}.next-card{background:#241431;border:1px solid #ffffff1c;box-shadow:inset 0 1px 0 #ffffff12}.next-cleaning-btn{margin-top:14px;border:0;border-radius:999px;background:#dfd1e8;color:#432c55;padding:10px 14px;font-weight:900;cursor:pointer;align-self:flex-start}.portal-tabs{position:sticky;top:78px;z-index:8;background:linear-gradient(var(--paper) 72%,transparent);padding-top:10px}.portal-tabs button{box-shadow:0 4px 14px rgba(0,0,0,.06)}.panel{border-color:#e5ddec;box-shadow:0 12px 34px rgba(0,0,0,.08)}.panel:hover{border-color:#dacfe4}.clean-card{padding:17px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#e5dbea);transition:.18s ease;border-color:#e5ddec}.clean-card:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.08);border-color:#d4c5df}.clean-card-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.clean-card-heading>div:first-child{min-width:0}.clean-card-heading strong{font-size:15px}.clean-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.status-tag,.payment-tag{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:950;letter-spacing:.02em;white-space:nowrap}.status-tag{background:#eee8f5;color:#665375}.status-scheduled{background:#f0e9fa;color:#6547a8}.status-on-the-way{background:#f0e9f8;color:#5b3d96}.status-arrived{background:#f3eef8;color:#6d6175}.status-cleaning{background:#fff3d8;color:#8a6514}.status-finished{background:#f1ecf8;color:#5f4399}.status-cancelled,.status-skipped{background:#f5eaea;color:#884b4b}.payment-tag{background:#f4eff9;color:#695078}.clean-card-summary{margin:11px 0 0;color:var(--muted);font-size:12px}.clean-card-actions{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}.primary.compact,.ghost.compact{padding:9px 13px;font-size:12px}.cleaning-history-list{grid-template-columns:1fr 1fr}.cleaning-history-list .clean-card{height:100%}.cleaning-dialog{width:min(760px,calc(100% - 24px));padding:0;overflow:hidden;background:#dfd1e8}.cleaning-workorder{padding:28px}.workorder-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.workorder-top h2{font-family:Georgia,serif;font-size:32px;font-weight:500;margin:5px 0 2px}.workorder-top p{margin:0;color:var(--muted)}.workorder-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.workorder-grid>div{background:#f7f3fa;border:1px solid #e9e1ef;border-radius:14px;padding:12px}.workorder-grid small,.workorder-grid strong{display:block}.workorder-grid small{font-size:12px;letter-spacing:.03em;color:var(--muted);margin-bottom:4px}.workorder-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.workorder-section h3{margin:0 0 10px;font-size:15px}.work-list{display:grid;gap:7px}.work-list>div{display:flex;align-items:center;gap:9px;border:1px solid #eae2f0;background:#e5dbea;border-radius:12px;padding:10px 12px}.work-list>div span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f0e9f8;color:#5b3d96;font-weight:900}.work-list>div strong{font-size:12px}.cleaning-note{padding:11px 12px;background:#f7f3fa;border:1px solid #e1d6e8;border-radius:8px;margin:7px 0;font-size:12px}.workorder-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.workorder-photos button{border:1px solid #e7ddec;background:#e5dbea;border-radius:12px;padding:11px;text-align:left;font-weight:800;color:var(--ink);cursor:pointer}.photo-icon{margin-right:6px}.workorder-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.photo-tile{box-shadow:0 8px 20px rgba(0,0,0,.08)}.photo-tile:hover img{transform:scale(1.02)}.photo-tile img{transition:.2s ease}.request-row{background:#dfd1e8}.chat-messages{background:#f4eff8}.bubble{box-shadow:0 3px 10px rgba(0,0,0,.06)}.account-details div{border:1px solid #e5dbea}.receipt-sheet{min-width:min(560px,80vw)}
@media(max-width:820px){.cleaning-history-list{grid-template-columns:1fr}.workorder-grid{grid-template-columns:1fr 1fr}.portal-tabs{top:70px}.welcome{padding:22px}.clean-card-heading{display:block}.clean-tags{justify-content:flex-start;margin-top:9px}}
@media(max-width:520px){.portal-shell main{width:min(100% - 16px,1180px)}.welcome{border-radius:22px;padding:20px}.welcome h1{font-size:38px}.panel{padding:15px;border-radius:18px}.clean-card{padding:14px}.clean-card-actions{display:grid;grid-template-columns:1fr 1fr}.clean-card-actions .primary,.clean-card-actions .ghost{width:100%}.workorder-grid{grid-template-columns:1fr 1fr}.workorder-photos{grid-template-columns:1fr}.cleaning-workorder{padding:20px}.workorder-top h2{font-size:26px}.workorder-actions{display:grid;grid-template-columns:1fr 1fr}.next-cleaning-btn{width:100%;text-align:center}.portal-tabs{margin-left:-4px;margin-right:-4px}.portal-tabs button{padding:9px 13px}.photo-grid{gap:8px}}
/* Portal polish v11 */
.clean-card[data-cleaning-card]{cursor:pointer}.clean-card[data-cleaning-card]:focus-within{outline:2px solid #7b5bbd;outline-offset:2px}.workorder-photo-card{position:relative;padding:0!important;overflow:hidden;aspect-ratio:4/3;background:#f2edf7!important}.workorder-photo-card img{width:100%;height:100%;object-fit:cover;display:block}.workorder-photo-card span{position:absolute;left:8px;right:8px;bottom:8px;background:#2b183edf;color:#fff;border-radius:9px;padding:7px 8px;font-size:12px}.status-tag:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;opacity:.85}.status-cleaning{outline:2px solid #d7b47a;outline-offset:1px;box-shadow:none}.status-on-the-way,.status-arrived,.status-cleaning{animation:statusPulse 2.4s ease-in-out infinite}@keyframes statusPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(.94)}}.clean-card-actions button{transition:.15s ease}.clean-card-actions button:active{transform:translateY(1px)}.cleaning-dialog::backdrop,.photo-dialog::backdrop,#receiptDialog::backdrop{background:#1d1029c7;backdrop-filter:blur(4px)}.cleaning-dialog .dialog-close{box-shadow:0 4px 16px #0002}.workorder-section p{line-height:1.6}.receipt-sheet{padding:4px}.portal-tabs button{cursor:pointer}.portal-tabs button:focus-visible,.primary:focus-visible,.ghost:focus-visible,.link:focus-visible,.photo-tile:focus-visible{outline:3px solid #8564c9;outline-offset:2px}.photo-tile span{backdrop-filter:blur(5px)}
@media(max-width:520px){.portal-head{box-shadow:0 2px 16px rgba(0,0,0,.07)}.portal-tabs{gap:5px;padding-bottom:11px}.portal-tabs button{flex:1;text-align:center;min-width:max-content}.clean-card-heading strong{font-size:14px}.clean-card small{font-size:12px}.status-tag,.payment-tag{font-size:12px}.clean-card-actions{grid-template-columns:1fr auto}.clean-card-actions .ghost{width:auto}.cleaning-dialog{max-width:100%;width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;max-height:92dvh}.cleaning-dialog[open]{position:fixed;left:0;right:0;bottom:0;top:auto}.cleaning-workorder{max-height:92dvh;overflow:auto;padding:22px 18px 28px}.workorder-top{padding-right:36px}.photo-dialog{max-width:calc(100% - 12px);padding:8px}.photo-dialog img{max-height:82dvh}.chat-compose{grid-template-columns:1fr}.chat-compose .primary{width:100%}}
/* Work-order photo fix v12 */
.workorder-photo-card{padding:0!important;overflow:hidden;position:relative;aspect-ratio:4/3;background:#f2edf7!important;display:block;width:100%}.workorder-photo-card img{width:100%;height:100%;object-fit:cover;display:block}.workorder-photo-card>span{position:absolute;left:8px;right:8px;bottom:8px;background:#2b183ee8;color:#fff;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:850;text-align:left;white-space:normal}.workorder-photo-card img:not([src]){visibility:hidden}@media(max-width:520px){.workorder-photo-card{aspect-ratio:16/10}.workorder-photo-card>span{font-size:12px;padding:7px 9px}}

/* Work-order scroll fix v13 */
.cleaning-dialog{max-height:calc(100dvh - 32px);overflow:hidden}
.cleaning-workorder{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
@media(max-width:520px){.cleaning-dialog{max-height:92dvh}.cleaning-workorder{max-height:92dvh}}

/* Receipt + dialog polish v13 */
#receiptDialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.detailed-receipt{min-width:0}.receipt-brand{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-right:42px}.receipt-brand h2{margin:4px 0 0;font-size:28px}.receipt-number{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);white-space:nowrap}.receipt-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:20px 0}.receipt-meta-grid>div{background:#f8f4fb;border:1px solid #e5dbea;border-radius:13px;padding:11px 12px}.receipt-meta-grid small,.receipt-meta-grid strong{display:block}.receipt-meta-grid small{font-size:12px;letter-spacing:.03em;color:var(--muted);margin-bottom:4px}.receipt-meta-grid a,.receipt-footer a{color:#5b3d96;text-decoration:none}.receipt-wide{grid-column:1/-1}.receipt-section{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.receipt-section h3{margin:0 0 10px;font-size:14px}.receipt-note{background:#f7f3fa;border:1px solid #e1d6e8;border-radius:8px;padding:10px 12px;margin:7px 0;font-size:12px;line-height:1.5}.receipt-total-row{display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--ink);margin-top:22px;padding-top:15px;font-size:18px}.receipt-total-row strong{font-size:28px}.receipt-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:520px){#receiptDialog{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0}.receipt-brand{display:block}.receipt-number{display:block;margin-top:7px}.receipt-meta-grid{grid-template-columns:1fr}.receipt-wide{grid-column:auto}.receipt-footer{display:grid}.receipt-total-row strong{font-size:24px}}

/* Receipt download v14 */
.receipt-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:520px){.receipt-actions{display:grid;grid-template-columns:1fr}.receipt-actions .primary,.receipt-actions .ghost{width:100%}}

/* Itemized receipt v15 */
.receipt-charge-section{background:#e5dbea;border:1px solid #e9e0ef;border-radius:16px;padding:16px!important;margin-top:20px}.receipt-charge-section h3{margin-top:0}.receipt-billing{display:grid;border:1px solid #e8dfee;border-radius:14px;overflow:hidden;background:#dfd1e8}.receipt-bill-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:12px 14px;border-bottom:1px solid #eee7f2}.receipt-bill-line:last-child{border-bottom:0}.receipt-bill-line>div{min-width:0}.receipt-bill-line strong{font-size:12px}.receipt-bill-line>div>strong,.receipt-bill-line small{display:block}.receipt-bill-line small{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}.receipt-bill-line.included{background:#e5dbea}.receipt-bill-line.included>strong{color:#6547a8}.receipt-bill-total{background:#321c47;color:#fff;padding:15px 14px}.receipt-bill-total small{color:#d6c9df}.receipt-bill-total>strong{font-size:18px}@media(max-width:520px){.receipt-charge-section{padding:12px!important}.receipt-bill-line{gap:10px;padding:11px}.receipt-bill-line>strong{white-space:nowrap}}

/* Full customer portal expansion v16 */
.portal-command{background:linear-gradient(145deg,#fff,#d5c7df)}.portal-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}.portal-stat-grid>div{border:1px solid #e9e0ef;background:#faf7fc;border-radius:15px;padding:14px}.portal-stat-grid small,.portal-stat-grid strong{display:block}.portal-stat-grid small{font-size:12px;letter-spacing:.03em;color:var(--muted);margin-bottom:5px}.portal-stat-grid strong{font-size:20px}.portal-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.portal-action-grid button{border:1px solid #e4daeb;background:#dfd1e8;border-radius:16px;padding:15px;text-align:left;cursor:pointer;color:var(--ink);transition:.16s}.portal-action-grid button:hover{border-color:#bda7d7;transform:translateY(-1px);box-shadow:0 7px 18px rgba(0,0,0,.08)}.portal-action-grid b,.portal-action-grid span{display:block}.portal-action-grid b{font-size:13px}.portal-action-grid span{color:var(--muted);font-size:12px;margin-top:4px;line-height:1.35}.portal-action-dialog{width:min(620px,calc(100% - 20px));max-height:90dvh;overflow:auto}.portal-action-dialog h2{margin:5px 0}.portal-dialog-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.portal-schedule-row,.portal-payment-row,.portal-doc-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e8dfee;background:#e5dbea;border-radius:15px;padding:14px}.portal-schedule-row>div:first-child,.portal-payment-row>div:first-child{display:grid;gap:4px}.portal-schedule-row small,.portal-payment-row small,.portal-doc-row small{color:var(--muted)}.portal-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.danger-text{color:#9a4747!important}.portal-safety-note{font-size:12px;color:#7b6565;background:#fff7f0;border:1px solid #eadbcf;border-radius:12px;padding:10px 12px;margin-top:14px}.portal-toggle-list{display:grid;gap:8px;margin-bottom:14px}.portal-toggle-list label{display:flex;gap:10px;align-items:flex-start;border:1px solid #eae2f0;border-radius:13px;padding:11px;background:#e5dbea}.portal-toggle-list input{margin-top:3px}.portal-toggle-list b,.portal-toggle-list small{display:block}.portal-toggle-list small{font-size:12px;color:var(--muted);margin-top:2px}.portal-payment-list,.portal-document-list,.portal-notification-list{display:grid;gap:9px}.portal-payment-row>strong{font-size:18px}.portal-doc-group{display:grid;gap:8px}.portal-doc-group+ .portal-doc-group{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.portal-doc-group h3{margin:0 0 3px}.portal-doc-row>span{font-size:22px}.portal-doc-row>div{flex:1}.portal-doc-row strong,.portal-doc-row small{display:block}.portal-notification{width:100%;border:1px solid #e8dfee;background:#dfd1e8;border-radius:14px;padding:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;color:var(--ink);cursor:pointer}.portal-notification>span{width:9px;height:9px;border-radius:50%;background:#8564c9}.portal-notification.read>span{background:#d9d0df}.portal-notification.read{opacity:.72}.portal-notification strong,.portal-notification small{display:block}.portal-notification small{color:var(--muted);margin-top:2px}.portal-notification i{font-style:normal;font-size:20px;color:#887a91}.referral-card{border:1px solid #e5dceb;background:linear-gradient(135deg,#f4effa,#fff);border-radius:18px;padding:18px;margin-bottom:14px}.referral-card>span,.referral-card>strong,.referral-card>small{display:block}.referral-card>span{font-size:12px;letter-spacing:.12em;color:#73558e;font-weight:900}.referral-card>strong{font-size:26px;margin:5px 0}.referral-card>small{color:var(--muted);word-break:break-all}.referral-card>div,.contact-card>div{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.contact-card{border:1px solid #e8dfee;border-radius:16px;padding:15px}.contact-card p{color:var(--muted);font-size:12px}.contact-card a{text-decoration:none;display:inline-flex;align-items:center}.portal-approval-wrap{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.portal-approval-wrap h3{margin:0 0 10px}.portal-approval-card{border:1px solid #e5d6a6;background:#fff9e6;border-radius:16px;padding:14px;display:flex;justify-content:space-between;gap:15px;align-items:center}.portal-approval-card p{margin:4px 0;color:#6c6656;font-size:12px}.portal-approval-card>div:last-child{display:flex;gap:7px}
@media(max-width:760px){.portal-stat-grid{grid-template-columns:1fr 1fr}.portal-action-grid{grid-template-columns:1fr 1fr}.portal-schedule-row,.portal-payment-row{align-items:flex-start;flex-direction:column}.portal-row-actions{width:100%;justify-content:flex-start}.portal-tabs{padding-left:2px;padding-right:2px}.portal-tabs button{flex:none}.portal-approval-card{align-items:flex-start;flex-direction:column}}
@media(max-width:440px){.portal-action-grid{grid-template-columns:1fr}.portal-stat-grid{grid-template-columns:1fr 1fr}.portal-stat-grid strong{font-size:17px}.portal-doc-row{align-items:flex-start}.portal-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.portal-dialog-actions button{width:100%}}

.photo-date-group{grid-column:1/-1;display:grid;gap:9px}.photo-date-head{display:flex;justify-content:space-between;align-items:center}.photo-date-head small{color:var(--muted)}.photo-date-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.photo-date-grid .photo-tile{width:100%}@media(max-width:720px){.photo-date-grid{grid-template-columns:1fr 1fr}}@media(max-width:420px){.photo-date-grid{grid-template-columns:1fr 1fr}}

/* Portal chat photos + shared documents v16 */
.chat-attach-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chat-photo-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}.chat-attach-row .muted{font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-attach-row .primary{margin-left:auto}.message-photo-attachment{display:block;margin-top:8px;border:1px solid #e1d4ef;background:#fbf9fd;color:var(--ink);border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer;max-width:100%;white-space:normal;text-align:left}.bubble.mine .message-photo-attachment{background:#ffffff18;border-color:#ffffff38;color:#fff}.portal-doc-row .primary,.portal-doc-row .ghost{flex:0 0 auto}@media(max-width:520px){.chat-compose{grid-template-columns:1fr}.chat-attach-row{width:100%}.chat-attach-row .primary{margin-left:0;flex:1}.chat-photo-button{flex:0 0 auto}.chat-attach-row .muted{flex:1}.portal-doc-row{flex-wrap:wrap}.portal-doc-row>button,.portal-doc-row>a{margin-left:32px}}

/* Push notifications v16f */
.portal-push-card{margin-top:16px;padding:16px 17px;border:1px solid #e5dceb;border-radius:16px;background:#e5dbea;display:flex;align-items:center;justify-content:space-between;gap:14px}
.portal-push-card>div:first-child{min-width:0}.portal-push-card b,.portal-push-card small{display:block}.portal-push-card b{font-size:14px;color:#3f2d4d}.portal-push-card small{font-size:12px;line-height:1.45;color:#695f72;margin-top:3px}.portal-push-card>div:last-child{display:flex;gap:8px;flex:0 0 auto}.portal-push-card button{white-space:nowrap}
@media(max-width:560px){.portal-push-card{align-items:stretch;flex-direction:column}.portal-push-card>div:last-child{display:grid;grid-template-columns:1fr}.portal-push-card button{width:100%}}


/* Installed phone-app shell v16i — browser website remains unchanged */
@media(display-mode:standalone){
  /* Installed customer portal stays inside the portal; public website links remain browser-only. */
  .owner-login-link,.back-site{display:none!important}
  .portal-brand{cursor:default;pointer-events:none}
  #tab-documents .portal-doc-row:has(a[href="/faq/"]){display:none!important}
  html,body{overscroll-behavior-y:none;background:#f4eff8}
  body{min-height:100dvh;overflow-x:hidden}
  .portal-head{min-height:calc(58px + env(safe-area-inset-top));height:auto;padding:env(safe-area-inset-top) 14px 0;position:sticky;top:0;background:#dfd1e8;border-bottom:1px solid #e3d8ed;box-shadow:0 3px 18px rgba(0,0,0,.07);z-index:45}
  .portal-head .portal-brand{height:58px;gap:9px}.portal-head .portal-brand img{width:40px;height:40px}.portal-head .portal-brand b{font-size:18px}.portal-head .portal-brand small{display:none}.portal-head .head-actions{height:58px;align-items:center}.portal-head #installBtn{display:none!important}.portal-head #logoutBtn{padding:9px 13px;font-size:12px;background:#d5c7df}
  .portal-shell main{width:100%;margin:0;padding:12px 12px calc(92px + env(safe-area-inset-bottom));max-width:none}
  .access-notice{margin:0 0 12px;border-radius:16px}
  .welcome{display:block;margin:0 0 12px;padding:0;background:transparent;box-shadow:none;border-radius:0}.welcome>div:first-child{display:none}.next-card{min-height:0;border-radius:22px;padding:18px 19px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.next-card small{font-size:12px}.next-card strong{font-size:25px;margin:5px 0}.next-card span{font-size:12px}.next-cleaning-btn{width:auto;margin-top:12px;padding:9px 13px}
  .portal-tabs{display:none!important}
  .tab{animation:appTabIn .18s ease}.tab.active{display:block}
  .grid.two{grid-template-columns:1fr;gap:0}.panel,.panel.narrow,.chat-panel{max-width:none;width:100%;margin:0 0 12px;padding:18px;border-radius:22px;box-shadow:0 6px 24px rgba(0,0,0,.08)}.panel:hover{border-color:#e5ddec}
  .panel-head{margin-bottom:14px}.panel h2{font-size:21px}.panel-head p{font-size:12px;line-height:1.45}
  .portal-command{padding:18px}.portal-stat-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.portal-stat-grid>div{padding:12px}.portal-stat-grid strong{font-size:17px}.portal-action-grid{grid-template-columns:1fr 1fr;gap:8px}.portal-action-grid button{padding:13px;border-radius:14px}.portal-action-grid button:hover{transform:none;box-shadow:none}
  .clean-card,.request-row,.portal-schedule-row,.portal-payment-row,.portal-doc-row{border-radius:16px}.clean-card:hover{transform:none;box-shadow:none}
  .form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.account-details{grid-template-columns:1fr 1fr}.receipt-list,.cleaning-history-list{grid-template-columns:1fr}.photo-date-grid,.photo-grid{grid-template-columns:1fr 1fr}
  .chat-panel{margin:0}.chat-messages{min-height:calc(100dvh - 330px);max-height:calc(100dvh - 280px);border-radius:16px}.chat-compose{grid-template-columns:1fr}
  .toast{bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100% - 28px);text-align:center}
  .app-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:70;height:calc(70px + env(safe-area-inset-bottom));padding:6px 7px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:#fffffffa;border-top:1px solid #e3d8ed;box-shadow:0 -8px 30px rgba(0,0,0,.12);backdrop-filter:blur(16px)}
  .app-bottom-nav button{border:0;background:transparent;color:#796687;border-radius:14px;display:grid;place-items:center;align-content:center;gap:3px;min-width:0;padding:5px 2px;font-weight:800;font-size:12px;letter-spacing:.01em}.app-bottom-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.app-bottom-nav button.active{color:#5b3d96;background:#f0e9f8}.app-bottom-nav button:active{transform:scale(.97)}
  .app-more-overlay{position:fixed;inset:0;z-index:85;display:flex;align-items:flex-end}.app-more-overlay[hidden]{display:none!important}.app-more-backdrop{position:absolute;inset:0;border:0;background:#1f102cb5;backdrop-filter:blur(3px)}.app-more-sheet{position:relative;width:100%;background:#e5dbea;border-radius:26px 26px 0 0;padding:10px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -25px 70px #0004;animation:appSheetUp .2s ease}.app-sheet-handle{width:42px;height:4px;border-radius:99px;background:#d7cddd;margin:0 auto 11px}.app-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:0 3px 12px}.app-sheet-head small{font-size:12px;letter-spacing:.13em;text-transform:uppercase;font-weight:900;color:#7959a4}.app-sheet-head h2{margin:2px 0 0;font-size:25px}.app-sheet-close{width:38px;height:38px;border:0;border-radius:50%;background:#f0eaf5;color:#432f50;font-size:26px}.app-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.app-more-grid>button{min-height:76px;border:1px solid #e8dfee;background:#dfd1e8;border-radius:17px;padding:13px;text-align:left;display:flex;gap:11px;align-items:center;color:#43314f;font-size:20px}.app-more-grid>button span{min-width:0}.app-more-grid b,.app-more-grid small{display:block}.app-more-grid b{font-size:13px}.app-more-grid small{font-size:12px;color:#7a6e82;margin-top:3px;line-height:1.3}
  body.app-more-open{overflow:hidden}
  dialog.cleaning-dialog,#receiptDialog{padding-bottom:env(safe-area-inset-bottom)}
}
html.installed-app .app-bottom-nav{display:grid}
@keyframes appTabIn{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes appSheetUp{from{transform:translateY(30px);opacity:.5}to{transform:none;opacity:1}}
@media(display-mode:standalone) and (max-width:390px){.portal-shell main{padding-left:9px;padding-right:9px}.panel{padding:16px}.portal-action-grid{grid-template-columns:1fr}.app-more-grid{grid-template-columns:1fr 1fr}.app-bottom-nav button span{font-size:12px}.app-bottom-nav button svg{width:21px;height:21px}}

/* Purple accent refresh — customer portal */
:root{--teal:#6d4bb3;--portal-purple:#6d4bb3;--portal-purple2:#8564c9;--portal-purple-soft:#f2ecfa}
.primary{background:#6d4bb3!important}.eyebrow{color:#d8c8f2}.eyebrow.dark{color:#6d4bb3}.link,.owner-login-link{color:#6d4bb3}.auth-form input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.chat-compose textarea:focus{border-color:#8564c9;outline:3px solid #c7b5e7;outline-offset:1px}.badge{background:#f0e9f8;color:#5b3d96}.bubble.mine{background:#6d4bb3;border-color:#6d4bb3}.clean-live-status{background:#f5effb;border-color:#e1d4ef}.clean-live-status .live-status-copy strong,.progress-step.active{color:#5b3d96}.progress-step.done:before,.progress-step.active:before,.progress-step.done i,.progress-step.active i{background:#7b5bbd}.portal-tabs button.active{background:#5b3d96;border-color:#5b3d96}.status-on-the-way{background:#f0e9f8;color:#5b3d96}.work-list>div span{background:#f0e9f8;color:#5b3d96}.cleaning-note{border-color:#e1d6e8}.portal-push-card{border-color:#e5dbea;background:#fbf8fd}.portal-push-card b{color:#523b66}.app-bottom-nav button.active{color:#5b3d96;background:#f0e9f8}.app-sheet-head small{color:#6d4bb3}.portal-notification>span{background:#7b5bbd}.referral-card{border-color:#e8dff0;background:linear-gradient(135deg,#f7f3fb,#fff)}.contact-card a{color:#6d4bb3}

/* Professional branded receipt v17 */
.professional-receipt{background:#dfd1e8}.receipt-pro-header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:6px 4px 20px;border-bottom:2px solid #e7deed}.receipt-logo-wrap{display:flex;align-items:center;gap:14px;min-width:0}.receipt-logo-wrap img{width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 7px 16px rgba(0,0,0,.12))}.receipt-logo-wrap span,.receipt-logo-wrap strong,.receipt-logo-wrap small{display:block}.receipt-logo-wrap span{font-size:12px;letter-spacing:.13em;text-transform:uppercase;font-weight:950;color:#6d4bb3}.receipt-logo-wrap strong{font-size:26px;line-height:1.08;margin:3px 0;color:#35263f}.receipt-logo-wrap small{color:var(--muted);font-size:12px}.receipt-id-block{text-align:right;flex:0 0 auto}.receipt-id-block>small,.receipt-id-block>strong{display:block}.receipt-id-block>small{font-size:12px;letter-spacing:.04em;color:var(--muted);font-weight:900}.receipt-id-block>strong{font-size:12px;margin:3px 0 7px}.receipt-paid-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:950;letter-spacing:.02em}.receipt-paid-status.paid{background:#f0e9f8;color:#5b3d96}.receipt-paid-status.unpaid{background:#fff2df;color:#8a6514}.receipt-customer-service{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.receipt-customer-service>div{padding:15px;border:1px solid #e8e0ed;border-radius:14px;background:#e5dbea}.receipt-customer-service small,.receipt-customer-service strong,.receipt-customer-service span{display:block}.receipt-customer-service small{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#6d4bb3;font-weight:950;margin-bottom:5px}.receipt-customer-service strong{font-size:14px}.receipt-customer-service span{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.45}.receipt-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px}.receipt-facts>div{border:1px solid #e7deed;border-radius:12px;padding:11px;background:#dfd1e8}.receipt-facts small,.receipt-facts strong{display:block}.receipt-facts small{font-size:12px;letter-spacing:.03em;color:var(--muted);margin-bottom:4px}.receipt-facts strong{font-size:12px}.receipt-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.receipt-section-title>span{font-size:13px;font-weight:950;color:#543d67}.receipt-section-title>small{font-size:12px;color:var(--muted)}.receipt-charge-section{background:#e5dbea;border-color:#e7deed}.receipt-bill-total{background:linear-gradient(135deg,#5b3d96,#7f5bbe)}.receipt-bill-total small{color:#eadffd}.receipt-bill-line.included>strong{color:#5b3d96}.receipt-work-list{display:grid;gap:7px}.receipt-work-row{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:10px 11px;border:1px solid #ece8f1;border-radius:12px;background:#dfd1e8}.receipt-work-row .receipt-check{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f0e9f8;color:#5b3d96;font-weight:950}.receipt-work-row>span:nth-child(2){font-size:12px}.receipt-work-row>strong{font-size:12px;color:#5b3d96;text-transform:uppercase}.receipt-note{background:#fbf8fd;border-color:#e1d6e8}.receipt-visit-notes{font-size:12px;line-height:1.6;color:#675d70}.receipt-meta-grid a,.receipt-footer a,.receipt-pro-footer a{color:#6d4bb3}.receipt-pro-footer{margin-top:22px;padding:16px 0 0;border-top:2px solid #e7deed;display:flex;justify-content:space-between;gap:14px;align-items:flex-end}.receipt-pro-footer>div{display:flex;align-items:center;gap:10px}.receipt-pro-footer img{width:38px;height:38px;object-fit:contain}.receipt-pro-footer strong,.receipt-pro-footer small{display:block}.receipt-pro-footer strong{font-size:12px}.receipt-pro-footer small,.receipt-pro-footer>span{font-size:12px;color:var(--muted)}
@media(max-width:620px){.receipt-pro-header{align-items:flex-start}.receipt-logo-wrap img{width:58px;height:58px}.receipt-logo-wrap strong{font-size:21px}.receipt-customer-service{grid-template-columns:1fr}.receipt-facts{grid-template-columns:1fr 1fr}.receipt-pro-footer{display:grid;align-items:start}.receipt-pro-footer>span{padding-left:48px}}@media(max-width:390px){.receipt-pro-header{display:grid}.receipt-id-block{text-align:left}.receipt-facts{grid-template-columns:1fr 1fr}.receipt-work-row{grid-template-columns:auto 1fr}.receipt-work-row>strong{grid-column:2}}

/* Customer portal sign-in polish */
.auth-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(0,520px);align-content:center;justify-content:center;justify-items:stretch;gap:26px;padding:48px 24px;background:radial-gradient(ellipse at 20% 15%,rgba(151,101,216,.25),transparent 50%),radial-gradient(ellipse at 85% 85%,rgba(110,70,170,.22),transparent 50%),linear-gradient(145deg,#21122f,#352049)}
.auth-brand{justify-content:center;gap:14px;margin:0;color:#fff}
.auth-brand img{width:70px;height:70px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.2))}
.auth-brand b{font-size:22px;line-height:1.25;letter-spacing:-.025em}.auth-brand span{font-size:13px;color:#dfcfee;opacity:1;margin-top:4px}
.auth-card{width:100%;padding:32px;border:1px solid #e9dff2;border-radius:28px;background:#dfd1e8;box-shadow:0 28px 75px rgba(14,5,23,.28)}
.auth-tabs{background:#cdb9dc;border:1px solid #e9def2;padding:5px;border-radius:15px;gap:5px}
.auth-tabs button{min-height:44px;color:#796689;cursor:pointer;transition:background .15s,color .15s}
.auth-tabs button.active{color:#6334a2;background:#dfd1e8;box-shadow:0 3px 10px rgba(61,30,86,.08)}
.auth-form{gap:18px;padding-top:28px}.auth-form h1{font-size:32px;line-height:1.15;letter-spacing:-.035em;color:#2e1b3c;margin:0}
.auth-form>p{font-size:14px;line-height:1.65;color:#786785;margin:-6px 0 2px}
.auth-form label{font-size:13px;gap:8px;color:#4d365e}
.auth-form input{min-height:50px;padding:13px 15px;border:1px solid #dfd2e9;border-radius:12px;background:#e5dbea;color:#30203d;transition:border-color .15s,box-shadow .15s}
.auth-form input:focus{border-color:#8a5ac0;outline:none;box-shadow:0 0 0 3px rgba(138,90,192,.16);background:#dfd1e8}
.auth-form .primary{min-height:50px;margin-top:4px;border-radius:13px;background:linear-gradient(135deg,#733bb5,#9460cc)!important;box-shadow:0 8px 18px rgba(108,54,165,.18);font-size:15px}
.auth-form .primary:hover{background:linear-gradient(135deg,#6330a2,#8250ba)!important}
.auth-card button:focus-visible,.auth-card a:focus-visible{outline:3px solid #c5a3e8;outline-offset:3px}
.auth-card .status{min-height:0;margin-top:0}.auth-card .status:not(:empty){margin-top:14px;font-size:13px;line-height:1.5}
.auth-card .owner-login-link{margin:26px 0 0;padding-top:20px;border-top:1px solid #eee5f5;font-size:13px;color:#71459c;line-height:1.5}
.auth-card .back-site{margin-top:14px;font-size:12px;color:#8b7899}
@media(max-width:600px){.auth-shell{padding:28px 18px;gap:22px}.auth-brand img{width:60px;height:60px}.auth-brand b{font-size:20px}.auth-card{padding:24px 22px;border-radius:24px}.auth-form{padding-top:24px}.auth-form h1{font-size:29px}}
@media(max-width:360px){.auth-shell{padding:22px 12px}.auth-brand b{font-size:18px}.auth-brand img{width:54px;height:54px}.auth-card{padding:22px 18px}}

/* Signed-in portal polish */
.portal-shell{background:radial-gradient(ellipse at top right,#d1bddd,transparent 60%),#d5c7df;min-height:100dvh}
.portal-head{border-color:#e7daef;box-shadow:0 3px 16px rgba(64,31,86,.04)}
.portal-brand b{color:#3b234e}.portal-brand small{color:#80698f}
.welcome{background:linear-gradient(125deg,#362047,#64408a);box-shadow:0 16px 38px rgba(57,28,80,.13)}
.welcome h1{font-family:inherit;font-size:clamp(36px,4vw,54px);font-weight:750;line-height:1.1;letter-spacing:-.04em}
.next-card{background:rgba(24,10,36,.4);border:1px solid rgba(236,218,255,.16)}
.portal-tabs button{color:#776185;border-color:#e5d7ef;box-shadow:0 3px 10px rgba(57,28,80,.04)}
.portal-tabs button.active{background:#7348ad;border-color:#7348ad;color:#fff;box-shadow:0 5px 14px rgba(103,60,152,.16)}
.portal-command{background:linear-gradient(135deg,#dfd1e8,#d5c7df)}
.panel{border-color:#e6d8ef;box-shadow:0 8px 24px rgba(57,28,80,.05)}
.panel h2{color:#382148;letter-spacing:-.025em}.panel-head p{line-height:1.55}
.portal-stat-grid>div{background:#dfd1e8;border-color:#e8dbf2}
.portal-stat-grid strong{color:#563075}.portal-stat-grid small{color:#80698f}
.portal-action-grid button{border-color:#e7d9ef;background:#dfd1e8;min-height:76px;padding:17px}
.portal-action-grid button b{color:#563075}.portal-action-grid button:hover{background:#d5c3e0;border-color:#b697d6;box-shadow:0 5px 16px rgba(72,36,100,.06)}
.photo-date-group{gap:14px;margin-top:8px;margin-bottom:20px}
.photo-date-head{padding-bottom:10px;border-bottom:1px solid #eadff3}.photo-date-head strong{color:#59377e}.photo-date-head small{font-size:12px}
.photo-date-grid{gap:16px}
.photo-tile{background:#f0e7f8;border:1px solid #e7d9ef;border-radius:18px;box-shadow:0 5px 15px rgba(57,28,80,.06);cursor:zoom-in;aspect-ratio:4/3}
.photo-tile img{display:block;width:100%;height:100%;object-fit:cover}
.photo-tile span{background:rgba(44,23,60,.85);padding:8px 10px;line-height:1.35;border-radius:10px}
.photo-tile:hover{border-color:#ad89d0;box-shadow:0 9px 22px rgba(57,28,80,.12)}
.photo-tile:focus-visible{outline:3px solid #b78edd;outline-offset:3px}
.photo-tile.photo-unavailable:before{content:'Preview unavailable — click to retry';position:absolute;inset:25% 12%;display:grid;place-items:center;color:#785990;font-size:13px;line-height:1.5;text-align:center}
@media(max-width:720px){.welcome h1{font-size:36px}.portal-action-grid button{padding:14px;min-height:72px}.photo-date-grid{gap:10px}.photo-tile{border-radius:14px}}

/* Center close icons independently of font baselines. */
.dialog-close,.app-sheet-close{display:inline-grid;place-items:center;padding:0!important;line-height:1;font-size:0!important;flex-shrink:0;box-sizing:border-box;cursor:pointer}
.dialog-close::before,.app-sheet-close::before,.dialog-close::after,.app-sheet-close::after{content:'';position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:currentColor;pointer-events:none}
.dialog-close::before,.app-sheet-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.dialog-close::after,.app-sheet-close::after{transform:translate(-50%,-50%) rotate(-45deg)}

.app-sheet-close{position:relative}

.form-grid input[type="date"],.form-grid label:has(input[type="date"]){cursor:pointer}
.form-grid input[type="date"]{min-height:48px}

.portal-time-picker{position:relative;min-width:0}
.portal-time-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:13px 15px;border:1px solid #dfd2e9;border-radius:13px;background:#e5dbea;color:#35223f;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}
.portal-time-trigger::after{content:'';width:7px;height:7px;border-right:2px solid #805a9b;border-bottom:2px solid #805a9b;transform:rotate(45deg);margin-left:16px;margin-right:3px;margin-top:-4px}
.portal-time-trigger[aria-expanded="true"]{border-color:#9260c2;box-shadow:0 0 0 3px #dac5ee}
.portal-time-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:95;max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #dfcbea;border-radius:15px;background:#dfd1e8;box-shadow:0 14px 36px rgba(50,22,70,.16)}
.portal-time-menu[hidden]{display:none!important}
.portal-time-option{display:block;width:100%;min-height:38px;border:0;border-radius:9px;padding:10px 12px;background:#dfd1e8;color:#604575;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.portal-time-option:hover,.portal-time-option:focus{background:#d5c3e0;outline:none}
.portal-time-option.selected{background:#c6a9dc;color:#67339e;font-weight:800}
.portal-time-trigger:focus-visible{outline:3px solid #b790d9;outline-offset:2px}

/* Match the public website's muted lavender theme. */
:root{--paper:#d5c7df;--soft:#d9cbe2;--line:#baa3cb;--muted:#594764;--ink:#30213b;--teal:#7545a6}
body,.portal-shell{background:#d5c7df;color:#30213b}.portal-head{background:#ddcfe7;border-color:#bfa8ce}
.auth-shell{background:radial-gradient(ellipse at 20% 15%,#dccbe8,transparent 65%),#d5c7df}.auth-brand{color:#30213b}.auth-brand span{color:#594764}.auth-brand b{font-size:24px}.auth-brand span{font-size:16px}
.auth-card{background:#dfd1e8;border-color:#baa3cb;box-shadow:0 16px 42px rgba(48,24,68,.12)}.auth-tabs{background:#cdb9dc;border-color:#bfa8ce}.auth-tabs button{font-size:16px;color:#594764}.auth-tabs button.active{background:#e5dbea;color:#542477}
.auth-form>p{font-size:17px;color:#594764}.auth-form label,.form-grid label{font-size:16px;line-height:1.5;font-weight:650;color:#3e2056}.auth-form input,.form-grid input,.form-grid select,.form-grid textarea,.chat-compose textarea{background:#e5dbea;border-color:#a98ebc;font-size:17px;color:#30213b;min-height:50px}.auth-form input:focus{background:#e5dbea}.auth-form .primary{font-size:17px;background:linear-gradient(135deg,#6d4bb3,#845ec2)!important}
.auth-card .back-site,.auth-card .owner-login-link{font-size:16px;color:#542477}.auth-card .owner-login-link{border-color:#baa3cb}
.panel,.portal-command,.portal-stat-grid>div,.portal-action-grid button{background:#dfd1e8;border-color:#baa3cb;border-radius:23px}.panel-head p{font-size:16px;color:#594764;line-height:1.7}.panel h2{font-size:27px;line-height:1.25;font-weight:750}.portal-action-grid button b{font-size:18px}.portal-action-grid button small,.portal-stat-grid small{font-size:15px;color:#594764;line-height:1.6}.portal-tabs button{background:#dfd1e8;font-size:16px;border-color:#baa3cb;color:#563374}.portal-tabs button.active{background:#7545a6;color:#fff}
.primary{background:linear-gradient(135deg,#6d4bb3,#845ec2);font-size:16px}.ghost{background:#d5c3e0;border-color:#ad8fc2;color:#3e2056;font-size:16px}
.portal-brand small{color:#594764;font-size:14px}.dialog-card,.app-sheet{background:#dfd1e8;color:#30213b}.portal-time-trigger,.portal-time-menu,.portal-time-option{background:#e5dbea;font-size:16px;border-color:#a98ebc}.portal-time-option.selected{background:#c6a9dc}.portal-time-option:hover{background:#d5c3e0}
@media(max-width:600px){.auth-brand b{font-size:21px}.auth-brand span{font-size:15px}.panel h2{font-size:24px}}

/* Portal purple cleanup v2 - 2026-10-11 */
:root{--cc-surface:#e5dbea;--cc-surface-2:#dccde6;--cc-surface-3:#d5c3e0;--cc-border:#baa3cb;--cc-text:#30213b;--cc-muted:#594764}

/* Remove the remaining white / near-white cards from the purple remake. */
.account-details>div,
.clean-card,
.request-row,
.receipt-card,
.clean-card .clean-live-status,
.cleaning-workorder .clean-live-status,
.workorder-grid>div,
.work-list>div,
.cleaning-note,
.workorder-photos button,
.receipt-meta-grid>div,
.receipt-note,
.receipt-customer-service>div,
.receipt-work-row,
.receipt-photo-btn,
.portal-schedule-row,
.portal-payment-row,
.portal-doc-row,
.portal-notification,
.portal-toggle-list label,
.portal-push-card,
.message-photo-attachment,
.contact-card{
  background:var(--cc-surface)!important;
  border-color:var(--cc-border)!important;
  color:var(--cc-text)!important;
  box-shadow:none!important;
}
.clean-card{background:linear-gradient(180deg,#e8deee,#dfd1e8)!important}
.account-details>div,.workorder-grid>div{background:var(--cc-surface-2)!important}
.clean-live-status{background:var(--cc-surface-2)!important;border-color:var(--cc-border)!important}
.next-card .clean-live-status{background:#3c2454!important;border-color:#654783!important;color:#fff!important}
.next-card .clean-live-status .live-status-copy strong{color:#fff!important}
.next-card .clean-live-status .live-status-copy span{color:#d7c7e7!important}
.chat-messages{background:#d9cbe2!important}
.portal-command{background:linear-gradient(145deg,#dfd1e8,#d3c2df)!important}
.referral-card{background:linear-gradient(135deg,#e5dbea,#d9cbe2)!important;border-color:var(--cc-border)!important}
.portal-safety-note{background:#e2d5e9!important;border-color:#bda6ca!important;color:#654c68!important}
.app-bottom-nav{background:rgba(223,209,232,.97)!important;border-color:var(--cc-border)!important}
.status-tag,.payment-tag,.badge,.receipt-paid-status.paid{background:#d8c8e5!important;color:#5b3d96!important}
.status-cleaning{background:#e6d5b9!important;color:#775719!important}
.status-cancelled,.status-skipped{background:#dfcaca!important;color:#784545!important}

/* Clean single close button: use the actual × glyph instead of layered pseudo-lines. */
.dialog-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #9f7db8!important;
  border-radius:50%!important;
  background:#d5c3e0!important;
  color:#3e2056!important;
  font-size:22px!important;
  font-family:Arial,sans-serif!important;
  font-weight:400!important;
  line-height:1!important;
  box-shadow:0 3px 10px rgba(55,28,73,.10)!important;
  outline:none!important;
  transform:none!important;
  z-index:20!important;
}
.dialog-close::before,.dialog-close::after{content:none!important;display:none!important}
.dialog-close:hover{background:#cbb4da!important;border-color:#835aa2!important}
.dialog-close:focus,.dialog-close:focus-visible{outline:none!important;box-shadow:0 3px 10px rgba(55,28,73,.10)!important;border-color:#7545a6!important}
.cleaning-dialog .workorder-top,.receipt-pro-header,.receipt-brand{padding-right:52px!important}
@media(max-width:520px){.cleaning-dialog .workorder-top{padding-right:48px!important}.dialog-close{top:12px!important;right:12px!important}}

.photo-dialog{width:min(980px,100vw);max-width:100vw;padding:18px;background:#140d20;color:#fff}.photo-dialog #photoDialogImage{width:100%;height:68dvh;max-height:68dvh;object-fit:contain;touch-action:pan-y pinch-zoom;user-select:none}.cleaning-photo-navigation{display:flex;align-items:center;justify-content:center;gap:22px;margin:12px 0}.cleaning-photo-navigation button{width:52px;height:48px;border:1px solid #8a66ad;border-radius:12px;background:#352046;color:white;font-size:30px}.cleaning-photo-navigation [hidden]{display:none!important}#cleaningPhotoCount{min-width:60px;text-align:center}.cleaning-photo-hint{display:block;text-align:center;color:#c8b9d9;margin-top:10px}#photoDialogCaption{text-align:center;font-weight:700;font-size:17px}.photo-dialog .dialog-close{z-index:2}

/* Keep live visit labels readable inside narrow cleaning cards. */
.clean-live-status{container-type:inline-size;container-name:cleaningStatus}.clean-progress{grid-template-columns:repeat(5,minmax(0,1fr))}.progress-step{min-width:0}.progress-step small{display:block;padding:0 4px;white-space:normal;line-height:1.4;overflow-wrap:normal}
@container cleaningStatus (max-width:420px){.clean-progress{grid-template-columns:1fr;margin-top:12px;gap:0}.progress-step{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;text-align:left;min-height:30px;padding:6px 0 6px 25px;font-size:12px}.progress-step small{grid-column:1/-1;padding:0;font-size:12px;line-height:1.4;white-space:normal}.progress-step:before{top:0!important;bottom:0;left:5px!important;right:auto!important;width:2px;height:auto}.progress-step:first-child:before{top:50%!important}.progress-step:last-child:before{bottom:50%}.progress-step i{left:6px;top:50%;transform:translate(-50%,-50%);width:10px;height:10px}}
@media(max-width:600px){.clean-progress{grid-template-columns:1fr;margin-top:12px;gap:0}.progress-step{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;text-align:left;min-height:30px;padding:6px 0 6px 25px;font-size:12px}.progress-step small{grid-column:1/-1;padding:0;font-size:12px;line-height:1.4;white-space:normal}.progress-step:before{top:0!important;bottom:0;left:5px!important;right:auto!important;width:2px;height:auto}.progress-step:first-child:before{top:50%!important}.progress-step:last-child:before{bottom:50%}.progress-step i{left:6px;top:50%;transform:translate(-50%,-50%);width:10px;height:10px}}

.portal-job-checklist h4{margin:18px 0 8px;color:#745096}.portal-job-checklist .portal-checklist-task{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 0}.portal-checklist-task strong{min-width:0;overflow-wrap:anywhere}.portal-checklist-task strong small{display:block;margin-top:5px;font-weight:400;color:var(--muted)}.portal-task-state{white-space:nowrap;font-size:12px;padding-top:3px}.portal-task-indicator{font-weight:800;color:#8155a8}
