/* A visible entrance to the portal, without changing the site's neutral palette. */
@property --ss-login-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.nav .login { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 2px solid transparent; border-radius: 999px; color: var(--ink); font-weight: 600; background: linear-gradient(var(--surface),var(--surface)) padding-box, conic-gradient(from var(--ss-login-angle),#7948ff,#3674ff,#bb80ff,#7948ff) border-box; animation: ss-login-orbit 5s linear infinite; box-shadow: 0 0 15px #7855ff38, 0 0 25px #3674ff20; }
.nav .login::before { content: ''; position: absolute; z-index: -1; inset: -5px; border-radius: inherit; background: conic-gradient(from var(--ss-login-angle),#7948ff66,#3674ff55,#bb80ff44,#7948ff66); filter: blur(9px); animation: ss-login-orbit 5s linear infinite; pointer-events: none; }
.nav .login:hover { box-shadow: 0 0 20px #7855ff55, 0 0 30px #3674ff38; }
@keyframes ss-login-orbit { to { --ss-login-angle: 360deg; } }
.ss-help { position: fixed; bottom: max(22px,env(safe-area-inset-bottom)); right: max(22px,env(safe-area-inset-right)); z-index: 80; font: 14px/1.55 var(--font); color: var(--ink); }
.ss-help button,.ss-help input { font: inherit; }
.ss-help-launch { display: flex; align-items: center; gap: 11px; margin-left: auto; min-height: 52px; padding: 12px 18px; background: var(--ink); color: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 8px 30px #0003; cursor: pointer; font-weight: 600; }
.ss-help-launch:hover { transform: translateY(-2px); }
.ss-help-launch[aria-expanded=true] { margin-top: 12px; }
.ss-help-panel { position: absolute; bottom: 66px; right: 0; width: 380px; max-width: calc(100vw - 32px); height: 530px; max-height: calc(100dvh - 120px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 20px 80px #0003; display: flex; flex-direction: column; overflow: hidden; }
.ss-help-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ss-help-head strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.ss-help-head span { color: var(--muted); font-size: 12px; }
.ss-help-close { border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; background: var(--surface-2); cursor: pointer; font-size: 24px !important; line-height: 1; }
.ss-help-note { padding: 10px 20px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.ss-help-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px; overscroll-behavior: contain; }
.ss-help-message { max-width: 94%; margin-bottom: 14px; padding: 12px 14px; border-radius: 15px 15px 15px 4px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.ss-help-message p { white-space: pre-wrap; line-height: 1.65; }
.ss-help-message.visitor { margin-left: auto; background: var(--ink); color: var(--surface); border-radius: 15px 15px 4px 15px; }
.ss-help-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ss-help-actions a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; font-size: 12px; font-weight: 500; }
.ss-help-actions a:hover { border-color: var(--accent); color: var(--accent); }
.ss-help-form { display: flex; gap: 8px; margin: 0 16px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; }
.ss-help-form input { width: 100%; min-width: 0; border: none; background: transparent; color: var(--ink); padding: 7px 4px; font-size: 16px; }
.ss-help-form input::placeholder { color: var(--muted); font-size: 13px; }
.ss-help-form button { width: 38px; flex: 0 0 38px; border: none; border-radius: 10px; background: var(--ink); color: var(--surface); cursor: pointer; font-size: 22px; }
.ss-help-foot { padding: 9px 16px 13px; text-align: center; font-size: 11px; color: var(--muted); }
.ss-help-foot a { text-decoration: underline; text-underline-offset: 3px; }
.ss-help-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width: 600px) { .nav .wrap { height: auto; min-height: 68px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; } .nav-right { margin-left: auto; } .nav .login { padding: 0 12px; font-size: 13px; } .ss-help { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); } }
@media(max-width: 420px) { .nav .wrap { gap: 12px; } .nav-right { width: 100%; justify-content: flex-end; } .nav .login { margin-right: auto; } }
@media(prefers-reduced-motion: reduce) { .nav .login,.nav .login::before { animation: none; } .ss-help-launch:hover { transform: none; } }
