/* ═══════════ churches.css — модуль «Церкви»: карта, список, регионы, молодёжки, карточка ═══════════ */
.ch { min-width: 0; }
.ch a:hover { text-decoration: underline; }

/* ───────── Сводка: лист чертежа ───────── */
.ch-stats {
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px 12px; margin-bottom: 18px;
  background: var(--paper-2)
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(36,56,200,.07) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(36,56,200,.07) 23px 24px);
}
.ch-stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ch-stat { --sc: var(--blue-dk); padding: 2px 0 2px 16px; position: relative; }
.ch-stat::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.ch-stat b { color: var(--sc); }
.ch-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed color-mix(in srgb, var(--blue) 35%, transparent); font-size: 13px; color: var(--ink-2); max-width: 980px; }
@media (max-width: 900px) { .ch-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } .ch-stat b { font-size: 24px; } }

/* ───────── Фильтры ───────── */
.ch-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ch-search { flex: 1 1 220px; max-width: 340px; }
.ch-search .search { width: 100%; min-width: 0; }
.ch-sel { max-width: 100%; min-width: 0; }
.ch-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font: 500 13px var(--font); cursor: pointer; white-space: nowrap;
}
.ch-toggle:hover { border-color: var(--ink); }
.ch-toggle.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ch-reset { margin-left: auto; }
@media (max-width: 640px) {
  .ch-search { flex-basis: 100%; max-width: none; }
  .ch-filters .ch-sel { flex: 1 1 calc(50% - 4px); }
  .ch-reset { margin-left: 0; }
}

/* ───────── Карта ───────── */
.ch-maptools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ch-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ch-switch input { width: 16px; height: 16px; accent-color: var(--blue); }
.ch-hint { background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); color: var(--blue-dk); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.ch-maplayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.ch-mapcol { min-width: 0; }
.ch-map { height: max(460px, calc(100vh - 400px)); border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); z-index: 1; }
.ch-map .leaflet-tile-pane { filter: sepia(.3) saturate(.6) contrast(.96) brightness(1.02); }
.ch-map.editing { outline: 2px dashed var(--blue); outline-offset: 3px; }
.ch-map .leaflet-control-attribution { background: rgba(247,243,234,.85); font-size: 10px; }
.ch-map .leaflet-bar a { color: var(--ink); background: var(--card); }
.ch-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: max(460px, calc(100vh - 400px)); min-width: 0; }
.ch-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ch-side-head b { font-family: var(--display); font-size: 15px; font-weight: 600; }
.ch-side-list { overflow-y: auto; flex: 1; }
.ch-side-item { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; border-bottom: 1px solid var(--line-2); }
.ch-side-item::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--st, var(--line)); flex: none; }
.ch-side-item:last-child { border-bottom: none; }
.ch-side-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; background: none; border: none; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.ch-side-main:hover { background: var(--paper-2); text-decoration: none; }
.ch-side-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-side-sub { font-size: 12px; color: var(--muted); }
.ch-side-num { font-family: var(--display); font-size: 18px; color: var(--blue-dk); min-width: 28px; text-align: right; }
.ch-side-sep { padding: 10px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ch-side-empty { padding: 18px 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .ch-maplayout { grid-template-columns: 1fr; }
  .ch-map { height: 55vh; min-height: 320px; }
  .ch-side { max-height: 420px; }
}

/* Легенда */
.ch-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ch-leg-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ch-leg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px 3px 6px; font: 500 12px var(--font); color: var(--ink-2); cursor: pointer; }
.ch-leg:hover { border-color: var(--ink); }
.ch-leg.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dk); }
.ch-leg-n { color: var(--muted); font-weight: 600; }
.ch-leg-fill { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ch-leg-ring { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--muted); flex: none; display: inline-block; }
.ch-leg-ring.dashed { border-style: dashed; border-width: 2px; }
.ch-leg-line { display: inline-block; width: 22px; border-top: 2.2px dashed var(--blue-dk); flex: none; }
.ch-leg-notes { font-size: 12px; color: var(--muted); gap: 6px 16px; }
.ch-leg-notes > span { display: inline-flex; align-items: center; gap: 6px; }

