/* Единое окно пользователя Proxyma — используется на всех страницах */
#pm-account { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; }
#pm-account.open { display: flex; }
#pm-account .pm-backdrop { position: absolute; inset: 0; background: rgba(6,3,12,.6);  }
#pm-account .pm-window { position: relative; width: min(980px, calc(100vw - 40px)); height: min(760px, calc(100vh - 70px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #0f0a1a;
  border: 1px solid rgba(177,75,255,.5); box-shadow: 0 40px 120px rgba(0,0,0,.65); transition: height .22s ease; }
#pm-account.collapsed .pm-window { height: 56px; }
#pm-account .pm-head { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px;
  background: linear-gradient(180deg, rgba(26,14,46,.98), rgba(15,10,26,.98));
  border-bottom: 1px solid rgba(177,75,255,.28); }
#pm-account .pm-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
#pm-account .pm-tab { border: 0; cursor: pointer; font: 700 12.5px/1 "Segoe UI", system-ui, sans-serif;
  color: #cfc4e8; background: transparent; padding: 9px 13px; border-radius: 999px; }
#pm-account .pm-tab:hover { background: rgba(255,255,255,.07); color: #fff; }
#pm-account .pm-tab.on { background: #b6ff3d; color: #101a06; }
#pm-account .pm-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* круглый тумблер темы */
#pm-account .pm-theme { position: relative; width: 46px; height: 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(177,75,255,.5); background: rgba(177,75,255,.18); display: inline-flex; align-items: center; }
#pm-account .pm-theme i { position: absolute; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #f2ecff; transition: transform .18s ease, background .18s ease; }
#pm-account .pm-theme.dark { background: rgba(56,242,255,.2); border-color: rgba(56,242,255,.5); }
#pm-account .pm-theme.dark i { transform: translateX(20px); background: #38f2ff; }
#pm-account.radio .pm-theme { display: none; }
#pm-account .pm-ico { width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(177,75,255,.4);
  background: rgba(177,75,255,.12); color: #ded3f7; display: grid; place-items: center; cursor: pointer; }
#pm-account .pm-ico:hover { background: rgba(177,75,255,.26); color: #fff; }
#pm-account .pm-body { flex: 1; background: #f6f7f9; }
#pm-account .pm-body.dark { background: #0b0714; }
#pm-account iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- светлая тема самого окна ---- */
#pm-account.theme-light .pm-window { background: #ffffff; border-color: #e3e6ec; }
#pm-account.theme-light .pm-head { background: #f7f8fa; border-bottom: 1px solid #e6e8ec; }
#pm-account.theme-light .pm-tab { color: #4a5568; }
#pm-account.theme-light .pm-tab:hover { background: rgba(0,0,0,.05); color: #1a202c; }
#pm-account.theme-light .pm-tab.on { background: #26303d; color: #ffffff; }
#pm-account.theme-light .pm-ico { border-color: #dfe3ea; background: #fff; color: #2d3748; }
#pm-account.theme-light .pm-ico:hover { background: #eef1f5; color: #1a202c; }
#pm-account.theme-light .pm-body { background: #ffffff; }
#pm-account.theme-light .pm-theme { border-color: #cfd6e0; background: #eef1f5; }
#pm-account.theme-light .pm-theme i { background: #26303d; }
#pm-account.theme-light .pm-theme.dark { background: #26303d; }
#pm-account.theme-light .pm-theme.dark i { background: #b6ff3d; }
/* ---- свёрнутое окно не блокирует и не блюрит страницу ---- */
#pm-account.collapsed { pointer-events: none; }
#pm-account.collapsed .pm-backdrop { background: transparent; backdrop-filter: none; pointer-events: none; }
#pm-account.collapsed .pm-window { pointer-events: auto; }

#pm-account.theme-light .pm-body, #pm-account.theme-light .pm-body iframe { background: #ffffff; }
#pm-account.theme-dark .pm-body, #pm-account.theme-dark .pm-body iframe { background: #0b0714; }
#pm-account .pm-body iframe { background: #ffffff; }

/* фон окна под содержимым: без чёрных полос в светлой теме */
#pm-account .pm-body { background: #ffffff; }
#pm-account.theme-light .pm-body { background: #ffffff; }
#pm-account.theme-light .pm-body iframe { background: #ffffff; }
#pm-account.theme-dark .pm-body { background: #0b0714; }
#pm-account.theme-dark .pm-body iframe { background: #0b0714; }

#pm-account .pm-theme-btn { width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(177,75,255,.45); background: rgba(177,75,255,.14); color: #ded3f7;
  display: grid; place-items: center; }
#pm-account .pm-theme-btn:hover { background: rgba(177,75,255,.28); color: #fff; }
#pm-account .pm-theme-btn .material-icons { font-size: 18px; }
#pm-account.theme-light .pm-theme-btn { border-color: #dfe3ea; background: #fff; color: #2d3748; }
#pm-account.theme-light .pm-theme-btn:hover { background: #eef1f5; }
