/* View as visitor: profile menu and neon border */
.hc-prof{position:relative;margin-left:1rem;font-family:var(--display,"Helvetica Neue",Arial,sans-serif);font-size:.9375rem}
.hc-prof-float{position:fixed;top:.75rem;right:.75rem;z-index:2147482000;margin:0}
.hc-prof-btn{width:2.25rem;height:2.25rem;border-radius:50%;border:2px solid var(--pine,#0E5A49);background:var(--pine,#0E5A49);color:#fff;font:inherit;font-weight:700;cursor:pointer;line-height:1}
.hc-prof-btn:hover{background:var(--pine-deep,#0A3F34)}
.hc-prof-menu{position:absolute;right:0;top:calc(100% + .4rem);min-width:13rem;background:var(--paper,#F8FAF8);color:var(--ink,#16231F);border:1px solid var(--line,#CBD4CF);border-radius:4px;box-shadow:0 6px 20px rgba(0,0,0,.15);padding:.5rem;z-index:2147482000}
.hc-prof-menu[hidden]{display:none}
.hc-prof-who{margin:0 0 .4rem;padding:.25rem .5rem;color:var(--muted,#51615B);font-size:.875rem;overflow-wrap:anywhere}
.hc-prof-item{display:block;width:100%;text-align:left;font:inherit;font-weight:600;padding:.55rem .5rem;border:0;border-radius:3px;background:transparent;color:inherit;cursor:pointer}
.hc-prof-item:hover,.hc-prof-item:focus-visible{background:var(--ground,#EEF1EE)}

/* Visitor mode hides admin-only controls */
.hc-visitor .who,.hc-visitor .logbtn{display:none}

/* Thin neon green tube around the viewport */
.hc-neon{position:fixed;inset:4px;z-index:2147481000;pointer-events:none;border:2px solid #d4ffc8;border-radius:6px;
  box-shadow:0 0 3px 1px #39ff14,0 0 10px 2px rgba(57,255,20,.85),0 0 24px 6px rgba(57,255,20,.45),
    inset 0 0 3px 1px #39ff14,inset 0 0 10px 2px rgba(57,255,20,.8),inset 0 0 26px 6px rgba(57,255,20,.35)}
@media (prefers-reduced-motion:no-preference){
  .hc-neon{animation:hc-neon-glow 3.4s ease-in-out infinite}
  @keyframes hc-neon-glow{0%,100%{opacity:.82}50%{opacity:1}}
}
@media print{.hc-neon,.hc-prof{display:none}}