/* Маркеры, попапы */
.ch-pin-wrap { background: none; border: none; }
.ch-pin { display: block; border-radius: 50%; border: 2.5px solid; box-sizing: border-box; opacity: .9; cursor: grab; box-shadow: 0 0 0 2px rgba(255,253,248,.8), 0 2px 6px rgba(0,0,0,.25); }
.ch-pin.approx { border-style: dashed; }
.ch-place { background: none; border: none; }
.ch-place-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ch-place-ic.small { width: 18px; height: 18px; border-radius: 4px; border-width: 1px; box-shadow: none; }
.ch-tip { font: 600 12px var(--font); color: var(--ink); border-radius: 6px; border-color: var(--line); }
.ch-popup .leaflet-popup-content-wrapper { background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); }
.ch-popup .leaflet-popup-tip { background: var(--paper-2); border: 1.5px solid var(--ink); }
.ch-popup .leaflet-popup-content { margin: 12px 14px; font: 13px/1.4 var(--font); color: var(--ink); }
.ch-pop { display: flex; flex-direction: column; gap: 6px; }
.ch-pop-region { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.ch-pop-name { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.2; }
.ch-pop-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.ch-pop-nums div { display: flex; flex-direction: column; }
.ch-pop-nums b { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--blue-dk); line-height: 1.05; }
.ch-pop-nums span { font-size: 11px; color: var(--muted); }
.ch-pop-line { font-size: 12px; }
.ch-pop-btn { align-self: flex-start; margin-top: 2px; }

/* ───────── Список ───────── */
.ch-listtools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ch-totals { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); align-items: baseline; }
.ch-totals > b { color: var(--ink); font-family: var(--display); font-size: 15px; font-weight: 600; }
.ch-totals span b { color: var(--blue-dk); }
.ch-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ch-table th { text-align: left; padding: 0; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); white-space: nowrap; }
.ch-table th.num { text-align: right; }
.ch-th { background: none; border: none; font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 6px; cursor: pointer; width: 100%; text-align: inherit; white-space: nowrap; }
.ch-th:hover, th.sorted .ch-th { color: var(--blue-dk); }
.ch-arrow { margin-left: 3px; }
.ch-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ch-table tbody tr td:first-child a::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st, transparent); margin-right: 8px; vertical-align: 1px; }
.ch-table tbody tr:hover { background: var(--paper-2); }
.ch-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-td-name { font-weight: 600; min-width: 150px; }
.ch-td-name .chip { margin-left: 6px; }
.ch-td-text { font-size: 13px; color: var(--ink-2); max-width: 170px; }
.ch-table tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); border-bottom: none; background: var(--paper-2); font-size: 13px; }
.ch-table tfoot td.num { font-family: var(--display); font-size: 15px; color: var(--blue-dk); font-weight: 600; }
.ch-reg { --rc: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.ch-reg::before { content: ''; width: 10px; height: 3px; border-radius: 2px; background: var(--rc); flex: none; }
.ch-numin { width: 58px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; text-align: right; background: #fff; font-variant-numeric: tabular-nums; }
.ch-numin:focus { border-color: var(--blue); outline: none; }
.ch-cards { display: none; flex-direction: column; gap: 8px; }
.ch-ccard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 10px 26px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.ch-ccard::before { content: ''; position: absolute; left: 11px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--st, var(--line)); }
.ch-ccard-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ch-ccard-name { font-weight: 700; color: var(--ink); font-size: 15px; min-width: 0; }
.ch-ccard-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; }
.ch-ccard-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line-2); padding-top: 6px; }
.ch-ccard-nums > div { display: flex; flex-direction: column; }
.ch-ccard-nums .num { font-family: var(--display); font-size: 19px; color: var(--blue-dk); line-height: 1.1; }
.ch-ccard-nums span { font-size: 11px; color: var(--muted); }
.ch-ccard-nums .ch-numin { width: 100%; font-family: var(--font); font-size: 15px; text-align: left; }
.ch-ccard-meta { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) {
  .ch-table-wrap { display: none; }
  .ch-cards { display: flex; }
}

/* ───────── Вступление на вкладках ───────── */
.ch-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.ch-intro p { margin: 0; color: var(--ink-2); max-width: 760px; font-size: 14px; }
@media (max-width: 640px) { .ch-intro { flex-direction: column; } }

