/* ─── Login ─── */
    .login-screen {
      position: fixed; inset: 0; z-index: 1000;
      display: flex; align-items: center; justify-content: center;
      background: radial-gradient(ellipse at 30% 20%, rgba(79,156,249,.12), transparent 60%),
                  radial-gradient(ellipse at 70% 80%, rgba(167,139,250,.1), transparent 60%),
                  var(--bg);
    }
    .login-card {
      width: 380px; padding: 36px 32px;
      background: var(--bg2); border-radius: 20px;
      border: 1px solid rgba(255,255,255,.09);
      box-shadow: 0 24px 80px rgba(0,0,0,.5);
      display: flex; flex-direction: column; align-items: center; gap: 0;
      text-align: center;
    }
    .login-logo-wrap { margin-bottom: 12px; }
    .login-app-name  { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
    .login-tagline   { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }

    /* VK OAuth button */
    .login-vk-btn {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      width: 100%; padding: 13px 20px; border-radius: 12px; border: none;
      background: #0077FF; color: #fff; font-size: 14.5px; font-weight: 600;
      cursor: pointer; font-family: inherit;
      transition: background .15s, transform .12s, box-shadow .15s;
      box-shadow: 0 4px 18px rgba(0,119,255,.4);
      margin-bottom: 14px;
    }
    .login-vk-btn:hover  { background: #0066E0; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,119,255,.5); }
    .login-vk-btn:active { transform: translateY(0); }
    .login-vk-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

    .login-error { font-size: 12px; color: var(--red); min-height: 18px; margin-bottom: 4px; }

    /* Community selector overlay */
    .comm-selector-overlay {
      position: fixed; inset: 0; z-index: 1001;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
    }
    .comm-selector-card {
      width: 440px; max-height: 80vh;
      background: var(--bg2); border-radius: 20px;
      border: 1px solid rgba(255,255,255,.09);
      box-shadow: 0 24px 80px rgba(0,0,0,.6);
      display: flex; flex-direction: column; overflow: hidden;
    }
    .comm-selector-title {
      font-size: 15px; font-weight: 700; padding: 20px 22px 14px;
      border-bottom: 1px solid var(--border);
    }
    .comm-selector-list {
      flex: 1; overflow-y: auto; padding: 10px;
    }
    .comm-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; border-radius: 12px; cursor: pointer;
      transition: background .12s;
    }
    .comm-item:hover { background: rgba(255,255,255,.06); }
    .comm-item-ava {
      width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
      background: var(--bg4); overflow: hidden;
    }
    .comm-item-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .comm-item-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
    .comm-item-sub  { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
    .comm-selector-footer {
      padding: 12px 16px; border-top: 1px solid var(--border);
      display: flex; justify-content: flex-end;
    }
    .comm-selector-logout {
      display: flex; align-items: center; gap: 5px; padding: 7px 14px;
      border-radius: 9px; border: 1px solid var(--border); background: none;
      color: var(--muted); font-size: 12.5px; cursor: pointer;
      transition: color .12s, background .12s; font-family: inherit;
    }
    .comm-selector-logout:hover { background: rgba(255,255,255,.05); color: var(--text); }
