/* Beauty 4173: the six mobile audit fixes. Loaded after the existing sheets.
   Desktop, Hero imagery/composition and Botanical Light remain outside this layer. */
@media (max-width:800px) {
 body.fj-mobile-fallback {
  --bg:#061710;--surface:#10271d;--surface-soft:#173426;--surface-blush:#173426;
  --text:#f1eee4;--text-muted:#c0cabe;--heading:#f7f1e3;
  --accent:#dec18a;--accent-hover:#f1d7a5;--accent-text:#102219;
  --link:#e4c88f;--gold:#d7b77b;--border:#64714c;--border-strong:#bc9b60;
  --header:#081b14;--footer:#04120c;--card:#10271d;
  --error:#ffb9ac;--error-surface:#492c2a;--success:#b8d2b5;
  --ivory:var(--bg);--paper:var(--surface);--sand:var(--surface-soft);
  --ink:var(--heading);--muted:var(--text-muted);--line:var(--border);
  --rose:var(--accent);--rose-hover:var(--accent-hover);
  background:var(--bg);color:var(--text);
 }
 :root[data-theme=light] body.fj-mobile-fallback {
  --surface:#143022;--surface-soft:#1d402e;--card:#143022;
  --text:#fff9ed;--text-muted:#d0d8c8;--border:#73805a;
 }
 body.fj-mobile-fallback :is(.site-header,.site-footer,.main-nav,.theme-menu) {background:var(--header);border-color:var(--border)}
 body.fj-mobile-fallback .site-footer {background:var(--footer);color:var(--text)}
 body.fj-mobile-fallback :is(.site-header,.site-footer) .brand {gap:12px;min-width:0}
 body.fj-mobile-fallback :is(.site-header,.site-footer) .brand-leaf {display:none}
 body.fj-mobile-fallback :is(.site-header,.site-footer) .brand::before {content:"";display:block;flex:none;width:35px;aspect-ratio:438/520;background:url('/demo/beauty/assets/forest-jewel-symbol.svg') center/contain no-repeat}
 body.fj-mobile-fallback .site-header .brand>span {font-size:25px;color:var(--heading)}
 body.fj-mobile-fallback .brand small {color:var(--gold)}
 body.fj-mobile-fallback .site-footer .brand::before {width:27px}
 body.fj-mobile-fallback .client-auth-card {background:var(--surface);border-color:var(--border-strong)}
 body.fj-mobile-fallback :is(input,select,textarea) {background:#0d211b;color:var(--text);border-color:#758064}
 body.fj-mobile-fallback .button {border-color:var(--accent);border-radius:999px;background:var(--accent);color:var(--accent-text)}
 body.fj-mobile-fallback .button:hover {background:var(--accent-hover);border-color:var(--accent-hover)}
 body.fj-mobile-fallback .client-auth-links a {color:var(--link)}
 body.fj-mobile-fallback .form-error {color:var(--error);background:var(--error-surface)}
 body.fj-mobile-fallback .client-notice {background:#193c2b;color:#e5f0df;border-color:#91b398}
 body.fj-mobile-fallback :focus-visible {outline-color:var(--gold)}

 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .account-entry {min-height:44px;min-width:44px;align-items:center;justify-content:center}
 body.fj-profile-page [data-booking-login] {display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding-inline:6px;margin-inline:-6px}
 body.admin-body:has(> .admin-shell) .admin-header .quiet-link {display:inline-flex;align-items:center;min-height:44px;padding-inline:4px}

 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast {
  background:#10271d;color:#f1eee4;border:1px solid #64714c;border-inline-start:4px solid #a9c7b0;
  display:flex;align-items:center;gap:10px;
 }
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast::before {content:"i";flex:none;font-weight:700}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=success] {border-inline-start-color:#9fc9a3}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=success]::before {content:"✓";color:#b8d2b5}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=warning] {border-inline-start-color:#dec18a}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=warning]::before {content:"!";color:#dec18a}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=error] {color:#ffb9ac;border-inline-start-color:#efaa9e}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form),.admin-body:has(> .admin-shell)) #toast[data-toast-tone=error]::before {content:"×";color:#ffb9ac}
}

@media (max-width:600px) {
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .header-inner {gap:7px}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .brand {min-width:0;flex:1 1 auto;gap:5px}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .brand>span {min-width:0;white-space:normal;line-height:1}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .brand small {font-size:8px;line-height:1.15;letter-spacing:.25px;margin-top:2px;white-space:normal}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .header-tools {flex:0 0 auto;gap:5px}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header :is(.theme-trigger,.menu-toggle) {width:32px;min-width:32px;height:44px;padding:4px}
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .account-entry {position:relative;flex:0 0 44px;width:44px;max-width:none;height:44px;padding:0}
 /* Keep the existing accessible account text while using its compact icon. */
 body:is(.forest-jewel,.fj-public-brand,.fj-mobile-fallback,:has(#client-login-form)) .site-header .account-entry>span {position:absolute;display:block;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.fj-mobile-fallback .site-header .brand::before {width:22px}
 body.fj-mobile-fallback .site-header .brand>span {font-size:13px}
}
@media (max-width:340px) {
 body.forest-jewel .site-header .forest-brand>span {font-size:16px}
 html[lang=ru] body.admin-body[data-admin-section=certificates]:has(> .admin-shell) .admin-title h1 {font-size:26px;overflow-wrap:normal;word-break:normal}
}
