body.auth-locked { margin: 0; background: #050608; font: 14px/1.5 Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
body.auth-locked * { box-sizing: border-box; }
.auth-entry .brand-mark path { fill: #edf1f7; }
:is(.home-dot-field, .auth-dot-field) {
  background: radial-gradient(
    ellipse var(--home-field-radius-x) var(--home-field-radius-y) at 50% var(--home-field-center-y),
    #202935, #181e27 42%, #0d1117 68%, #030405 90%, transparent
  );
}
.auth-locked > aside, .auth-locked > main { display: none; }
#auth-screen[hidden] { display: none; }
#auth-screen { width: 100%; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #121417; color: #eef0f4; }
#auth-screen > .auth-panel { color: #b7becb; font-size: 14px; }
#auth-screen.auth-entry { display: block; place-items: normal; padding: 0; background: #050608; color: #f3f4f6; color-scheme: dark; }
.auth-layout {
  position: relative; isolation: isolate; overflow: clip; display: grid; width: 100%;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); min-height: 100dvh;
}
.auth-dot-field {
  --home-field-center-y: 50%;
  --home-field-radius-x: 48%;
  --home-field-radius-y: 48%;
  position: absolute; z-index: -1; top: 50%; left: 50%; translate: -50% -50%;
  width: min(46vw, 1080px); height: calc(100% + clamp(180px, 32dvh, 500px)); pointer-events: none;
}
.auth-artwork {
  position: absolute; inset: 0; pointer-events: none;
  mask-image: linear-gradient(110deg, #000 44%, #000d 49%, #0006 56%, transparent 63%);
}
.auth-visual-image {
  position: absolute; inset: 0 auto 0 0; width: min(100%, calc(72% + 26dvh)); height: 100%; object-fit: cover; object-position: 45% var(--auth-subject-y, 50%);
}
.auth-visual-image:nth-child(2) { --auth-subject-y: 28%; }
.auth-visual-image:nth-child(3) { --auth-subject-y: 12%; }
.auth-visual-image:not(:first-child) { opacity: 0; }
.auth-artwork::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, #080c1280 79%, #070a0eeb 100%);
}
.auth-visual { position: relative; align-self: end; min-width: 0; }
.auth-caption {
  display: grid; justify-items: start; gap: 8px; max-width: min(100%, 700px);
  padding: clamp(24px, 5vw, 84px); color: #f5f6f9;
  text-shadow: 0 2px 20px #04080cdc;
}
.auth-caption strong { font-size: clamp(24px, 3.1vw, 54px); line-height: 1.15; font-weight: 560; }
.auth-caption span { color: #e2e6ed; font-size: clamp(13px, 1.1vw, 18px); line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .auth-artwork.is-ready .auth-visual-image:nth-child(2) { animation: auth-product-slide 24s ease-in-out infinite; }
  .auth-artwork.is-ready .auth-visual-image:nth-child(3) { animation: auth-world-slide 24s ease-in-out infinite; }
  .auth-artwork.is-ready[data-paused] .auth-visual-image { animation-play-state: paused; }
  @keyframes auth-product-slide {
    0%, 28%, 70%, 100% { opacity: 0; }
    33%, 69% { opacity: 1; }
  }
  @keyframes auth-world-slide {
    0%, 62%, 100% { opacity: 0; }
    67%, 95% { opacity: 1; }
  }
}

.auth-login { position: relative; display: grid; grid-template-columns: minmax(0, 410px); justify-content: center; align-items: center; padding: clamp(24px, 5vw, 84px); min-width: 0; }
.auth-entry .auth-panel { position: relative; width: min(100%, 410px); margin: 0; padding: 0; color: inherit; background: transparent; border: 0; box-shadow: none; }
.auth-entry .auth-brand {
  display: flex; align-items: center; gap: 8px; margin: 0 0 clamp(28px, 5vh, 50px);
  color: #f1f3f6; font-size: 20px; font-weight: 700; line-height: 1.2;
}
.auth-brand .brand-mark { width: 24px; height: 30px; flex: none; }
.auth-entry h1 { margin: 0; line-height: 1.22; font-size: clamp(28px, 3.1vw, 45px); font-weight: 580; }
.auth-entry .auth-description { margin: 12px 0 0; color: #a9b1bf; line-height: 1.55; }
.auth-entry form { display: grid; gap: 15px; margin: clamp(26px, 4.3vh, 45px) 0 0; }
.auth-entry label { display: grid; gap: 7px; color: #c9ced7; font-size: 13px; font-weight: 550; }
.auth-entry .auth-panel input {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 15px; font: inherit; font-size: 15px;
  background: #202328; color: #f3f4f6; border: 1px solid #30343d; border-radius: 10px;
}
.auth-entry input::placeholder { color: #929ba9; }
.auth-entry :is(input,button):focus-visible { outline: 2px solid #9dbdf4; outline-offset: 3px; }
.auth-entry .auth-panel form .primary {
  min-height: 50px; margin-top: 5px; padding: 10px 16px; border-radius: 10px;
  color: #151922; background: #e7edf7; border: 1px solid #e7edf7; font-size: 15px; font-weight: 650;
}
.auth-entry .auth-panel form .primary:hover:not(:disabled) { border-color: #fff; background: #fff; }
.auth-entry .auth-panel form .primary:disabled { opacity: .65; cursor: wait; }
.auth-entry .auth-panel [role=alert] { margin: 9px 0 0; min-height: 18px; color: #ffb1ab; line-height: 1.4; font-size: 13px; }
.auth-footer { border-top: 1px solid #2a2f37; margin-top: 15px; padding-top: 11px; display: grid; justify-items: center; }
.auth-entry .auth-footer button {
  min-height: 36px; padding: 6px 12px; margin: 0; border: 1px solid transparent; border-radius: 6px;
  color: #b7c2d4; background: transparent; font-size: 13px;
}
.auth-entry .auth-footer button:hover:not(:disabled) { color: #fff; background: #20252e; }

@media (max-width: 740px) {
  .auth-layout {
    --auth-art-height: clamp(150px, 27svh, 260px);
    grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--auth-art-height) 1fr;
  }
  .auth-dot-field { width: min(110vw, calc(100% + 80px)); }
  .auth-artwork { height: calc(var(--auth-art-height) + 24px); mask-image: linear-gradient(180deg, #000 64%, transparent 100%); }
  .auth-visual-image { width: 100%; object-position: center var(--auth-subject-y, 46%); }
  .auth-caption { padding: 12px 23px; }
  .auth-caption strong { font-size: clamp(18px, 4vw, 25px); }
  .auth-caption span { display: none; }
  .auth-login { padding: 27px 23px 32px; align-items: start; }
  .auth-entry .auth-brand { margin-bottom: 19px; font-size: 17px; }
  .auth-entry form { margin-top: 21px; }
  .auth-entry .auth-panel input { font-size: 16px; }
}
.account-control .avatar img, .personal-avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.personal-settings {
  width: min(calc(100% - 28px), 480px);
  max-height: min(calc(100dvh - 28px), 690px);
  overflow: auto;
  padding: clamp(17px,4vw,24px);
  border: 0;
  border-radius: 20px;
  color: var(--desktop-ink,#edf1f7);
  color-scheme: dark;
  background: var(--desktop-surface,#1b2028);
  box-shadow: 0 18px 65px #0006;
}
.personal-settings::backdrop { background: #0a10178f; }
.personal-settings [hidden] { display: none !important; }
.personal-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.personal-settings-heading h2 { margin: 0; font-size: 21px; font-weight: 650; }
.personal-settings-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: inherit;
  background: transparent;
}
.personal-settings-tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.personal-settings :is(.personal-settings-tabs button,.personal-avatar-actions button) {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: inherit;
  background: transparent;
  font-size: 13px;
}
.personal-settings :is(.personal-settings-close,.personal-settings-tabs button,.personal-avatar-actions button):hover:enabled {
  background: var(--desktop-hover,#2c3542);
}
.personal-settings .personal-settings-tabs button[aria-pressed=true] {
  color: var(--desktop-ink,#edf1f7);
  background: var(--desktop-selected,#354358);
}
.personal-settings form, .personal-settings [data-rename-verification] { display: grid; gap: 7px; }
.personal-avatar-row { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.personal-avatar-preview {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--desktop-accent-panel,#354358);
  font-size: 21px;
}
.personal-avatar-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.personal-settings label { margin-top: 4px; font-size: 13px; font-weight: 560; }
.personal-settings input:not([type=file],[type=range]) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: inherit;
  background: var(--desktop-inset,#151921);
  font: inherit;
  font-size: 14px;
}
.personal-settings input::placeholder, .personal-settings small { color: var(--desktop-muted,#aab3c0); }
.personal-settings small { font-size: 11px; }
.personal-settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.personal-settings-footer p { min-width: 0; margin: 0; color: var(--desktop-muted,#aab3c0); font-size: 12px; }
.personal-settings-footer p.is-error { color: #ffaaa3; }
.personal-settings-footer .primary { flex: none; white-space: nowrap; padding: 8px 14px; }
.avatar-crop-dialog { width: min(calc(100% - 28px), 540px); }
.avatar-crop-dialog::backdrop { background: #0a10175c; }
.avatar-crop-dialog p {
  margin: 0 0 12px;
  color: var(--desktop-muted,#aab3c0);
  font-size: 13px;
  line-height: 1.5;
}
.avatar-crop-dialog canvas {
  display: block;
  width: min(100%, 69dvh);
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
  background: var(--desktop-inset,#151921);
  cursor: grab;
  touch-action: none;
}
.avatar-crop-dialog canvas:active { cursor: grabbing; }
.avatar-crop-dialog canvas:focus-visible { outline: 2px solid #a4bce5; outline-offset: 2px; }
.avatar-crop-zoom, .avatar-crop-actions { display: flex; align-items: center; gap: 12px; }
.avatar-crop-dialog .avatar-crop-zoom { margin: 13px 0; }
.avatar-crop-zoom input { flex: 1; min-width: 0; accent-color: #a4bce5; cursor: pointer; }
.avatar-crop-actions { justify-content: flex-end; }
.avatar-crop-actions button { padding: 8px 14px; }

.members-card { margin-top: 20px; }
.members-list { display: grid; gap: 8px; margin: 16px 0; }
.member-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid #e0eaf7; border-radius: 9px; }

.header-right .cli-balance { flex: none; }
.header-right .cli-balance button { display: flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid #d7e8fb; border-radius: 999px; padding: 6px 9px; color: #315984; background: #f3f8ff; font-size: 11px; line-height: 1.1; }
.header-right .cli-balance strong { color: #0964cf; font-variant-numeric: tabular-nums; font-size: 12px; }
.header-right .cli-balance button:focus-visible { outline: 2px solid #0c7efa; outline-offset: 2px; }

