/* Spa technician entry and home use the site's existing navigation and form controls. */
body:has(.tech-entry,.tech-home){
    --tech-paper:#fbf8f0;--tech-card:#fffdf8;--tech-ink:#183d32;--tech-muted:#50685e;
    --tech-line:#d9e4d9;--tech-jade:#115b49;--tech-hero-text:#fffdf2;--tech-hero-muted:#e4f4e8;
    --tech-invite-action:#eff5d9;--tech-invite-ink:#164938;--tech-coral:#ffe0d5;--tech-coral-ink:#783e32;
    --tech-tile-work:#e5f3e7;--tech-tile-work-ink:#184936;--tech-tile-hours:#eceafd;--tech-tile-hours-ink:#4b3872;
    background:var(--tech-paper);
}
html[data-sm-theme=dark] body:has(.tech-entry,.tech-home){
    --tech-paper:#142720;--tech-card:#20362f;--tech-ink:#edf7eb;--tech-muted:#c1d5c7;--tech-line:#506e60;
    --tech-jade:#155947;--tech-coral:#58392f;--tech-coral-ink:#ffe1d3;
    --tech-tile-work:#29463b;--tech-tile-work-ink:#ddf4e3;--tech-tile-hours:#37324c;--tech-tile-hours-ink:#ece3ff;
}
html[data-sm-theme=ocean] body:has(.tech-entry,.tech-home){
    --tech-paper:#eff7fa;--tech-card:#f9fcfe;--tech-ink:#173d52;--tech-muted:#486974;--tech-jade:#14596a;
}
body:has(.tech-entry,.tech-home) .topbar{background:var(--tech-card)}
body:has(.tech-entry,.tech-home) .content{min-width:0}
.tech-entry,.tech-home{color:var(--tech-ink);min-width:0;max-width:100%}
.tech-entry{width:min(100%,650px);margin:0 auto 14px}
.tech-entry-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,47%);position:relative;min-height:215px;border-radius:20px;overflow:hidden;background:var(--tech-jade);color:var(--tech-hero-text)}
.tech-entry-welcome>div{align-self:center;padding:18px 12px 18px clamp(14px,4vw,26px)}
.tech-entry-welcome>div>p:first-child{font-size:.76rem;font-weight:700;color:#dcf1e4;margin:0 0 9px}
.tech-entry-welcome h1,.tech-home-greeting h1{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.02em;line-height:1.12}
.tech-entry-welcome h1{color:inherit;margin:0 0 9px;font-size:clamp(25px,7.6vw,43px);overflow-wrap:anywhere}
.tech-entry-welcome .sm-page-help{position:absolute;inset:8px 8px auto auto;z-index:1}
.tech-entry-welcome p{color:var(--tech-hero-muted);font-size:.89rem;line-height:1.5;margin:0}
.tech-entry-welcome img{width:100%;height:100%;min-height:0;max-height:252px;object-fit:cover;object-position:55% 55%;display:block}
.tech-entry .tech-entry-form{margin-top:13px;border:1px solid var(--tech-line);border-radius:16px;background:var(--tech-card);padding:clamp(12px,4vw,22px)}
.tech-entry-form h2{margin:0 0 10px}
.tech-entry .login-credentials .field{margin-block:9px}
.tech-entry-form .password-manager-note{margin:8px 0;color:var(--tech-muted)}
.tech-entry-submit{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px}
.tech-entry-submit>div{flex:1 1 145px;min-width:0}
.tech-entry-submit [name=rememberDevice]{margin-top:.25em}
.tech-entry-submit #remember-device-help{margin:0}
.tech-entry .tech-login-actions{border-top:1px solid var(--tech-line);padding-top:10px;margin-top:12px;gap:6px;justify-content:flex-end}
.tech-entry .tech-login-actions>.btn{background:var(--tech-tile-work);color:var(--tech-tile-work-ink);border-color:var(--tech-line);font-size:.77rem;padding:6px 9px;min-height:44px}
.tech-entry .portal-sign-in{margin-top:12px;padding:11px 13px;border:1px solid var(--tech-line);background:var(--tech-card)}
.tech-entry .portal-sign-in p{margin-block:4px 8px;font-size:.84rem}
.tech-entry .portal-sign-in-links,.tech-entry-app{justify-content:flex-end}
.tech-entry-app{display:flex;margin-top:9px}

.tech-home{display:grid;gap:16px;margin-bottom:24px}
.tech-home-greeting{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.tech-home-greeting h1{font-size:clamp(30px,8vw,45px);color:var(--tech-ink);margin:0;overflow-wrap:anywhere}
.tech-home-greeting p{margin:4px 0 0;color:var(--tech-muted)}
.tech-home-account{display:flex;gap:8px}
.tech-home-account>a{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:50%;font-weight:700;text-decoration:none}
.tech-home-updates{background:var(--tech-card);border:1px solid var(--tech-line);color:var(--tech-ink)}
.tech-home-avatar{background:var(--tech-coral);color:var(--tech-coral-ink)}
.tech-home :is(.icon,.ux-icon),.tech-home-dock .ux-icon{width:20px;height:20px;flex:none}
.tech-home-invitation{padding:clamp(14px,4vw,21px);border-radius:17px;background:var(--tech-jade);color:var(--tech-hero-text)}
.tech-invitation-head,.tech-home-section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px}
.tech-invitation-status{border-radius:20px;padding:4px 9px;background:#ffddcf;color:#713326;font-size:.78rem;font-weight:700}
.tech-invitation-pay{font-size:clamp(18px,5vw,25px);font-weight:750;overflow-wrap:anywhere}
.tech-home-invitation h2{color:inherit;margin:8px 0 6px;font-size:1.32rem}
.tech-icon-line{display:flex;align-items:start;gap:7px;margin:4px 0;color:var(--tech-hero-muted);font-size:.88rem}
.tech-icon-line .ux-icon{width:17px;height:17px;margin-top:2px}
.tech-invitation-deadline{border-top:1px solid #ffffff48;padding-top:8px;margin:9px 0;font-size:.87rem}
main .tech-home-invitation .tech-invitation-review{display:flex;width:100%;align-items:center;justify-content:center;gap:7px;min-height:44px;background:var(--tech-invite-action);color:var(--tech-invite-ink);border-color:var(--tech-invite-action)}
.tech-home-shortcuts h2,.tech-home-learning h2{font-size:1.12rem;margin:0 0 7px}
.tech-home-tiles{display:flex;gap:8px;flex-wrap:wrap}
.tech-home-tile{display:grid;justify-items:center;align-content:center;gap:6px;flex:1 1 82px;min-width:0;min-height:76px;padding:8px 5px;border-radius:12px;text-align:center;font-weight:650;font-size:.83rem;line-height:1.3;text-decoration:none;color:var(--tech-tile-work-ink);background:var(--tech-tile-work);overflow-wrap:anywhere}
.tech-home-tile[data-shortcut=availability]{background:var(--tech-tile-hours);color:var(--tech-tile-hours-ink)}
.tech-home-tile[data-shortcut=learning]{background:var(--tech-coral);color:var(--tech-coral-ink)}
.tech-home-tile[data-shortcut=updates]{background:var(--tech-card);color:var(--tech-ink);border:1px solid var(--tech-line)}
.tech-home-tile[data-shortcut=rewards]{background:var(--tech-invite-action);color:var(--tech-invite-ink)}
.tech-home-focus,.tech-home .tech-home-guide{
    padding:clamp(15px,4vw,25px);border:1px solid var(--tech-line);border-radius:17px;
    background:var(--tech-card);color:var(--tech-ink);overflow-wrap:anywhere
}
.tech-home .tech-home-guide{margin-top:0}
.tech-home[data-tech-warm] .tech-home-focus-opportunity{
    background:radial-gradient(ellipse at top right,var(--tech-tile-work),transparent 58%),var(--tech-card)
}
.tech-home[data-tech-warm] .tech-home-focus-confirmed{
    background:radial-gradient(ellipse at top right,var(--tech-tile-hours),transparent 58%),var(--tech-card)
}
.tech-home-focus h2,.tech-home-guide h2{margin:10px 0 6px;color:var(--tech-ink);font-size:clamp(1.18rem,4.2vw,1.55rem)}
.tech-focus-label,.tech-home-guide-icon{
    display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 10px;border-radius:10px;
    background:var(--tech-tile-work);color:var(--tech-tile-work-ink);font-weight:700;font-size:.82rem
}
.tech-home-guide-icon{background:var(--tech-tile-hours);color:var(--tech-tile-hours-ink);padding:8px}
.tech-home-focus-confirmed .tech-focus-label{background:var(--tech-tile-hours);color:var(--tech-tile-hours-ink)}
.tech-focus-label .ux-icon{width:17px;height:17px}
.tech-focus-place,.tech-focus-note{margin:0 0 9px;color:var(--tech-muted);line-height:1.5}
.tech-focus-note{font-size:.86rem}
.tech-home-focus>.btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:4px}
.tech-home .tech-illustrated-badges [data-tech-badge=TcFirstPlacement]{background:var(--tech-coral);color:var(--tech-coral-ink)}
.tech-home-section-head>a{display:flex;align-items:center;gap:4px;min-height:44px;font-size:.86rem;font-weight:650}
.tech-home-section-head>a .ux-icon{width:15px;height:15px}
.tech-learning-card{display:grid;grid-template-columns:clamp(54px,17vw,110px) minmax(0,1fr);align-items:start;gap:9px 12px;border:1px solid var(--tech-line);border-radius:14px;padding:11px;background:var(--tech-card)}
.tech-learning-complete{grid-template-columns:minmax(0,1fr)}
.tech-learning-card>img{width:100%;height:84px;object-fit:cover;object-position:66% center;border-radius:9px}
.tech-learning-kind{font-size:.72rem;font-weight:750;color:var(--tech-coral-ink)}
.tech-learning-card h3{margin:0 0 6px;font-size:1rem;color:var(--tech-ink)}
.tech-learning-links{display:flex;flex-wrap:wrap;gap:6px}
.tech-learning-links>.btn{min-height:44px;padding-inline:9px}
.tech-learning-progress{grid-column:1/-1;min-width:0}
.tech-learning-progress p{font-size:.8rem;color:var(--tech-muted);margin:0 0 3px}
.tech-learning-progress progress{display:block;width:100%;height:7px;accent-color:#c46853}
body:has(.tech-home) #intro-training .pill.good{background:var(--tech-coral);color:var(--tech-coral-ink)}
#technician-profile,#profile-sharing,#intro-training{scroll-margin-top:9rem}
#technician-profile .page-head h2{margin:0 0 6px}
#technician-profile{margin-top:18px}
.sidebar>a.tech-home-dock{display:none}

@media(max-width:850px){
    body:has(.tech-home) .sidebar.is-expanded>a.tech-home-dock{display:none}
    body:has(.tech-home) .sidebar:not(.is-expanded)>a:not(.tech-home-dock){display:none}
    body:has(.tech-home) .sidebar:not(.is-expanded)>a.tech-home-dock{display:flex;flex:1 1 0;min-width:0;max-width:none;align-items:center;justify-content:center}
    body:has(.tech-home) .sidebar:not(.is-expanded){background:var(--tech-card);padding-left:72px}
    body:has(.tech-home) .sidebar:not(.is-expanded)>a[aria-current=page]{background:var(--tech-tile-work);color:var(--tech-tile-work-ink)}
}
@media(max-width:550px){
    .tech-entry-welcome{min-height:184px}
    .tech-entry-welcome img{max-height:200px}
    .tech-entry .login-credentials .field input{font-size:16px}
    .tech-entry-welcome>div{padding-block:13px}
    .tech-entry-welcome>div>p:first-child{margin-bottom:6px}
    .tech-home{gap:12px}
    .tech-home-invitation h2{font-size:1.15rem}
    .tech-home-account>a{min-height:44px}
    .tech-home :is(.tech-home-focus,.tech-home-guide) a.btn{max-width:100%;white-space:normal}
}
@media(prefers-reduced-motion:no-preference){
    .tech-home-tile:hover{outline:1px solid currentColor;outline-offset:-1px}
}
@media print{
    .tech-home,.tech-entry{display:none!important}
}
