/* Переключатель находится в верхней правой части белого контейнера, над баннером. */
.home-layout-toolbar {display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px;font-size:.78rem;color:#536577}
.home-layout-toolbar #home-layout-select {height:24px;min-height:24px;max-width:150px;padding:0 7px;border:1px solid #cbd5e1;border-radius:6px;font-size:.78rem;background:#f7f9fb;color:#26394d}
.home-panels>.home-panel[hidden] {display:none}

/* Одна и та же разметка и один плеер: меняется только расположение блоков. */
@media(min-width:1200px) {
    html.home-layout-wide .home-page>.container {width:calc(100% - 48px);max-width:1200px}
    html.home-layout-wide .home-panels {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-items:start;gap:20px}
    html.home-layout-wide .home-panel {display:flex;flex-direction:column;min-width:0;min-height:0;height:var(--wide-panel-height,auto)}
    html.home-layout-wide #section-stream {order:0}
    html.home-layout-wide #section-gallery {order:1}
    html.home-layout-wide #section-interactive {order:2;height:var(--wide-lower-height,auto)}
    html.home-layout-wide #section-activity {order:3;height:var(--wide-lower-height,auto)}
    html.home-layout-wide .home-panel>.section-heading {flex:0 0 auto;margin:0 0 8px}
    html.home-layout-wide .home-panel>.video-section,
    html.home-layout-wide .home-panel>.action-section,
    html.home-layout-wide .home-panel>.gallery-section {flex:1;min-height:0;overflow:auto;box-sizing:border-box}
    html.home-layout-wide .home-panel>.video-section {flex:1 0 auto}
    /* Галерея занимает рамку, сохраняя сетку 3×3 и прокрутку следующих фотографий. */
    html.home-layout-wide #section-gallery>.gallery-section {display:grid;grid-template-rows:auto minmax(96px,1fr) auto}
    html.home-layout-wide #section-gallery .gallery-grid {height:100%;min-height:0;max-height:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc((100% - 16px)/3)}
    html.home-layout-wide #section-gallery .gallery-grid:has(>.gallery-empty),
    html.home-layout-wide #section-gallery .gallery-grid:empty {grid-auto-rows:auto;align-content:start}
    html.home-layout-wide .activity-section {display:flex;flex-direction:column}
    html.home-layout-wide .activity-toolbar {flex:0 0 auto}
    html.home-layout-wide .activity-chart-scroll {flex:1 1 0;min-height:100px}
    html.home-layout-wide #activity-chart {height:100%}
    html.home-layout-wide #section-thread .message-input {max-width:none}
    html.home-layout-wide #section-thread>.section-heading {margin-top:24px}
}

/* Подсказка открывает содержимое каждой рамки. */
.home-page .home-panel .disclaimer {margin:0 0 10px;flex:0 0 auto}
.home-page .stream-toolbar {display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;border-bottom:1px solid #dce5ec;margin-bottom:10px;padding-bottom:0}
.home-page .stream-toolbar .camera-tabs {margin:0;border-bottom:0;flex:0 0 auto}
.home-page .camera-tabs .camera-tab {height:28px;min-height:28px;padding:0 10px;font-size:.8rem;line-height:1.2}
.home-page .camera-new {color:#c62626;font-weight:500}
.home-page .viewer-counters {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 4px;margin:0 0 0 auto;padding:4px 0;font-size:.72rem;line-height:1.4;color:#4a5a6a}
.home-page .viewer-counters>span {white-space:nowrap}
.home-page .viewer-counters span[id] {font-variant-numeric:tabular-nums}
