/* /segodnya: scoped to the overview; native server rows remain usable. */
#today-app { min-width: 0; }
#today-app .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#today-app [hidden] { display: none !important; }
#today-app .today-toolbar, #today-app .today-controls, #today-app .today-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#today-app .today-toolbar { padding: 18px 20px; border-bottom: 1px solid var(--line); }
#today-app .today-controls { margin-left: auto; }
#today-app input[type="search"], #today-app select { min-height: 42px; max-width: 100%; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); color: var(--text); padding: 9px 12px; font: inherit; }
#today-search { flex: 1 1 280px; width: 100%; }
#today-app label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); }
#today-app input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
#today-app button { font: inherit; cursor: pointer; }
#today-app button:not(.icon-btn) { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 8px; color: var(--soft); background: var(--panel); }
#today-app button:hover { border-color: var(--accent); color: var(--accent); }
#today-app button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--bg); }
#today-app :is(button,a,input,select):focus-visible, #today-app tr:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#today-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#today-app .today-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
#today-app .today-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
#today-app .today-table th:first-child, #today-body td:first-child { width: 108px; }
#today-app .today-table th:nth-child(4), #today-body td:nth-child(4) { width: 210px; }
#today-body td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#today-body small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
#today-body time { font-variant-numeric: tabular-nums; color: var(--soft); font-size: 13px; }
#today-body .today-place { color: var(--text); font-weight: 500; }
#today-body button[data-toggle-event], #today-body button[data-toggle-series] { margin-top: 8px; padding: 4px 8px; min-height: 32px; font-size: 12px; color: var(--accent); }
#today-body .today-series { background: var(--bg); }
#today-body .today-member td:first-child { border-left: 3px solid var(--accent); }
#today-body .today-detail td { background: var(--bg); padding: 16px 20px; }
#today-body .today-detail dl { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0 0 12px; }
#today-body dt { color: var(--muted); font-size: 12px; }
#today-body dd { margin: 3px 0 0; color: var(--text); }
#today-body .today-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
#today-body .today-selected { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--panel); }
#today-empty { padding: 32px 20px; text-align: center; color: var(--muted); }
#today-more { display: block; margin: 20px auto; }
#today-map-wrap { border-bottom: 1px solid var(--line); background: var(--bg); }
#today-app #map { height: 440px; min-height: 280px; width: 100%; }
#today-app .today-map-fallback { padding: 32px 20px; margin: 0; color: var(--muted); }
#today-app .today-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#today-app .today-overview-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #today-app .today-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #today-app .today-controls { margin-left: 0; }
  #today-app .today-toolbar { padding: 14px; }
  #today-app .today-table th:nth-child(4), #today-body td:nth-child(4) { width: 175px; }
}
@media (max-width: 560px) {
  #today-app .today-table thead { display: none; }
  #today-body, #today-app .today-table { display: block; width: 100%; }
  #today-body > tr { display: grid; grid-template-columns: 64px minmax(0,1fr); padding: 14px 12px; gap: 8px 12px; border-top: 1px solid var(--line); }
  #today-body > tr > td { border: 0; padding: 0; width: auto !important; min-width: 0; }
  #today-body > tr > td:nth-child(2) { grid-column: 2; grid-row: 1; }
  #today-body > tr > td:nth-child(4), #today-body > tr > td:nth-child(5) { grid-column: 2; }
  #today-body > .today-detail { display: block; }
  #today-body > .today-detail > td { display: block; }
  #today-body .today-member td:first-child { border-left: 0; }
  #today-body .today-member { border-left: 3px solid var(--accent); }
  #today-app #map { height: 340px; }
  #today-app .today-results-bar { padding: 12px; }
  #today-app .today-controls { width: 100%; gap: 8px; }
  #today-app select { padding-left: 8px; padding-right: 8px; }
}

#today-app .today-title { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 14px 0 20px; }
#today-app .today-title p { margin: 9px 0 0; }
#today-app .today-snapshot { margin-top: 6px; white-space: nowrap; }
#today-app .today-overview .today-summary { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); min-width: 0; overflow-wrap: anywhere; }
#today-app .today-summary strong { font-size: 18px; font-weight: 600; }
#today-app .today-summary:hover { border-color: var(--accent); }
#today-app .today-controls { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 20px 0 12px; padding: 0; background: none; border: 0; }
#today-app .today-tools, #today-app .today-selects, #today-app .today-result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
#today-app .today-search-label { flex: 1 1 300px; min-width: 0; }
#today-app .today-near { display: inline-flex; align-items: center; min-height: 42px; }
#today-app .today-selects { margin-left: auto; }
#today-app .today-result-bar { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
#today-app .today-columns { display: grid; gap: 18px; min-width: 0; }
#today-app .today-feed { min-width: 0; }
#today-app .today-coverage { margin-top: 18px; }
#today-app .today-table th:nth-child(5), #today-body td.today-depth { width: 90px; }
@media (max-width: 760px) { #today-app .today-selects { margin-left: 0; } #today-app .today-title { flex-direction: column; gap: 8px; } #today-app .today-snapshot { margin-top: 0; white-space: normal; } }
@media (max-width: 560px) {
  #today-app .today-overview { grid-template-columns: 1fr; }
  #today-app .today-summary { gap: 8px; padding: 16px; }
  #today-app .today-controls { padding: 0; }
  #today-app .today-search-label { flex-basis: 100%; }
  #today-app .today-columns { display: grid; }
}

#today-app .today-table th:nth-child(6), #today-body td.today-source { width: 120px; font-size: 12px; }
@media (max-width: 760px) and (min-width: 561px) { #today-app .today-table th:nth-child(6), #today-body td.today-source { width: 95px; } }
@media (max-width: 560px) { #today-body > tr > td.today-source { display: block; grid-column: 2; } #today-body td.today-source::before { content: "Источник: "; color: var(--muted); } }

#today-app .today-table th.today-marks-heading, #today-body td.today-marks { width: 90px; }
#today-body a.today-mark { display: inline-flex; box-sizing: border-box; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 2px 2px 0; padding: 0; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); font-size: 18px; line-height: 1; color: var(--accent); text-decoration: none; vertical-align: middle; transition: background .15s, border-color .15s; }
#today-body a.today-mark svg { display: block; flex: none; }
#today-body a.today-mark:hover, #today-body a.today-mark:focus-visible { background: var(--bg); border-color: var(--accent); text-decoration: none; }
@media (max-width: 560px) { #today-body > tr > td.today-marks { display: flex; grid-column: 1; grid-row: 2 / span 3; flex-wrap: wrap; align-content: start; gap: 2px; } }