/* ───────── Регионы ───────── */
.ch-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .ch-regions { grid-template-columns: 1fr; } }
.ch-region { --rc: var(--muted); background: var(--card); border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--line)); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ch-region-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ch-region-title h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.ch-region-lead { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ch-region-descr { font-size: 13px; color: var(--muted); margin: 0; }
.ch-region-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ch-region-stats .stat b { font-size: 24px; color: var(--rc); }
.ch-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--line-2); }
.ch-bar span { min-width: 4px; }
.ch-region-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ch-subtitle { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 600; margin: 4px 0 2px; }
.ch-shef { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ch-shef-hint p { margin: 4px 0; font-size: 13px; }
.ch-shef-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; flex-wrap: wrap; }
.ch-shef-row > span { min-width: 0; flex: 1 1 180px; }
.ch-shef-row.sugg { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.ch-region-list summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.ch-rrows { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-top: 4px; }
.ch-rrow { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 4px; border-bottom: 1px solid var(--line-2); }
.ch-rrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: none; }
.ch-rrow:last-child { border-bottom: none; }
.ch-rrow-name { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 500; display: flex; flex-direction: column; }
.ch-rrow-name small { font-weight: 400; }
.ch-rrow-n { font-family: var(--display); font-size: 16px; color: var(--blue-dk); white-space: nowrap; }
.ch-rrow-n small { font-family: var(--font); font-size: 12px; color: var(--muted); }
.ch-move { display: flex; flex-direction: column; gap: 6px; }
.ch-move-opt { --rc: var(--muted); display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 12px; font: 500 14px var(--font); cursor: pointer; color: var(--ink); }
.ch-move-opt:hover { border-color: var(--ink); }
.ch-move-opt.on { border-color: var(--blue); background: var(--blue-soft); }
.ch-swatch { width: 18px; height: 6px; border-radius: 3px; background: var(--rc); flex: none; }

/* ───────── Молодёжки ───────── */
.ch-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .ch-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-week { grid-template-columns: 1fr; } }
.ch-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ch-day.empty-day { background: var(--paper-2); }
.ch-day-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; }
.ch-day-head h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.ch-day-none { font-size: 13px; margin: 0; }
.ch-meet { --rc: var(--muted); display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: none; padding: 4px 4px 4px 2px; cursor: pointer; font: inherit; color: var(--ink); border-radius: 6px; }
.ch-meet::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); flex: none; margin-top: 7px; }
.ch-meet:hover { background: var(--paper-2); }
.ch-meet-time { font-family: var(--display); font-size: 17px; color: var(--blue-dk); min-width: 44px; line-height: 1.25; }
.ch-meet-main { display: flex; flex-direction: column; min-width: 0; }
.ch-meet-name { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ch-meet-where { font-size: 12px; color: var(--muted); }
.ch-li-btn { background: none; border: none; border-bottom: 1px solid var(--line-2); text-align: left; font: inherit; width: 100%; }
.ch-qhelp { font-size: 13px; margin-top: -4px; }
.ch-qlist { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ch-qrow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.ch-qrow:last-child { border-bottom: none; }
.ch-qname { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.ch-qname a { font-weight: 600; color: var(--ink); }
.ch-qfields { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 2 1 480px; min-width: 0; }
.ch-qfields .inline { padding: 6px 8px; font-size: 13px; min-width: 0; }
.ch-qplace { flex: 1 1 140px; }
.ch-qmore { margin-top: 10px; }
.ch-qmore summary { cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
@media (max-width: 640px) {
  .ch-qfields { flex-basis: 100%; }
  .ch-qfields select, .ch-qfields input[type=time] { flex: 1 1 calc(50% - 3px); }
  .ch-qplace { flex-basis: 100%; }
  .ch-qfields .btn { flex: 1 1 calc(50% - 3px); }
}
.ch-textout { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--card); font: 14px/1.5 var(--font); resize: vertical; }
.ch-formlink { flex: 1 1 100%; font-size: 13px; }

/* ───────── Карточка церкви ───────── */
.ch-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ch-back:hover { color: var(--ink); }
.ch-cardview .page-head { margin-bottom: 10px; }
.ch-headchips { margin-bottom: 16px; }
.ch-saved { font-size: 12px; color: var(--muted); transition: color .2s; }
.ch-saved.flash { color: var(--green); font-weight: 600; }
.ch-cardgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .ch-cardgrid { grid-template-columns: 1fr; } }
.ch-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ch-group { display: flex; flex-direction: column; gap: 8px; }
.ch-gtitle { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dk); padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.card h3.ch-gtitle { margin-bottom: 4px; }
.ch-group .field.ch-third { flex: 1 1 calc(33.33% - 8px); }
@media (max-width: 560px) { .ch-group .field.ch-third { flex: 1 1 calc(50% - 6px); } }
.ch-autostate { flex: 1 1 100%; font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.ch-small { font-size: 13px; margin: 0; }
.ch-tight { gap: 6px; }
.ch-person { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); }
a.ch-person:hover { border-color: var(--blue); text-decoration: none; }
.ch-person-name { font-weight: 600; margin-right: 2px; }
.ch-logform { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ch-logform-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-logform-row .inline { flex: 1 1 120px; min-width: 0; padding: 6px 8px; font-size: 13px; }
.ch-logtext { width: 100%; resize: vertical; font-size: 14px; }
.ch-logs { display: flex; flex-direction: column; gap: 8px; }
.ch-log { padding: 2px 0 2px 16px; position: relative; }
.ch-log::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lc); }
.ch-log-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ch-log-text { font-size: 14px; white-space: pre-wrap; color: var(--ink-2); }
.ch-neigh { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); }
.ch-neigh::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: none; }
.ch-neigh:hover { border-color: var(--blue); text-decoration: none; }
.ch-neigh-km { font-family: var(--display); font-size: 15px; color: var(--blue-dk); min-width: 54px; white-space: nowrap; }
.ch-neigh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-neigh .chip { flex: none; }
@media (max-width: 480px) { .ch-neigh .ch-state { display: none; } }

