/* APSNY_AUTH_HEADER_V1 */
[data-auth-widget]{position:relative;display:inline-flex;align-items:center;min-width:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.apsny-auth-loading{width:40px;height:40px;display:grid;place-items:center;color:#796c63;font-size:12px}
.apsny-auth-login{min-height:40px;padding:0 13px;border-radius:12px;border:1px solid #e8ddd3;background:#fff;color:#2d190f;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;font-weight:800;box-shadow:0 4px 12px rgba(48,31,21,.05)}
.apsny-auth-login:hover{background:#f8f3ee}
.apsny-auth-login-icon{font-size:15px;color:#17492a}
.apsny-auth-account{position:relative}
.apsny-auth-trigger{min-height:42px;max-width:190px;padding:4px 9px 4px 5px;border:1px solid #e8ddd3;border-radius:14px;background:#fff;display:flex;align-items:center;gap:8px;cursor:pointer;color:#2d190f;box-shadow:0 4px 12px rgba(48,31,21,.05)}
.apsny-auth-avatar{flex:0 0 auto;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#17492a;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900}
.apsny-auth-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.apsny-auth-avatar.large{width:42px;height:42px;font-size:13px}
.apsny-auth-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800}
.apsny-auth-chevron{font-size:12px;color:#796c63}
.apsny-auth-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:5000;width:260px;padding:8px;background:#fff;border:1px solid #e8ddd3;border-radius:17px;box-shadow:0 18px 55px rgba(48,31,21,.18)}
.apsny-auth-menu[hidden]{display:none}
.apsny-auth-menu-profile{display:flex;align-items:center;gap:10px;padding:8px 8px 12px;border-bottom:1px solid #eee5dd;margin-bottom:6px}
.apsny-auth-menu-person{min-width:0;display:grid;gap:2px}
.apsny-auth-menu-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#2d190f}
.apsny-auth-menu-person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#796c63}
.apsny-auth-menu-item{width:100%;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:transparent;display:flex;align-items:center;text-align:left;cursor:pointer;color:#2b211c;font-size:13px;font-weight:700}
.apsny-auth-menu-item:hover{background:#f7f1e9}
.apsny-auth-menu-item.danger{color:#9a322c}
.topbar-actions{justify-self:end;display:flex;align-items:center;gap:8px;min-width:0}
.topbar-actions .map-link,.topbar-actions .list-link{justify-self:auto}
.cafe-header-actions{align-items:center}
.cafe-header-actions [data-auth-widget]{margin-right:2px}

@media(max-width:760px){
  .apsny-auth-name,.apsny-auth-chevron{display:none}
  .apsny-auth-trigger{width:40px;min-height:40px;padding:3px;border-radius:50%}
  .apsny-auth-avatar{width:32px;height:32px}
  .apsny-auth-login{width:40px;min-height:40px;padding:0;justify-content:center;border-radius:50%}
  .apsny-auth-login span:last-child{display:none}
  .apsny-auth-menu{position:fixed;right:10px;top:64px;width:min(280px,calc(100vw - 20px))}
  .topbar-actions{gap:6px}
}

@media(max-width:767px){
  .cafe-appbar{grid-template-columns:42px 1fr minmax(124px,auto)!important}
  .cafe-header-actions{gap:5px!important}
  .cafe-header-actions .icon-btn{width:36px!important;height:36px!important}
  .cafe-header-actions .apsny-auth-trigger,.cafe-header-actions .apsny-auth-login{width:36px;min-height:36px}
  .cafe-header-actions .apsny-auth-avatar{width:28px;height:28px}
}

/* APSNY AUTH ICON V2 — header uses a compact account icon on every desktop page. */
.apsny-public-header .apsny-auth-name,.apsny-public-header .apsny-auth-chevron{display:none!important}
.apsny-public-header .apsny-auth-trigger,.apsny-public-header .apsny-auth-login{width:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;padding:4px!important;justify-content:center!important;border-radius:50%!important}
.apsny-public-header .apsny-auth-login span:last-child{display:none!important}
.apsny-public-header .apsny-auth-avatar{width:32px!important;height:32px!important}
