/* The header Explore and Status share (shell.js). */
header#top { display:flex; gap:14px; align-items:center; padding:8px 16px; background:var(--accent); color:#fff; flex-wrap:wrap; }
header#top h1 { font-size:17px; margin:0; }
header#top nav { display:flex; gap:4px; }
header#top nav a { color:#fff; text-decoration:none; padding:3px 10px; border-radius:4px; opacity:.85; }
header#top nav a.on { background:rgba(255,255,255,.18); opacity:1; }
header#top nav a:hover { opacity:1; }
header#top .spacer { margin-left:auto; }
header#top select, header#top button { font:inherit; padding:3px 6px; border-radius:4px; border:0; }
header#top #who { font-size:12px; background:transparent; color:#fff; cursor:pointer; opacity:.9; }
header#top #who:hover { opacity:1; text-decoration:underline; }
header#top #extras { display:flex; gap:10px; align-items:center; }
header#top #viewAs { font-size:12px; }
/* Viewing as another tier: the bar striped, so it isn't forgotten. */
header#top.viewing-as { background:repeating-linear-gradient(135deg, var(--accent) 0 16px, var(--warn) 16px 32px); }
header#top.viewing-as #viewAs { background:#fff; color:var(--warn); font-weight:600; }
/* Your profile (shell.js). */
dialog#profile { border:1px solid var(--line); border-radius:8px; padding:14px 16px; width:min(560px, calc(100vw - 24px)); max-height:calc(100vh - 24px); }
dialog#profile::backdrop { background:rgba(0,0,0,.35); }
dialog#profile h2 { margin:0 0 10px; font-size:16px; }
dialog#profile .pf-row { display:flex; flex-direction:column; gap:4px; font-size:13px; }
dialog#profile input:not([type=radio]) { font:inherit; padding:5px 7px; border:1px solid var(--line); border-radius:4px; }
dialog#profile fieldset { border:1px solid var(--line); border-radius:6px; margin:12px 0 0; display:flex; flex-direction:column; gap:4px; }
dialog#profile legend { font-size:13px; }
#pfMap { height:260px; border-radius:4px; margin-top:6px; }
#pfBoxTools { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:4px; }
#pfBoxTools button, .pf-buttons button { font:inherit; padding:4px 10px; border-radius:4px; border:1px solid var(--line); background:#fff; cursor:pointer; }
#pfAreaName { flex:1; min-width:160px; }
.pf-buttons { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.pf-buttons #pfSave { background:var(--accent); color:#fff; border-color:var(--accent); }
.pf-buttons .pf-signout { border:0; background:none; color:var(--muted); text-decoration:underline; padding:4px 0; }
.pf-msg { color:var(--warn); margin:6px 0 0; font-size:13px; }
.pf-corner { background:#fff; border:2px solid #9a6312; border-radius:50%; box-shadow:0 0 0 2px rgba(255,255,255,.6); }
/* A phone: one or two short lines, not three. */
@media (max-width: 600px) {
  header#top { gap:6px 10px; padding:6px 12px; }
  header#top h1 { font-size:15px; }
  header#top nav a { padding:3px 7px; }
  header#top .narrow-hide { display:none; }
  header#top #who { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  header#top select { max-width:150px; }
}