/* ───────── Таблица и группы ───────── */
.sh-selbar { display: none; }
.sh-selbar.on { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: sticky; top: 8px; z-index: 6; margin: 0 0 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--blue); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(18, 16, 12, .08); }
.sh-selbar select { max-width: 260px; }
.sh-scroll { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 150px); }
.sh-table { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 100%; }
.sh-table th { position: sticky; top: 0; z-index: 3; background: var(--paper-2); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sh-table thead tr:nth-child(2) th { top: 29px; }
.sh-table tr.sh-sec th { color: var(--ink); font-size: 11.5px; border-bottom: 1px solid var(--line-2); }
.sh-table th.num { text-align: right; }
.sh-table td { border-bottom: 1px solid var(--line-2); padding: 1px 3px; vertical-align: top; background: var(--card); }
.sh-table .sec-Молодёжь, .sh-table .sec-Дети { background: color-mix(in srgb, var(--paper-2) 45%, var(--card)); }
.sh-table th.sec-Молодёжь, .sh-table th.sec-Дети { background: color-mix(in srgb, var(--paper-2) 80%, #e6e0d2); }
.sh-table .sh-stick { position: sticky; z-index: 2; }
.sh-table th.sh-stick { z-index: 4; }
.sh-table .sh-chk { left: 0; width: 34px; min-width: 34px; text-align: center; }
.sh-table .sh-chk input { width: 16px; height: 16px; margin: 9px 0 0; cursor: pointer; }
.sh-table .sh-name { left: 34px; min-width: 170px; max-width: 220px; border-right: 1px solid var(--line); }
.sh-table td.sh-name { padding: 7px 8px 5px; }
.sh-table td.sh-name a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.sh-table td.sh-name a::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st, transparent); margin-right: 7px; vertical-align: 1px; }
.sh-table td.sh-name a:hover { color: var(--blue); }
.sh-table td.sh-name small { display: block; color: var(--muted); font-size: 11px; margin-left: 15px; }
.sh-table .sh-gsel { min-width: 140px; }
.sh-table tr.sh-row:hover td { background: var(--paper-2); }
.sh-table tr.sh-row.sel td { background: color-mix(in srgb, var(--blue) 8%, var(--card)); }
.sh-table .cell { width: 100%; border: 1px solid transparent; background: transparent; padding: 6px 5px; border-radius: 5px; font: inherit; color: var(--ink); resize: none; overflow: hidden; min-width: 60px; }
.sh-table .cell::placeholder { color: transparent; }
.sh-table .cell:hover { border-color: var(--line); }
.sh-table .cell:hover::placeholder, .sh-table .cell:focus::placeholder { color: var(--muted); }
.sh-table .cell:focus { border-color: var(--blue); background: #fff; outline: none; }
.sh-table .cell.num { text-align: right; width: 72px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sh-table .cell.num::-webkit-inner-spin-button { display: none; }
.sh-table select.cell { cursor: pointer; }
.sh-table tr.sh-ghead td { position: static; background: color-mix(in srgb, var(--gc) 9%, var(--card)); padding: 0; border-top: 10px solid var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--gc) 30%, var(--line)); }
.sh-table tbody:first-of-type tr.sh-ghead td { border-top: none; }
.sh-ghead-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; position: sticky; left: 0; max-width: min(100%, 92vw); }
.sh-gdot { width: 12px; height: 12px; border-radius: 50%; background: var(--gc); flex: none; }
.sh-gname { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.sh-gtot { font-size: 13px; color: var(--ink); }
.sh-gmeta { font-size: 13px; color: var(--muted); }
.sh-gmeta a { color: var(--blue); }
.sh-gdescr { padding: 0 10px 9px 36px; font-size: 13px; color: var(--muted); position: sticky; left: 0; max-width: 760px; }
.sh-gempty { padding: 12px 36px !important; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .sh-table .sh-name { min-width: 130px; max-width: 150px; }
  .sh-scroll { max-height: none; }
}
