.mobile-header{display:none}
@media(max-width:760px){
 :root{--mobile-header-height:calc(68px + env(safe-area-inset-top,0px))}
 body{padding-top:var(--mobile-header-height)!important}
 .mobile-header{display:flex;position:fixed;inset:0 0 auto;z-index:650;height:var(--mobile-header-height);box-sizing:border-box;padding:env(safe-area-inset-top,0px) 16px 0;align-items:center;justify-content:space-between;gap:16px;background:#111;border-bottom:1px solid #ffffff20}
 .mobile-header__logo{display:flex;min-width:0;flex-shrink:1}
 .mobile-header__logo img{width:140px;max-width:100%;height:32px;object-fit:contain}
 .mobile-header nav{display:flex;align-items:center;gap:8px;flex-shrink:0}
 .mobile-header nav>:is(a,button){display:flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;padding:0;border:1px solid #ffffff25;border-radius:50%;background:transparent;color:#f0eee5;text-decoration:none;cursor:pointer}
 .mobile-header nav>[hidden]{display:none!important}
 .mobile-header nav>*.nav-signin{width:auto;padding:0 12px;border-radius:4px;font:11px var(--font-mono,monospace)}
 .mobile-header nav img{display:block;width:38px;height:38px;object-fit:cover;border-radius:50%}
 .mobile-header nav svg{width:20px;height:20px}
 .page-places #auth-link{display:none}
 .page-index>.wrap>header{display:none!important}
 body:not(.page-collection)>.wrap{padding-top:20px}
 body>.wrap>header .logo,body>.wrap>.topbar .logo,body>.wrap .brand-logo{display:none}
 .page-collection .collection-topbar{top:var(--mobile-header-height);min-height:52px;height:52px;padding:4px 16px;justify-content:flex-end;z-index:600}
 .page-collection .collection-topbar .brand{display:none}
 .page-collection .app-shell{padding-top:68px!important}
 .account-menu,.notif-menu{z-index:700;max-height:calc(100dvh - 160px);overflow:auto}
 html{scroll-padding-top:calc(var(--mobile-header-height) + 60px)}
}

/* Shared account panels also used by standalone pages. */
/* --- Account dropdown menu -------------------------------------------------- */
.account-menu {
  position: fixed;
  z-index: 500;
  width: 248px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.account-menu.is-open { opacity: 1; transform: none; }

.account-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.account-menu__avatar {
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.account-menu__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.account-menu__who { display: flex; flex-direction: column; min-width: 0; }
.account-menu__who strong { font-size: 0.875rem; font-weight: 600; }
.account-menu__who span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__items { display: flex; flex-direction: column; padding: 4px 0; }

.account-menu__items a,
.account-menu__items button,
.account-menu__out {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-soft);
  text-decoration: none;
  background: none;
  border: none;
  padding: 9px 10px;
  cursor: pointer;
}

.account-menu__items a:hover,
.account-menu__items button:hover,
.account-menu__out:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.account-menu__ico { width: 15px; height: 15px; flex: none; opacity: 0.6; display: inline-flex; }
.account-menu__ico svg { width: 100%; height: 100%; display: block; }

.account-menu__out {
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Notifications bell + panel --------------------------------------------- */
#notif-trigger { position: relative; }
.notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius:var(--radius-pill,999px); background: var(--text); color: #000;
  font-family: var(--font-mono); font-size: 0.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #000;
}
.notif-menu {
  position: fixed; z-index: 500; width: 320px; max-width: calc(100vw - 24px);
  max-height: 70vh; overflow-y: auto;
  background: rgba(0, 0, 0, 0.94); border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 6px; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease; font-family: var(--font-sans);
}
.notif-menu.is-open { opacity: 1; transform: none; }
.notif-menu__head {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin: 0; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-empty { color: var(--text-dim); font-size: 0.8125rem; padding: 14px 10px; margin: 0; line-height: 1.5; }
.notif-item {
  display: flex; gap: 10px; align-items: center; padding: 10px;
  text-decoration: none; color: var(--text-soft); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.notif-item.is-unread { background: rgba(255, 255, 255, 0.04); }
.notif-item.is-unread .notif-item__text { color: var(--text); }
.notif-item__avatar {
  width: 34px; height: 34px; flex: none; overflow: hidden;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
}
.notif-item__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notif-item__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notif-item__text { font-size: 0.8125rem; line-height: 1.35; }
.notif-item__text strong { font-weight: 600; color: var(--text); }
.notif-item__time { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-dim); }


@media(max-width:760px){.account-menu,.notif-menu{z-index:700;max-height:calc(100dvh - 160px)}}
