/* user-icon.css: the user icon behind the bottom-right menu, redrawn to match the header (Luca, desk 26 Nov ~13:50:
   "the user icon should be improved a little to match the rest of the site design").
   Same language as the header: glass, a hairline cream ring, a 1.5px line glyph, Space Mono labels, the blue-hi accent.
   Loaded after canvas.css, whose !important text-link rules it overrides for a logged-in member.
     logged out   outline glyph + "LOG IN" (the landing's own bottom bar stays the visitor's way in; canvas.css hides this there)
     logged in    40px glass disc, person glyph, a small blue-hi dot = "you are in"
     hover        ring and glyph full cream
     open         inverted: cream disc, dark × glyph (aria-expanded true)                                                   */
body .cm-btn { text-decoration: none !important; gap: 8px; align-items: center; display: inline-flex !important; }
body .cm-btn .ini { display: none !important; }
body .cm-btn .ini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
body .cm-btn .ini .x { display: none; }
body .cm-btn .ini .dot { position: absolute; right: 1px; bottom: 1px; width: 8px; height: 8px; border-radius: 50%;
  background: #727ce0; box-shadow: 0 0 0 2px #0A0A0A; }

/* logged out: glyph beside the label, no disc */
body:not(.cm-in) .cm-btn .ini { display: grid !important; position: relative; width: 22px !important; height: 22px !important;
  background: none !important; place-items: center; }
body:not(.cm-in) .cm-btn .ini .dot { display: none; }
body:not(.cm-in) .cm-btn .lbl { order: 2; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244,241,238,.4); }

/* logged in: the disc */
body.cm-in .cm-btn { width: 44px !important; height: 44px !important; padding: 0 !important; justify-content: center; }
body.cm-in .cm-btn .lbl { display: none !important; }
body.cm-in .cm-btn .ini { display: grid !important; position: relative; place-items: center; width: 40px !important; height: 40px !important;
  border-radius: 50%; background: rgba(10,10,10,.72) !important; color: #F4F1EE;
  box-shadow: inset 0 0 0 1px rgba(244,241,238,.55), 0 0 18px rgba(154,162,236,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .18s, color .18s, box-shadow .18s; }
@media (hover: hover) and (pointer: fine) {
  body.cm-in .cm-btn:hover .ini { box-shadow: inset 0 0 0 1px #F4F1EE, 0 0 22px rgba(154,162,236,.45); background: rgba(30,30,36,.8) !important; }
}
body.cm-in .cm-btn:active .ini { transform: scale(.96); }
body.cm-in.cm-open .cm-btn .ini { background: #F4F1EE !important; color: #0A0A0A; box-shadow: 0 0 0 1px #F4F1EE; }
body.cm-in.cm-open .cm-btn .ini .u, body.cm-in.cm-open .cm-btn .ini .dot { display: none; }
body.cm-in.cm-open .cm-btn .ini .x { display: block; }
body .cm-btn:focus-visible { outline: 2px solid #F4F1EE !important; outline-offset: 3px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { body.cm-in .cm-btn .ini { transition: none; } }
