[data-reading],.reading-tools button{cursor:pointer;font:600 17px/1.4 Arial,sans-serif;color:inherit;background:transparent;border:1px solid currentColor;border-radius:8px;padding:9px 14px;min-height:44px}
#nav594484080 [data-reading]{color:white;margin:10px 0}
.reading-tools{text-align:center;position:relative;z-index:10}
.reading-tools div:not([hidden]){display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:12px auto}
html:not([data-reading-mode]) .reading-switch:not(:focus):not(.reading-static){position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%)}
.reading-switch:focus,.reading-static{background:#fff;color:#000;margin:8px}
@layer reading {
  html[data-reading-mode]{--paper:white;--ink:black;color-scheme:light}
  html[data-reading-mode=dark]{--paper:black;--ink:white;color-scheme:dark}
  html[data-reading-mode],html[data-reading-mode] body,
  html[data-reading-mode] body :where(div,section,main,aside,article,header,footer,nav,dialog,form,button,input,textarea,select,option,summary,details,table,th,td,ul,li,ol){
    background:var(--paper)!important;border-color:var(--ink)!important;box-shadow:none!important
  }
  html[data-reading-mode] body,html[data-reading-mode] body *{
    color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;text-shadow:none!important;
    font-family:Arial,sans-serif!important;letter-spacing:normal!important;animation:none!important;transition:none!important;
    scroll-behavior:auto!important;overflow-wrap:anywhere!important
  }
  html[data-reading-mode] :is(p,a,li,span,strong,b,em,small,button,summary,label,input,textarea,select,td,th,div,blockquote,figcaption){
    font-size:var(--reading-size)!important;line-height:1.55!important;white-space:normal!important
  }
  html[data-reading-mode] :is(h1,h2,h3,[role=heading]),html[data-reading-mode] :is(h1,h2,h3) *{
    font-size:calc(var(--reading-size)*1.35)!important;line-height:1.3!important
  }
  html[data-reading-mode] :is(a,button,input,textarea,select,summary){opacity:1!important;outline-offset:3px}
  html[data-reading-mode] a{text-decoration:underline!important}
  html[data-reading-mode] :is(button,input,textarea,select){border:2px solid currentColor!important;min-height:44px;height:auto!important}
  html[data-reading-mode] :focus-visible{outline:4px double var(--ink)!important}
  html[data-reading-mode] .reading-tools{padding:12px;border-bottom:2px solid}
  html[data-reading-mode] .reading-tools div button[aria-pressed=true]{background:var(--ink)!important;color:var(--paper)!important;-webkit-text-fill-color:var(--paper)!important}
  html[data-reading-mode] :is(.cm-dots,.t396__carrier,.t396__filter,.tn-elem[data-elem-type=shape]:not(:has(a)),.t396__elem[data-elem-type=image]:not(:has(a,img[alt]:not([alt=""])))){display:none!important}
  html[data-reading-mode] :is(.t396,.t396__artboard,.t396__elem,.tn-group,.tn-atom,.tn-molecule,.tn-atom__scale-wrapper){
    position:relative!important;inset:auto!important;transform:none!important;zoom:1!important;
    width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;
    margin:0!important;padding:4px!important;overflow:visible!important;order:var(--reading-order,0);opacity:1!important;mask:none!important;-webkit-mask:none!important
  }
  html[data-reading-mode] .t396__artboard{display:flex!important;flex-direction:column;max-width:75ch!important;margin:16px auto!important}
  html[data-reading-mode] :is(.cm-screen,.cm-grid,.show-grid,.show-feature,.cm-footer-pages,.cm-bottom){display:flex!important;flex-direction:column!important;gap:16px!important}
  html[data-reading-mode] :is(.cm,.cm-lead,.cm-bottom,.cm-docs,.cm-shortcuts){max-width:100%!important;box-sizing:border-box;flex-wrap:wrap;position:static!important}
  html[data-reading-mode] :is(.tn-atom,a,span,strong,em,h1,h2,h3){background:none!important;filter:none!important}
  html[data-reading-mode] img{max-width:100%!important;object-fit:contain}
  html[data-reading-mode] a:has(>img[alt="Codemania"])::before{content:"Codemania"}
  html[data-reading-mode] a:has(>img[alt="Codemania"]) img{display:none!important}
  html[data-no-images] img{display:none!important}
  html[data-no-images] a[data-enlarge]::before{content:"Открыть изображение"}
  html[data-no-images] a[data-enlarge][aria-label]::before{content:attr(aria-label)}
  html[data-no-images] .cm-view img{display:block!important}
}
html:not([data-reading-mode]) #allrecords .cm-bottom .cm-reading-link {
  position:absolute;right:0;top:calc(var(--menu-space) - 10px);
  display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;
  max-width:38%;min-height:44px;padding:0;border:0;border-radius:0;
  font:400 var(--menu-font)/1.4 CM,sans-serif;text-align:right;
  color:#adb0c1;opacity:1;text-decoration:underline;text-underline-offset:.22em;
}
html:not([data-reading-mode]) #allrecords .cm-bottom .cm-reading-link:is(:hover,:focus-visible){color:white}
.cm-reading-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html:not([data-reading-mode]) .reading-tools details{display:none}
.reading-tools summary{cursor:pointer}
.reading-tools .cm-footer-pages{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
@layer reading {
  html[data-reading-mode] :is(p,h1,h2,h3,small,summary,blockquote,figure,fieldset,label){background:var(--paper)!important}
  html[data-reading-mode] :is(#rec4138270301,#rec4140330801,[data-reading-hidden]){display:none!important}
  html[data-reading-mode] :is(.copy-section,.copy-section *,.cm-bottom){translate:none!important;scale:none!important;rotate:none!important}
  html[data-reading-mode] :is(.copy-section,.cm-bottom){height:auto!important;min-height:0!important;width:auto!important;margin:16px auto!important;overflow:visible!important;zoom:1!important}
  html[data-reading-mode] .t886{position:static!important;width:auto!important;max-width:65ch!important;margin:auto!important}
  html[data-reading-mode] .t886 a{border:2px solid!important;padding:8px!important}
  html[data-reading-mode] :is(input,textarea)::placeholder{color:var(--ink)!important;opacity:.8}
  html[data-reading-mode] .reading-tools .cm-footer-pages{display:flex!important;position:static!important}
}
@media(max-width:959px){
  html:not([data-reading-mode]) #allrecords .cm-bottom .cm-reading-link{top:calc(var(--menu-space) + 175px)}
}
@media(max-width:479px){
  html:not([data-reading-mode]) #allrecords .cm-bottom .cm-reading-link{top:calc(var(--menu-space) + 100px)}
}
