/* v63 recovery: clean cards, mobile-only navigation, accessible photos and visit summary. */
@media(min-width:761px){
 body.release62 .app-bottom-nav{display:none!important}
 body.release62:not(:has(#admin-view)){padding-bottom:24px}
 .compact-header #site-nav,.compact-header .account-nav{display:flex!important;gap:16px;align-items:center}
 .compact-header #site-nav a,.compact-header .account-nav a{min-height:42px;display:inline-flex;align-items:center}
 .compact-header .site-actions{flex:0 0 auto}
}
@media(max-width:760px){
 body.release62 .app-bottom-nav{bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);height:70px;border-radius:20px}
 body.release62{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 .account-job .job-meta,.account-job .job-footer{gap:10px}
 .track-appointment{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .track-appointment>div{min-width:0;overflow-wrap:anywhere}
}
.photo-dialog{position:fixed;max-height:92dvh;max-width:min(720px,calc(100vw - 20px));overflow:auto;border-radius:22px;padding:22px}
.photo-dialog-close{position:sticky;float:right;top:0;z-index:5;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--text);font-size:26px;cursor:pointer;line-height:1}
.photo-dialog-close:hover,.photo-dialog-close:focus-visible{border-color:var(--red);color:var(--red)}
.photo-upload{display:flex!important;align-items:center;justify-content:center;gap:10px;min-height:66px;padding:12px 16px;border:1.5px dashed var(--line);border-radius:15px;background:var(--field);font-size:13px;font-weight:700;cursor:pointer}
.photo-upload:focus-within{outline:2px solid var(--red);outline-offset:3px}
.photo-upload input[type=file]{max-width:100%;font-size:12px}
.photo-delete{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:42px;border-radius:10px}
.profile-bottom .claim-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:15px 18px}
.profile-bottom .claim-panel>summary{font-weight:700;cursor:pointer}
.profile-bottom .claim-panel>p{font-size:13px;line-height:1.65;color:var(--muted)}
.track-appointment{display:grid;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:10px;margin:14px 0}
.track-appointment>div{padding:8px 10px;border-radius:10px;background:var(--field);display:flex;flex-direction:column;gap:4px}
.track-appointment small{color:var(--muted);font-size:11px}.track-appointment strong{font-size:14px;color:var(--text)}
/* Keep the message composer in view on phones with software keyboards. */
@media(max-width:760px){#booking-chat .chat-shell{max-height:100dvh;height:100dvh}#booking-chat .chat-thread{min-height:0}#booking-chat #chat-list{min-height:0}}

#booking-chat .chat-order-picker{display:flex;flex-direction:column;gap:6px;margin:8px 0 4px;font-size:11px;color:var(--muted,#8c9b9b)}
#booking-chat .chat-order-picker[hidden]{display:none!important}
#booking-chat .chat-order-picker select{display:block;max-width:100%;min-height:42px;padding:8px 12px;color:var(--text,#e5e9e8);background:var(--panel,#161b20);border:1px solid var(--line,#38434b);border-radius:10px;font:inherit}
#booking-chat .chat-order-picker select:focus-visible{outline:2px solid var(--red,#d9362d);outline-offset:2px}
@media(min-width:761px){
 .compact-header .desktop-top-nav{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1}
 .desktop-top-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border-radius:12px;color:var(--text);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
 .desktop-top-nav a:hover,.desktop-top-nav a[aria-current=page]{background:var(--field);color:var(--red)}
}
@media(max-width:1050px) and (min-width:761px){.desktop-top-nav a{font-size:11px;padding:8px}}
@media(max-width:760px){.compact-header .desktop-top-nav{display:none!important}}
.photo-upload{position:relative;overflow:hidden}
.photo-upload input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}

/* Admin login: visible feedback while password, TOTP and dashboard requests run. */
#login-submit.is-loading{cursor:progress;opacity:.85}
#login-submit.is-loading>span{display:none}
#login-submit.is-loading::after{
  content:"";display:inline-block;width:15px;height:15px;margin-left:8px;
  vertical-align:-3px;border:2px solid currentColor;border-right-color:transparent;
  border-radius:50%;animation:avtobox-login-spin .75s linear infinite
}
#login-progress:not([hidden]){margin:10px 0 0;font-size:13px}
@keyframes avtobox-login-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#login-submit.is-loading::after{animation:none}}

/* v64 chat density: compact order context and readable message bubbles. */
#booking-chat .chat-head{height:auto;min-height:84px;padding:14px 18px;align-items:flex-start}
#booking-chat .chat-head h2{font-size:19px;line-height:1.25}
#booking-chat .chat-head p{font-size:12px;line-height:1.35}
#booking-chat .chat-order-picker{margin:9px 0 0}
#booking-chat .chat-order-picker select{min-height:42px;padding:8px 12px}
#booking-chat .chat-message{max-width:min(76%,420px);padding:10px 13px;border-radius:14px;margin-bottom:9px}
#booking-chat .chat-message.mine{border-radius:14px 14px 5px 14px}
#booking-chat .chat-message time{font-size:11px;white-space:nowrap}
#booking-chat .chat-message strong{font-size:11px}
#booking-chat .chat-message p{font-size:13px;line-height:1.45}
#booking-chat .chat-thread{display:flex;flex-direction:column;min-height:0}
#booking-chat #chat-list{position:static;flex:1 1 auto;height:auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto;padding:16px}
#booking-chat #chat-form{position:relative;inset:auto;flex:0 0 auto;min-height:82px}
#booking-chat #chat-error{position:relative;left:auto;bottom:auto;margin:0 14px}
@media(max-width:760px){#booking-chat .chat-head{min-height:78px;padding:12px}#booking-chat #chat-list{padding:12px}#booking-chat .chat-message{max-width:88%}}
