.channel-content {
  display: grid;
  grid-template-columns: var(--split-width,250px) minmax(0,1fr);
  gap: 32px;
  padding: 24px 0;
  min-width: 0;
  color: var(--text-1);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation {
  min-width: 0;
  align-self: start;
  border-right: 1px solid var(--border-1);
  padding-right: 20px;
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 80px);
  overflow: auto;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation>summary {
  display: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: var(--fs-14);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation ul ul {
  /* Вложенность — только отступом, без вертикальных линий уровней (владелец, 29.09). */
  padding-left: 16px;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation li {
  margin: 3px 0;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation details>summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation details>summary::-webkit-details-marker {
  display: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation details>summary::after {
  /* Шеврон разворачивания — справа, у края строки (владелец, 29.09). */
  content: '›';
  font-size: var(--fs-20);
  line-height: 1;
  width: 12px;
  flex: 0 0 12px;
  text-align: center;
  color: var(--text-3);
  transform: rotate(0deg);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation details[open]>summary::after {
  transform: rotate(90deg);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px 8px;
  color: var(--text-1);
  font-size: var(--fs-14);
  line-height: var(--lh-text);
  text-decoration: none;
  border-radius: var(--radius-s);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation summary>a {
  flex: 1;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation a:hover {
  background: var(--bg-3);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation a[aria-current=page] {
  color: var(--text-1);
  background: var(--bg-4);
  font-weight: var(--fw-bold);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__leaf>a {
  color: var(--text-3);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__quiet {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 8px;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-s);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__quiet:hover {
  background: var(--bg-3);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__quiet:disabled {
  opacity: .5;
  cursor: wait;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__main {
  min-width: 0;
}
.channel-content [data-content-search] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.channel-content [data-content-search] input {
  flex: 1;
  width: 0;
}
.channel-content input, .channel-content select {
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-1);
  font: inherit;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-1);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item:first-child {
  padding-top: 0;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item h3 {
  font-size: var(--fs-18);
  line-height: var(--lh-tight);
  margin: 0 0 8px;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item h3 a {
  color: inherit;
  text-decoration: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item p {
  color: var(--text-3);
  font-size: var(--fs-14);
  line-height: var(--lh-text);
  margin: 6px 0;
  overflow-wrap: anywhere;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__item p.channel-content__summary {
  color: var(--text-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: break-word;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__empty {
  color: var(--text-3);
  font-size: var(--fs-14);
  line-height: var(--lh-text);
}
.channel-content [role=status]:empty {
  display: none;
}
.channel-content .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content--navigation {
  display: block;
  padding: 0;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content--navigation .channel-content__main {
  display: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content--navigation .channel-content__navigation {
  position: static;
  border: 0;
  padding: 0;
  max-height: none;
}
@media(max-width:900px){
  .channel-content {
    display: block;
    padding-top: 16px;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation {
    position: static;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-m);
    padding: 0;
    margin-bottom: 20px;
    max-height: none;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: var(--fw-bold);
    list-style: none;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation>summary::-webkit-details-marker {
    display: none;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__navigation-body {
    padding: 4px 12px 12px;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content__heading {
    margin-top: 6px;
  }
  .channel-content input, .channel-content select {
    font-size: var(--fs-16);
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .channel-content--navigation .channel-content__navigation {
    border: 1px solid var(--border-1);
  }}
@media(prefers-reduced-motion:reduce){
  .channel-content * {
    scroll-behavior: auto;
  }}
.reader-layout.reader-layout--channel-tree {
  grid-template-columns: var(--split-width,250px) minmax(0,1fr);
  gap: 0;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .reader-layout--channel-tree>.split-layout__divider {
  margin-left: -4px;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .reader-channel-navigation {
  padding: var(--page-top,24px) 16px 0;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .reader-layout--channel-tree>.reader-paper {
  min-width: 0;
}
@media(max-width:900px){
  .reader-layout.reader-layout--channel-tree {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .reader-channel-navigation {
    position: static;
    padding: 12px 0 0;
    max-height: none;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .reader-channel-navigation .channel-content {
    padding: 0;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .reader-channel-navigation .channel-content__navigation {
    margin-bottom: 12px;
  }}
.channel-content:not(.channel-content--navigation):not(.structure-open) {
  grid-template-columns: minmax(0,1fr);
}
.reader-layout.reader-layout--channel-tree:not(.structure-open) {
  grid-template-columns: minmax(0,1fr);
}
.reader-layout:not(.structure-open)>.reader-channel-navigation, .channel-content:not(.channel-content--navigation):not(.structure-open)>[data-content-menu] {
  display: none;
}
.reader-layout:not(.structure-open)>.split-layout__divider, .channel-content:not(.structure-open)>.split-layout__divider {
  display: none;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .reader-structure-tools {
  margin-bottom: 12px;
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .content-structure-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--text-1);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .content-structure-toggle[aria-expanded=true] {
  background: var(--bg-3);
}
.content-structure-dialog {
  box-sizing: border-box;
  margin: 0 auto 0 0;
  width: min(360px,calc(100vw - 32px));
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 16px;
  padding-top: max(16px,env(safe-area-inset-top));
  padding-bottom: max(16px,env(safe-area-inset-bottom));
  border: 0;
  border-right: 1px solid var(--border-1);
  background: var(--surface);
  color: var(--text-1);
  overflow: auto;
}
.content-structure-dialog::backdrop {
  background: var(--overlay);
}
:is(.channel-content, .content-structure-dialog, .reader-layout) .content-structure-close {
  display: flex;
  margin-left: auto;
  font-size: var(--fs-24);
  width: 36px;
  height: 36px;
}
.content-structure-dialog .channel-content__navigation[data-content-menu] {
  display: block;
  position: static;
  border: 0;
  max-height: none;
  margin: 0;
  padding: 0;
}
.content-structure-dialog [data-content-menu]>summary {
  display: none;
}
.content-structure-dialog .channel-content__navigation-body {
  padding: 12px 0;
}
@media(max-width:900px){
  .reader-layout.reader-layout--channel-tree>.reader-channel-navigation {
    display: contents;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .reader-channel-navigation>.channel-content--navigation {
    display: contents;
  }
  :is(.channel-content, .content-structure-dialog, .reader-layout) .reader-structure-tools {
    margin-bottom: 8px;
  }
}
.content-structure-dialog {
  overscroll-behavior: contain;
}
body:has(.content-structure-dialog[open]) {
  overflow: hidden;
}
.content-structure-dialog>.content-structure-close {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}
/* Иконка раздела первого уровня (SVG из Студии, очищен сервером): цвет текста, 18px слева от названия. */
:is(.channel-content, .channel-content__dialog, .content-structure-dialog, .reader-layout) .channel-content__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  flex: none;
}
:is(.channel-content, .channel-content__dialog, .content-structure-dialog, .reader-layout) .channel-content__icon svg {
  width: 100%;
  height: 100%;
}
