.portal-mode-switch{position:sticky;top:8px;z-index:18;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:min(320px,calc(100% - 32px));margin:8px auto 16px;padding:4px;border-radius:999px;background:#f1f1f3cc;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.portal-mode-switch button{min-height:40px;border:0;border-radius:999px;background:#e9e9ed;color:#6e6e73;font:inherit;font-weight:600;transition:background .18s,color .18s,box-shadow .18s,transform .12s}.portal-mode-switch button[aria-current=page]{background:#007aff;color:#fff;box-shadow:0 3px 12px #007aff38}.portal-mode-switch button:active{transform:scale(.98)}
#meeting-time-dialog{box-sizing:border-box;width:min(430px,calc(100% - 20px));max-height:min(88dvh,720px);overflow:auto;border:0;border-radius:26px;padding:20px;background:#fff;color:#1d1d1f;overscroll-behavior:contain}#meeting-time-dialog::backdrop{background:#0007;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}#meeting-time-dialog .service-top{position:sticky;top:-20px;z-index:4;margin:-4px 0 12px;padding:8px 0;background:#fff}#meeting-time-dialog .meeting-calendar{display:block}#meeting-time-dialog .calendar-nav{margin-bottom:10px}#meeting-time-dialog .calendar-grid{gap:4px}#meeting-time-dialog .calendar-grid button{min-height:40px}#meeting-time-dialog .meeting-time-selects{position:sticky;bottom:62px;z-index:3;margin-top:14px;padding:10px 0;background:#fff}#meeting-time-dialog .meeting-time-confirm{position:sticky;bottom:-4px;z-index:4;width:100%;min-height:50px;border:0;border-radius:999px;background:#0071e3;color:#fff;font:inherit;font-size:16px}.meeting-time-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin-top:8px;padding:12px 14px;border:1px solid #e8e8ed;border-radius:12px;background:#f5f5f7;color:#1d1d1f;font:inherit;text-align:left}.meeting-time-open span:last-child{color:#0071e3;white-space:nowrap}@media(max-width:430px){#meeting-time-dialog{width:calc(100% - 12px);max-height:92dvh;padding:18px 16px;border-radius:24px}#meeting-time-dialog .service-top{top:-18px}.meeting-time-open{font-size:16px}}
.order-business-switch{position:sticky;top:8px;z-index:17;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;border-radius:999px;background:#f1f1f3e8;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.order-business-switch button{position:relative;min-height:40px;border:0;border-radius:999px;background:transparent;color:#6e6e73;font:inherit;font-weight:600}.order-business-switch button[aria-current=page]{background:#fff;color:#1d1d1f;box-shadow:0 2px 12px #00000012}
.distance-badge,.availability-note{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#dcf8e7;color:#167343;padding:5px 9px;font-size:11px;line-height:1.2}.portrait .distance-badge{position:absolute;left:9px;bottom:9px;z-index:3;background:#ffffffd9;color:#666;backdrop-filter:blur(10px)}.availability-home-badge{position:absolute;right:9px;bottom:9px;z-index:6;max-width:calc(100% - 18px);padding:5px 8px;border:1px solid #a8dfbd;border-radius:999px;background:#dcf8e7e8;color:#167343;font-size:10px;font-weight:650;line-height:1.15;white-space:nowrap;box-shadow:0 2px 8px #0b6b3824;backdrop-filter:blur(10px)}
.minimal-person-card .portrait{position:relative}#site .profile-city-actions{flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:70%}.profile-availability{margin:0;white-space:nowrap}.profile-service-single{display:grid;grid-template-columns:1fr}.closed-order-note{font-size:12px;color:#86868b;margin-top:7px}
.technician-checkout{display:grid;gap:14px;padding-bottom:110px}.technician-checkout .pure-section{margin:0}.technician-checkout>.tech-tier-switch{display:flex;grid-template-columns:none;gap:8px;margin:0 auto 2px}.technician-checkout>.tech-tier-switch button{min-height:42px;border:0;border-radius:999px;font:inherit}.technician-checkout>header{padding:8px 4px 18px}.technician-checkout>header .payment-desc{margin:8px 0 0}.technician-checkout>header .checkout-notice-title{margin:0}
.tech-project-list{display:grid;gap:10px}.tech-project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;padding:8px;border:1px solid #e4e4e8;border-radius:15px;background:#fff}.tech-project-row[aria-current=true]{border-color:#0071e3;background:#f2f8ff}.tech-project-select{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;padding:6px;border:0;background:transparent;text-align:left;font:inherit;color:inherit}.tech-project-row .pick-dot{width:22px;height:22px;border:2px solid #aaa;border-radius:50%;display:grid;place-items:center}.tech-project-row[aria-current=true] .pick-dot:after{content:"";width:12px;height:12px;background:#0071e3;border-radius:50%}.tech-project-row span{display:grid;gap:3px}.tech-project-row small{color:#86868b}.tech-project-row strong{white-space:nowrap;color:#0071e3}.tech-project-detail{min-height:36px;padding:7px 9px;border:0;border-radius:10px;background:#f1f1f4;color:#4c78a3;font:inherit;font-size:11px}.tech-total-formula{max-width:none;min-width:0;white-space:nowrap;line-height:1.35;font-size:clamp(9px,2.7vw,13px);letter-spacing:-.02em}.tech-total-formula strong{white-space:nowrap}.tech-breakdown dd{min-width:0}
.tech-city-control{margin-bottom:12px}.tech-city-control select{width:100%;min-height:46px;border:1px solid #dedee3;border-radius:13px;background:#fff;padding:0 12px;font:inherit}.tech-person-list{display:grid;grid-template-columns:1fr;gap:10px}.tech-person-card{display:flex!important;gap:12px;align-items:center;width:100%;border:1px solid #e4e4e8;border-radius:16px;background:#fafafa;padding:12px;text-align:left}.tech-person-card[aria-pressed=true]{border-color:#0071e3;background:#f1f7ff}.tech-person-card .assistant-avatar-wrap{flex:0 0 60px}.tech-person-card img,.tech-person-card .assistant-avatar{width:60px!important;height:70px!important;aspect-ratio:auto;object-fit:cover;border-radius:12px;margin:0}.tech-person-card>span{display:grid;gap:5px;flex:1;min-width:0}.tech-person-card strong,.tech-person-card small{display:block;margin:0}.tech-person-card small{color:#86868b}.tech-person-actions{display:grid;grid-template-columns:1fr;gap:2px;margin:0;flex:0 0 auto}.tech-person-actions .ui-nav-button{min-width:72px;min-height:44px;padding:8px 10px;width:auto;font-size:13px}.tech-person-actions [data-tech-detail]{min-width:64px;min-height:44px;padding:6px 8px;border:0;background:transparent;box-shadow:none;font-size:12px}.tech-person-actions [data-tech-detail]:active,.tech-person-actions [data-tech-detail]:focus,.tech-person-actions [data-tech-detail]:hover{transform:none!important;background:transparent;box-shadow:none}.tech-person-actions [data-tech-person][aria-pressed=true]{background:#0071e3;color:#fff}.tech-people-confirm{margin-top:14px}.tech-more{display:block;margin:14px auto 0;border:0;background:transparent;color:#0071e3;font:inherit}
.tech-project-dialog{position:relative;max-width:430px;width:calc(100% - 24px);max-height:92dvh;overflow:auto;border:0;border-radius:24px;padding:18px;background:#fff;box-shadow:0 18px 54px rgba(0,0,0,.2)}.tech-project-dialog::backdrop{background:rgba(0,0,0,.14);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.tech-project-dialog .project-close{position:absolute;z-index:4;top:26px;right:26px;width:36px;height:36px;border:0;border-radius:50%;background:#ffffffe8;color:#1d1d1f;font-size:24px;box-shadow:0 2px 10px #0002}.tech-project-dialog .project-confirm{width:100%;min-height:48px;border:0;border-radius:999px;background:#0071e3;color:#fff;font:inherit}.tech-project-media-shell{position:relative}.tech-project-media{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;border-radius:16px;background:#f3f3f5;scrollbar-width:none}.tech-project-media::-webkit-scrollbar{display:none}.tech-project-media.single{overflow:hidden}.tech-project-media-item{flex:0 0 100%;min-width:0;scroll-snap-align:start;display:grid;place-items:center}.tech-project-media-item img,.tech-project-media-item video{display:block;width:100%;height:auto;max-height:62dvh;object-fit:contain;background:#f3f3f5}.tech-project-media.single .tech-project-media-item img{width:100%;height:auto;max-height:none;object-fit:contain}.tech-project-media-item.framed video{height:100%;max-height:none}.tech-project-media-count{position:absolute;z-index:3;right:10px;bottom:10px;padding:5px 9px;border-radius:999px;background:#0008;color:#fff;font-size:12px;pointer-events:none}.tech-project-placeholder{display:grid;place-items:center;min-height:180px;border-radius:16px;background:#f3f3f5;color:#86868b}.tech-breakdown{display:grid;grid-template-columns:1fr minmax(0,2fr);gap:10px}.tech-breakdown dt{color:#6e6e73}.tech-breakdown dd{margin:0;text-align:right}.tech-submit{width:100%;min-height:52px;border:0;border-radius:999px;background:#0071e3;color:#fff;font:inherit;font-size:16px}.tech-submit:disabled{background:#ddd;color:#888}
.tech-home-order{width:100%;min-height:52px!important;border:0;border-radius:999px;background:#1d1d1f;color:#fff;font:inherit;font-size:17px;font-weight:600}.tech-home-order:disabled{background:#ececf0;color:#777}
.tech-renew-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px 16px;border-radius:14px;background:#f5f5f7}.tech-renew-summary strong{font-size:20px}.technician-renewal .renewal-submit{width:100%}
@media(max-width:390px){.tech-person-list{grid-template-columns:1fr}.portal-mode-switch{top:4px}}
.technician-portal .people-heading-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.technician-portal .people-city-control,.technician-portal .home-assistant-search{width:100%;min-width:0}.technician-home-search .home-game-search{display:none}

/* Preserve all administrator-authored line breaks on customer pages. */
#site :where(h1,h2,h3,h4,p,button,a,label,small,figcaption,dt,dd,footer){white-space:pre-line}

/* Technician service identity and travel-waiver state */
#site .minimal-person-card .portrait{position:relative}
#site .free-travel-badge{position:absolute;right:9px;bottom:9px;z-index:5;padding:4px 8px;border:1px solid #a8dfbd;border-radius:999px;background:#dcf8e7e8;color:#167343;font-size:11px;font-weight:650;line-height:1;box-shadow:0 2px 8px #0b6b3824;backdrop-filter:blur(10px);pointer-events:none}
#site .technician-service-card .portrait{overflow:hidden;border:2px solid #91d7b0;border-radius:20px 20px 0 0;box-shadow:inset 0 0 0 1px #ffffffd9,0 0 0 4px #e8f8ef,0 9px 24px #25744b1a}
#site .technician-service-card .portrait::after{content:"";position:absolute;inset:5px;z-index:4;border:1px solid #c9efda;border-radius:15px 15px 0 0;pointer-events:none}

.tech-project-dialog-open #site .floating-back{visibility:hidden!important;pointer-events:none!important}.tech-project-cover-only{z-index:1000;padding:0!important;width:fit-content;max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);overflow:hidden;background:transparent;line-height:0;box-shadow:0 18px 54px rgba(0,0,0,.24)}.tech-project-cover-only .tech-project-media-item{width:auto;background:transparent}.tech-project-cover-only img{display:block;width:auto;max-width:calc(100vw - 8px);height:auto;max-height:calc(100dvh - 8px);aspect-ratio:auto;object-fit:contain;border-radius:20px;background:transparent}.tech-project-cover-only .project-close{top:12px;right:12px}.tech-project-dialog-copy{display:grid;gap:10px;margin-top:14px}.tech-project-dialog-copy h2,.tech-project-dialog-copy p{margin:0}.tech-project-dialog-copy .project-confirm{margin-top:6px}
.tech-project-cover-only .tech-project-media-shell{width:min(520px,calc(100vw - 8px));line-height:normal}.tech-project-cover-only .tech-project-media{border-radius:20px;background:transparent}.tech-project-cover-only .tech-project-media .tech-project-media-item{flex:0 0 100%;width:100%;min-width:100%}.tech-project-cover-only .tech-project-media img,.tech-project-cover-only .tech-project-media video{width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 8px);object-fit:contain;border-radius:20px;background:transparent}

.tech-profile-confirm-dock{position:fixed;right:max(16px,calc((100vw - 430px)/2 + 16px));bottom:calc(82px + env(safe-area-inset-bottom));z-index:34;margin:0}.tech-profile-confirm-dock button{min-width:142px;min-height:50px;padding:12px 22px;border:0;border-radius:999px;background:#0071e3;color:#fff;font:inherit;font-size:16px;font-weight:600;box-shadow:0 8px 28px #0071e34a;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}

/* Technician picker mirrors the assistant picker and keeps four rows visible. */
.tech-city-control{position:relative}
.tech-city-placeholder{position:absolute;left:14px;right:42px;top:50%;transform:translateY(-50%);color:#86868b;font-size:14px;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tech-city-placeholder[hidden]{display:none}
#site .tech-person-list{--assistant-row-height:112px;--assistant-row-gap:8px;grid-auto-rows:var(--assistant-row-height);max-height:calc(4 * var(--assistant-row-height) + 3 * var(--assistant-row-gap));overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
#site .tech-person-actions .ui-nav-button{box-sizing:border-box;width:var(--nav-button-width);min-width:var(--nav-button-width);max-width:var(--nav-button-width);height:var(--nav-button-height);min-height:var(--nav-button-height);padding:0 8px;border-radius:999px;font-size:13px;font-weight:500}
#site .tech-person-actions [data-tech-detail]{font-size:12px;min-width:64px;max-width:64px;min-height:44px;height:44px;padding:6px 8px;background:transparent}
.tech-profile-confirm-dock button,#site .tech-profile-confirm-dock .profile-service-confirm{width:88px;min-width:88px;min-height:52px;padding:14px 8px;border:0;border-radius:14px;background:#e4f1ff;color:#0071e3;font:inherit;font-size:14px;font-weight:500;box-shadow:none;white-space:nowrap;touch-action:manipulation}
.tech-project-cover-only .project-confirm{position:absolute;z-index:5;right:12px;bottom:12px;width:auto;min-width:96px;min-height:46px;padding:10px 16px;border:1px solid rgba(255,255,255,.48);border-radius:14px;background:rgba(199,228,255,.56);color:rgba(0,87,174,.9);font:inherit;font-size:14px;font-weight:600;line-height:1.2;box-shadow:0 4px 18px rgba(0,113,227,.14);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);touch-action:manipulation}
#site .tech-person-actions button,#site .tech-people-confirm,.tech-profile-confirm-dock button,.tech-project-dialog button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

#site .tech-profile-confirm-dock button[data-tech-detail-confirm]{box-sizing:border-box!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:52px!important;min-height:52px!important;padding:0 8px!important;border:0!important;border-radius:14px!important;background:#e4f1ff!important;color:#0071e3!important;font-size:14px!important;font-weight:500!important;line-height:20px!important;box-shadow:none!important;transform:none!important}

/* Keep technician card actions aligned and show unsupported choices without allowing selection. */
#site .tech-person-actions{justify-items:end}
#activity-sheet .activity-sheet-options button:disabled{opacity:1;background:#f1f1f3!important;color:#9a9aa1!important;border-color:#e3e3e7!important;box-shadow:none!important;cursor:not-allowed}
#activity-sheet .activity-sheet-options button:disabled span:last-child{color:#a0a0a6;font-size:17px}
#site .tech-project-row.is-unavailable{background:#f1f1f3;border-color:#e2e2e6;color:#999}
#site .tech-project-row.is-unavailable .tech-project-select{color:#999;cursor:not-allowed}
#site .tech-project-row.is-unavailable .pick-dot{border-color:#b6b6bc;color:#9a9aa1;font-style:normal;font-size:14px;line-height:18px}
#site .tech-project-row.is-unavailable small,#site .tech-project-row.is-unavailable strong{color:#9a9aa1}

/* Quantity stepper for technician time-based renewals. */
.tech-renew-quantity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:12px 14px;border-radius:14px;background:#f5f5f7}.tech-renew-quantity>div{display:grid;grid-template-columns:42px 42px 42px;align-items:center;text-align:center}.tech-renew-quantity button{width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:#e5f1ff;color:#0071e3;font-size:22px;line-height:1;touch-action:manipulation}.tech-renew-quantity button:disabled{background:#e8e8ed;color:#aaa}.tech-renew-quantity strong{font-size:17px}

#site .tech-person-actions [data-tech-person]{box-sizing:border-box;width:68px;min-width:68px;max-width:68px;height:38px;min-height:38px;padding:0 8px;font-size:12px}

/* Keep card scrolling and button taps separate so a mobile tap selects the exact technician. */
#site .tech-person-card{position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none}
#site .tech-person-actions{position:relative;z-index:2;pointer-events:none}
#site .tech-person-actions button{pointer-events:auto;touch-action:manipulation}

.technician-portal .home-purchase .tech-home-order{grid-column:2}

/* Unified closed-hours state without changing each action's original footprint. */
#site .closed-order-button{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;background:#e8e8ed!important;color:#777!important;opacity:1!important;line-height:1.12!important;transform:none!important;box-shadow:none!important;white-space:normal!important}
#site .closed-order-button .closed-order-title{display:block;font-size:13px;font-weight:600;line-height:1.15}
#site .closed-order-button .closed-order-hours{display:block;font-size:11px;font-weight:500;line-height:1.15;white-space:nowrap}
#site .closed-order-button .closed-order-hours b{font-size:11px;font-weight:500}
#site .purchase-buttons .closed-order-button{min-height:52px!important;padding:8px 12px!important}
#site .profile-service-button.closed-order-button{min-height:48px;padding:7px 10px!important}

#site footer a,#site .icp-footer a{color:inherit;text-decoration:none}#site footer a:hover,#site .icp-footer a:hover{text-decoration:underline}#site .icp-footer{margin-top:28px;padding:18px 0 6px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8e8e93;font-size:12px;border-top:1px solid #e5e5ea}
@media(max-width:850px){#site .icp-footer{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-bottom:18px}}
