/* Закрываем содержимое, сохраняя DOM, выделение и незаписанные поля. */
html[data-web-access-locked] body > :not(#web-access-dialog),
html[data-web-access-locked] body > :not(#web-access-dialog) * { visibility: hidden !important; pointer-events: none !important; }
html[data-web-access-locked] { background: #f5f6ef; }
html[data-web-access-locked] body { overflow: hidden; }
.web-access-dialog { width: min(540px, calc(100% - 32px)); padding: 32px; border-radius: 25px; }
.web-access-dialog::backdrop { background: #263b3059; backdrop-filter: blur(6px); }
html[data-web-access-locked] .web-access-dialog { max-width: 440px; margin: auto; box-shadow: 0 20px 90px #344d3212; }
html[data-web-access-locked] .web-access-dialog::backdrop { background: #f5f6ef; backdrop-filter: none; }
.web-access-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.web-access-heading > div { min-width: 0; }
.web-access-heading .eyebrow { margin: 0 0 6px; font-size: 9px; letter-spacing: 1.4px; }
.web-access-heading h2 { font-size: 25px; font-weight: 580; letter-spacing: -.7px; }
.web-access-mark { display: grid; place-items: center; flex: 0 0 47px; width: 47px; height: 53px; border-radius: 16px 16px 21px 21px; background: #e9efdf; color: #42664a; }
.web-access-mark svg { width: 26px; height: 26px; }
.web-access-close { margin-left: auto; align-self: flex-start; flex-shrink: 0; min-width: 40px; padding: 5px; font-size: 24px; background: transparent; color: var(--muted); }
.web-access-intro { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.web-access-dialog form > label { display: block; margin: 17px 0 8px; font-size: 13px; font-weight: 550; }
.web-access-dialog input { font-size: 16px; min-height: 49px; }
.web-password { position: relative; }
.web-password input { padding-right: 88px; }
.web-password-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; min-height: 40px; padding: 6px 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 450; }
.web-access-error { margin: 12px 0; color: #9a483d; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.web-access-error:empty { display: none; }
.web-access-dialog form > button[type="submit"] { min-height: 49px; margin-top: 24px; justify-content: space-between; padding: 12px 18px; }
.web-access-footnote { margin: 23px 0 0; text-align: center; font-size: 12px; line-height: 1.7; color: #7a8672; }
.web-account { display: flex; align-items: center; gap: 12px; padding: 17px; border-radius: 16px; background: #eef3e7; }
.web-account-avatar { display: grid; place-items: center; flex: 0 0 34px; color: #557148; }
.web-account-avatar svg { width: 26px; height: 26px; }
.web-account > div { flex: 1; min-width: 0; }
.web-account strong { display: block; overflow-wrap: anywhere; font-weight: 600; font-size: 15px; }
.web-account > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.web-access-section { margin: 25px 0 0; }
.web-access-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.web-access-section-head .plain { font-size: 12px; padding: 6px; min-height: 40px; }
.web-access-section h3 { font-size: 16px; }
.web-sessions { list-style: none; padding: 0; margin: 10px 0 17px; }
.web-session { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.web-session > div { flex: 1; min-width: 0; }
.web-session strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.web-session > div > span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.web-session-end { padding: 8px; font-size: 12px; flex-shrink: 0; }
.web-session-ended { padding: 8px; color: #8a987d; }
.web-access-empty { padding: 12px 0; color: var(--muted); font-size: 13px; }
.web-past-sessions { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.web-confirm { background: #edf1e6; padding: 16px; border-radius: 13px; margin-top: 12px; }
.web-confirm p { font-size: 13px; margin-bottom: 12px; }
.web-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; }
.web-change-password { border-top: 1px solid var(--line); padding-top: 22px; }
.web-change-password > summary { font-size: 14px; font-weight: 550; cursor: pointer; }
.web-logout { margin-top: 18px; }
.web-access-source { margin-bottom: 22px; }
.web-access-source h2 { display: flex; align-items: center; gap: 10px; }
.web-access-source h2 svg { width: 23px; height: 23px; color: #6d865a; }
@media (max-width: 520px) {
  .web-access-dialog { padding: 26px 22px; border-radius: 23px; max-height: calc(100dvh - 30px); }
  .web-access-heading { gap: 11px; }
  .web-access-heading h2 { font-size: 23px; }
  .web-access-mark { flex-basis: 42px; width: 42px; height: 48px; }
  .web-account { flex-wrap: wrap; padding: 14px; }
  .web-account .pill { font-size: 10px; }
  .web-access-source .source-top { gap: 10px; flex-wrap: wrap; }
}
