@layer legacy { @scope (:root) to (#main) {
.auth-overlay {--header-frame-height:88px;--text:#edf4ff;--muted:#9fb0c8;--text-soft:#9fb0c8;--line:rgba(255,255,255,.08);--shadow:0 20px 50px rgba(0,0,0,.35);font-family:Arial,sans-serif;}
@keyframes site-loading-cursor-spin {
  to { transform: rotate(360deg); }
}
.auth-button,
.hero-button,
.card-link,
.search-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}
.auth-button{
  min-width: 120px;
  min-height: 44px;
  height: 44px;
  padding: 0 18px 2px;
  border-radius: 14px;
}
.auth-button-label{
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}
.auth-button,
.hero-button.primary,
.search-button{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111f;
  box-shadow: var(--shadow);
}
@media  (max-width: 980px) {#auth-widget,
  .profile-menu,
  .auth-button,
  .profile-trigger,
  .profile-dropdown-menu{
    width: 100%;
  }}
.auth-submit{
  border-color: rgba(126, 199, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 34, 58, 0.96), rgba(10, 25, 45, 0.96));
}
.auth-submit:hover{
  border-color: rgba(126, 199, 255, 0.24);
}
.auth-secondary{
  color: rgba(237, 244, 255, 0.92);
}
#auth-widget{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 44px;
}
.header-auth-placeholder{
  display: block;
  width: 190px;
  height: 44px;
  flex: 0 0 190px;
}
.auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 220;
}
.auth-overlay.hidden{
  display: none;
}
.auth-backdrop{
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}
.auth-dropdown{
  position: fixed;
  top: calc(var(--header-frame-height) + 12px);
  left: auto;
  right: max(16px, calc((100vw - min(1180px, calc(100% - 32px))) / 2));
  width: min(320px, calc(100vw - 24px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(4,16,31,0.98), rgba(2,12,24,0.98));
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  padding: 12px;
}
.auth-switcher{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-tab{
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
}
.auth-tab.active{
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(126, 199, 255, 0.14);
}
.auth-pane{
  display: none;
}
.auth-pane.active{
  display: block;
}
.auth-kicker{
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.auth-form{
  display: grid;
  gap: 10px;
}
.auth-field-compact{
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(126, 199, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.96), rgba(4, 14, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.auth-field-icon,
.auth-action-icon{
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(198, 216, 239, 0.72);
}
.auth-field-icon svg,
.auth-action-icon svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.auth-field-compact input{
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}
.auth-field-compact input::placeholder{
  color: rgba(196, 210, 231, 0.46);
}
.auth-field-compact:hover{
  border-color: rgba(126, 199, 255, 0.14);
}
.auth-field-compact:focus-within{
  border-color: rgba(126, 199, 255, 0.24);
  box-shadow:
    0 0 0 3px rgba(126, 199, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
.auth-actions{
  display: grid;
  gap: 10px;
  margin-top: 2px;
}
.auth-ghost-button{
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(126, 199, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 30, 52, 0.88), rgba(8, 22, 40, 0.88));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.12);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.auth-ghost-button:hover{
  background:
    linear-gradient(180deg, rgba(15, 35, 60, 0.94), rgba(10, 26, 46, 0.94));
  border-color: rgba(126, 199, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 22px rgba(0,0,0,0.16);
}
.auth-ghost-button:active{
  transform: translateY(1px);
}
.auth-submit,
.auth-back,
.auth-secondary{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.12);
}
@media  (max-width: 720px) {.auth-dropdown{
    width: min(360px, calc(100vw - 20px)) !important;
    left: 10px !important;
    right: 10px !important;
  }}
.auth-field-compact{
  position: relative;
}
.auth-field-compact input[type="password"],
.auth-field-compact input[type="text"]{
  padding-right: 38px;
}
.auth-password-toggle,
.password-toggle,
.auth-eye-toggle{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  color: rgba(255,255,255,0.92) !important;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}
.auth-password-toggle svg,
.password-toggle svg,
.auth-eye-toggle svg{
  width: 18px;
  height: 18px;
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
}
.auth-field-compact:focus-within .auth-password-toggle,
.auth-field-compact:focus-within .password-toggle,
.auth-field-compact:focus-within .auth-eye-toggle,
.auth-field-compact:hover .auth-password-toggle,
.auth-field-compact:hover .password-toggle,
.auth-field-compact:hover .auth-eye-toggle{
  opacity: 1 !important;
  visibility: visible !important;
}
.auth-field-compact .password-visibility-toggle,
.auth-field-compact .password-toggle-icon,
.auth-field-compact .password-eye,
.auth-field-compact .toggle-password,
.auth-field-compact [data-password-toggle]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="парол"]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="арол"]:not(.auth-password-toggle){
  display: none !important;
}
.auth-field-compact input::-ms-reveal,
.auth-field-compact input::-ms-clear,
.auth-field-compact input::-webkit-credentials-auto-fill-button,
.auth-field-compact input::-webkit-textfield-decoration-container{
  display: none !important;
}
.auth-field-compact .password-visibility-toggle,
.auth-field-compact .password-toggle-icon,
.auth-field-compact .password-eye,
.auth-field-compact .toggle-password,
.auth-field-compact [data-password-toggle]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="парол"]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="арол"]:not(.auth-password-toggle),
.auth-field-compact .auth-field-icon + button,
.auth-field-compact input + button:not(.auth-password-toggle){
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.auth-password-toggle{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.96) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  z-index: 20;
}
.auth-password-toggle svg{
  width: 18px;
  height: 18px;
  stroke: currentColor !important;
  fill: none !important;
  pointer-events: none;
}
#auth-form-message.is-error{
  color: #ffb4b4;
  border: 1px solid rgba(255, 120, 120, 0.25);
}
#auth-form-message.is-success{
  color: #d6f5d6;
  border: 1px solid rgba(140, 255, 140, 0.2);
}
.profile-info-note{
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}
.auth-field-with-status input{
  padding-right: 72px;
}
.auth-status-indicator{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.auth-status-indicator svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.auth-status-indicator.is-valid,
.auth-status-indicator.is-invalid,
.auth-status-indicator.is-checking{
  opacity: 1;
}
.auth-status-indicator.is-valid{
  color: #77e18a;
}
.auth-status-indicator.is-invalid{
  color: #ff8d8d;
}
.auth-status-indicator.is-checking{
  color: rgba(224, 233, 249, 0.72);
}
.auth-form button[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-autofill-trap{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-autofill-trap input{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.auth-field-with-prefix{
  grid-template-columns: 16px auto 1fr;
  gap: 6px;
}
.auth-field-with-prefix .auth-field-prefix{
  position: static;
  transform: none;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  min-width: 0;
}
.auth-field-with-prefix input[type="text"]{
  padding-left: 0;
}
.auth-field-with-prefix input::selection{
  background: rgba(255,255,255,0.12);
}
.auth-password-toggle:focus{
  outline: none !important;
  box-shadow: none !important;
}
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active,
.auth-field-compact input:-webkit-autofill,
.auth-field-compact input:-webkit-autofill:hover,
.auth-field-compact input:-webkit-autofill:focus,
.auth-field-compact input:-webkit-autofill:active{
  -webkit-text-fill-color: rgba(224, 233, 249, 0.92) !important;
  caret-color: rgba(224, 233, 249, 0.92) !important;
  border-radius: inherit;
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 16, 28, 0) inset !important;
  box-shadow: 0 0 0 1000px rgba(6, 16, 28, 0) inset !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: text !important;
  transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s;
}
.auth-field-compact input{
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}
.auth-field-with-prefix{
  grid-template-columns: 16px max-content 1fr;
  gap: 3px;
}
.auth-field-with-prefix .auth-field-prefix{
  margin-right: 0;
}
.auth-field-with-prefix input[type="text"]{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.auth-field-with-prefix[data-register-phone-field]{
  column-gap: 3px;
}
.auth-field-with-prefix[data-register-phone-field] .auth-field-prefix{
  letter-spacing: 0;
  min-width: auto;
}
.auth-field-with-prefix[data-register-phone-field]{
  grid-template-columns: 16px max-content 1fr;
  column-gap: 1px !important;
}
.auth-field-with-prefix[data-register-phone-field] .auth-field-prefix{
  margin-right: 0 !important;
  padding-right: 0 !important;
}
.auth-field-with-prefix[data-register-phone-field] input[data-register-phone-input]{
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
.auth-dropdown{
  top: 72px;
  right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 18, 31, 0.98);
  box-shadow: var(--shadow);
  padding: 0;
}
.auth-switcher{
  gap: 0;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.01);
}
.auth-tab{
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background .16s ease, color .16s ease;
}
.auth-tab:hover{
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.auth-tab.active{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 0;
}
.auth-pane{
  padding: 14px 18px 18px;
}
.auth-kicker{
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}
.auth-form{
  gap: 12px;
}
.auth-field-compact{
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: none;
}
.auth-field-compact:hover{
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.auth-field-compact:focus-within{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}
.auth-field-compact input{
  min-height: 44px;
}
.auth-actions{
  gap: 0;
  margin-top: 4px;
}
.auth-actions .auth-ghost-button + .auth-ghost-button{
  margin-top: 8px;
}
.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back{
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  font-weight: 600;
  justify-content: flex-start;
  padding: 0 14px;
  box-shadow: none;
}
.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.auth-ghost-button:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible,
.auth-back:focus-visible,
.auth-tab:focus-visible{
  outline: 1px solid rgba(126, 199, 255, 0.28);
  outline-offset: 2px;
}
.profile-info-note#auth-form-message{
  margin: 12px 18px 0;
}
@media  (max-width: 720px) {.auth-dropdown{
    width: min(320px, calc(100vw - 20px)) !important;
    left: 10px !important;
    right: 10px !important;
  }}
.auth-actions{
  gap: 0;
  margin-top: 6px;
}
.auth-actions .auth-ghost-button + .auth-ghost-button{
  margin-top: 2px;
}
.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back{
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  justify-content: flex-start;
  padding: 6px 0;
  box-shadow: none;
}
.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(255,255,255,0.88);
}
.auth-ghost-button:active,
.auth-submit:active,
.auth-secondary:active,
.auth-back:active{
  transform: none;
  opacity: 0.88;
}
.auth-ghost-button .auth-action-icon,
.auth-submit .auth-action-icon,
.auth-secondary .auth-action-icon,
.auth-back .auth-action-icon{
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.9;
}
.auth-form button[disabled]{
  opacity: 0.55;
  cursor: wait;
  pointer-events: none;
}
.auth-actions{
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back{
  position: relative;
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  padding: 12px 14px;
  border-radius: 0;
  transition: background-color .16s ease, color .16s ease, opacity .16s ease;
}
.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover,
.auth-ghost-button:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible,
.auth-back:focus-visible{
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
  outline: none;
}
.auth-ghost-button + .auth-ghost-button,
.auth-secondary + .auth-submit,
.auth-back + .auth-submit,
.auth-back + .auth-secondary,
.auth-submit + .auth-secondary{
  margin-top: 0;
}
.auth-action-icon{
  flex: 0 0 18px;
}
.profile-wall-author,
.profile-wall-comment{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.profile-wall-author{
  min-width: 0;
}
.profile-wall-author-text,
.profile-wall-comment-body{
  min-width: 0;
}
.profile-wall-author-text strong,
.profile-wall-comment-head strong{
  display: block;
  color: var(--text);
}
.profile-wall-author-text span,
.profile-wall-comment-head span,
.profile-wall-comments-empty,
.profile-wall-comments-title{
  color: var(--muted);
  font-size: 0.93rem;
}
.profile-wall-author{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  width: 100%;
}
.profile-wall-author-text{
  grid-column: 2;
}
.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline{
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 10px 0 6px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  display: inline-grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
  white-space: nowrap;
}
.profile-wall-comment-submit-inline.auth-secondary::after,
.profile-wall-comment-submit-inline.auth-ghost-button::after,
.profile-wall-comment-submit-inline::after{
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: transparent;
  transform: scaleX(0);
}
.profile-wall-comment-submit-inline.auth-secondary:hover,
.profile-wall-comment-submit-inline.auth-secondary:focus-visible,
.profile-wall-comment-submit-inline.auth-ghost-button:hover,
.profile-wall-comment-submit-inline.auth-ghost-button:focus-visible,
.profile-wall-comment-submit-inline:hover,
.profile-wall-comment-submit-inline:focus-visible{
  width: auto;
  margin: 0;
  background: transparent !important;
  color: var(--text);
  box-shadow: none !important;
  outline: none;
}
.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline{
  display: inline-grid;
  vertical-align: top;
}
.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline{
  margin-left: 0;
  flex: 0 0 auto;
}
@keyframes dynmapPulse {
  0%, 100% { transform: scale(0.75); opacity: 0.55; }
  50% { transform: scale(1.25); opacity: 1; }
}
.messages-sidebar,
.messages-chat,
.messages-auth-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.messages-auth-card{
  grid-column: 1 / -1;
  padding: 30px;
  max-width: 620px;
  margin: 0 auto;
}
.messages-auth-card h1{
  margin: 6px 0 10px;
}
.messages-auth-card p:not(.section-label){
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.messages-chat > .messages-auth-card{
  align-self: center;
  justify-self: center;
}
.profile-wall-editor,
.profile-wall-post,
.profile-character-card,
.profile-character-entry,
.profile-character-entry-empty,
.messages-sidebar,
.messages-chat,
.messages-auth-card,
.messages-dialog-item,
.messages-recipient-result,
.messages-recipient-empty,
.messages-new-dialog-form .messages-recipient-input,
.messages-new-dialog-form .messages-recipient-result,
.messages-new-dialog-form .messages-recipient-empty{
  background: var(--unified-chat-box-bg) !important;
}
.profile-role-name{
  transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease;
}
.profile-role-name--plus,
.profile-role-name--plus:hover,
.profile-role-name--plus:focus-visible{
  color: #e6c84f !important;
}
.profile-role-name--helper,
.profile-role-name--helper:hover,
.profile-role-name--helper:focus-visible{
  color: #48d17a !important;
}
.profile-role-name--moderator,
.profile-role-name--moderator:hover,
.profile-role-name--moderator:focus-visible,
.profile-role-name--administrator,
.profile-role-name--administrator:hover,
.profile-role-name--administrator:focus-visible{
  color: #ff5b66 !important;
}
.reports-bubble-author{
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  color: rgba(224, 233, 249, 0.82);
}
@keyframes reportSourcePulse {
  0% { box-shadow: 0 0 0 0 rgba(142, 243, 255, 0.42); }
  45% { box-shadow: 0 0 0 4px rgba(142, 243, 255, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(142, 243, 255, 0); }
}
.site-alert-layer{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.site-alert-layer.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.site-alert-layer.is-hiding{
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
}
.site-alert-card{
  width: min(430px, calc(100vw - 40px));
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(97, 202, 255, 0.46);
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 221, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(18, 39, 62, 0.98), rgba(9, 22, 38, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(6, 16, 31, 0.7);
}
.site-alert-text{
  color: #eaf4ff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}
.admin-chat-author.profile-name-link,
.admin-chat-staff-name.profile-name-link{
  text-decoration: none !important;
  cursor: pointer !important;
}
.admin-chat-author.profile-name-link:hover,
.admin-chat-staff-name.profile-name-link:hover,
.admin-chat-author.profile-name-link:focus-visible,
.admin-chat-staff-name.profile-name-link:focus-visible{
  text-decoration: underline !important;
}
.admin-chat-reply-quote-author.profile-name-link,
.admin-chat-pinned-author.profile-name-link{
  font-size: inherit !important;
  font-weight: 900 !important;
}
.messages-reply-quote-author.profile-name-link{
  font-size: inherit !important;
  font-weight: 900 !important;
}
.forum-author{
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.forum-author-avatar-link,
.forum-author-profile{
  color: inherit;
  text-decoration: none;
}
.forum-author-avatar{
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(126, 199, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.forum-author-text{
  display: grid;
  gap: 4px;
  min-width: 0;
}
.forum-author-name{
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-author-text span:last-child:not(.forum-author-name){
  color: var(--muted);
  font-size: 0.9rem;
}
@media  (max-width: 640px) {.forum-author-avatar{
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }}
.page-shell[data-page="forum"] .forum-inline-author{
  text-decoration: none;
  color: inherit;
}
.page-shell[data-page="forum"] .forum-inline-author:hover .profile-role-name,
.page-shell[data-page="forum"] .forum-inline-author:focus-visible .profile-role-name{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-shell[data-page="forum"] .forum-topic-comment .forum-author-avatar{
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.page-shell[data-page="forum"] .forum-topic-comment .forum-author{
  gap: 10px;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar{
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  flex: 0 0 52px !important;
}
@keyframes forumQuoteHighlight {
  0% {
    border-color: rgba(126, 199, 255, 0.78);
    box-shadow:
      0 0 0 2px rgba(126, 199, 255, 0.24),
      0 18px 52px rgba(3, 12, 24, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  100% {
    border-color: rgba(91, 126, 166, 0.28);
    box-shadow:
      0 16px 44px rgba(3, 12, 24, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}
@media  (max-width: 760px) {.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar{
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
    flex-basis: 44px !important;
  }}
.page-shell[data-page="forum"] .forum-author-meta-line{
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 9px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}
.page-shell[data-page="forum"] .forum-author-date{
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text{
  display: block !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author{
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line{
  min-width: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line{
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 9px !important;
}
@media  (max-width: 760px) {.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line{
    flex-wrap: wrap !important;
  }}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author{
  align-items: flex-start !important;
  gap: var(--forum-topic-avatar-gap, 10px) !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar{
  align-self: flex-start !important;
  display: block !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text{
  align-self: flex-start !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line{
  align-items: flex-start !important;
  line-height: 1.1 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-name,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-date{
  line-height: 1.1 !important;
}
.page-shell[data-page="forum"] .forum-topic-author-card{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 152px !important;
  padding: 14px 10px !important;
  text-align: center !important;
  border: 1px solid rgba(126, 199, 255, 0.13) !important;
  border-right: 0 !important;
  border-radius: 20px 0 0 20px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 199, 255, 0.105), transparent 58%),
    linear-gradient(180deg, rgba(11, 28, 49, 0.74), rgba(7, 19, 34, 0.74)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}
.page-shell[data-page="forum"] .forum-topic-reply-post .forum-topic-author-card{
  min-height: 126px !important;
}
.page-shell[data-page="forum"] .forum-topic-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-author-profile{
  color: inherit !important;
  text-decoration: none !important;
}
.page-shell[data-page="forum"] .forum-topic-author-avatar-link{
  display: block !important;
  line-height: 0 !important;
}
.page-shell[data-page="forum"] .forum-topic-author-avatar{
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(126, 199, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.16) !important;
}
.page-shell[data-page="forum"] .forum-topic-author-info{
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.page-shell[data-page="forum"] .forum-topic-author-name{
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
  min-height: 22px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(126, 199, 255, 0.12) !important;
  background: rgba(126, 199, 255, 0.075) !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
@media  (max-width: 760px) {.page-shell[data-page="forum"] .forum-topic-author-card{
    min-height: 0 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border-right: 1px solid rgba(126, 199, 255, 0.13) !important;
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
  }
.page-shell[data-page="forum"] .forum-topic-author-info{
    justify-items: start !important;
  }
.page-shell[data-page="forum"] .forum-topic-author-avatar{
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
  }}
.page-shell[data-page="forum"] .forum-topic-author-card{
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell[data-page="forum"] .forum-topic-author-info{
  gap: 4px !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role{
  display: block !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator{
  color: inherit !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus{
  color: #e6c84f !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper{
  color: #48d17a !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator{
  color: #ff5b66 !important;
}
.page-shell[data-page="forum"] .forum-topic-author-name{
  margin-top: 0 !important;
}
@media  (max-width: 760px) {.page-shell[data-page="forum"] .forum-topic-author-card{
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
.page-shell[data-page="forum"] .forum-topic-author-info{
    align-content: center !important;
  }
.page-shell[data-page="forum"] .forum-topic-author-role,
  .page-shell[data-page="forum"] .forum-topic-author-name{
    text-align: left !important;
  }}
.page-shell[data-page="forum"] .forum-topic-author-card{
  padding-top: var(--forum-topic-author-avatar-offset) !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.page-shell[data-page="forum"] .forum-topic-author-avatar{
  width: var(--forum-topic-author-avatar-size) !important;
  height: var(--forum-topic-author-avatar-size) !important;
  border-radius: 20px !important;
}
.page-shell[data-page="forum"] .forum-topic-author-role,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator{
  color: rgba(226, 237, 248, 0.82) !important;
  font-weight: 400 !important;
}
.page-shell[data-page="forum"] .forum-topic-author-name,
.page-shell[data-page="forum"] .forum-topic-author-name.profile-role-name,
.page-shell[data-page="forum"] .forum-topic-author-profile .forum-topic-author-name{
  font-weight: 400 !important;
}
@media  (max-width: 760px) {.page-shell[data-page="forum"] .forum-topic-author-card{
    padding: 10px 12px !important;
  }
.page-shell[data-page="forum"] .forum-topic-author-avatar{
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
  }}
.page-shell[data-page="forum"] .forum-topic-author-card{
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-author-card,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-message-panel,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-body,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.site-header-transition-host .fallback-auth-widget{
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
}
@keyframes client-pack-progress-slide { from { transform: translateX(-70%); } to { transform: translateX(190%); } }
@media  (max-width: 1100px) {.client-pack-action-form .auth-submit{ min-height: 44px; }}
@keyframes help-tab-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.client-download-admin-actions .auth-submit{
  width: 100%;
  min-height: 34px;
  margin: 0;
}
.server-admin-message-row .auth-submit{ min-width: 132px; }
@media  (max-width: 760px) {.server-admin-message-row .auth-submit{ width: 100%; }}
#site-header{position:absolute!important;width:0!important;height:0!important;overflow:hidden!important;pointer-events:none!important;opacity:0!important;}
#auth-overlay{opacity:1!important;overflow:visible!important;pointer-events:auto!important;}
#auth-overlay .auth-dropdown{width:min(360px,calc(100vw - 24px))!important;}

}}