/* «Сайты → Уведомления» (web/admin-site-push.js, -compose.js, -stats.js): the switch's line, the tabs, the messages
   with their figures, the editor with the looks on the phones, the figures of the offer. */
.spush-mode { display: grid; gap: 4px; margin-bottom: 14px; }
.spush-mode p { margin: 0; }
.spush-mode .pill { margin-right: 6px; }
.spush-mode .pill.ok, .spush-campaign .pill.ok { background: rgb(90 196 143 / .12); color: var(--ok); }
.spush-mode .pill.warn, .spush-campaign .pill.warn { background: rgb(228 174 79 / .12); color: var(--warn); }
.spush-campaign .pill.bad { background: rgb(242 122 111 / .12); color: var(--danger); }
.spush-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.spush-body { display: grid; gap: 12px; }
.spush-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.spush-head h2 { margin: 0; }
.spush-note-line { margin: 0; padding: 10px 12px; border-radius: var(--radius-md); background: rgb(228 174 79 / .12); color: var(--warn); font-size: 14px; }
.spush-campaign { display: grid; gap: 8px; }
.spush-campaign p { margin: 0; overflow-wrap: anywhere; }
.spush-campaign-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.spush-campaign-head h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.spush-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.spush-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; margin: 0; }
.spush-figures dt { font-size: 12px; color: var(--muted); }
.spush-figures dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; font-size: 18px; }
.spush-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-weight: 400; }
.spush-check input { flex: 0 0 auto; margin-top: 3px; }
.spush-sites { display: grid; gap: 2px; max-height: 260px; overflow: auto; padding: 4px 0; }
.spush-target, .spush-test-sites { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; margin: 0 0 14px; min-width: 0; }
.spush-settings fieldset { min-width: 0; }
.spush-settings > fieldset:first-of-type { border: 0; padding: 0; margin: 0 0 14px; }
.spush-mode-option { padding: 8px 0; }
.spush-howto ol, .spush-howto ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.spush-howto h3 { margin: 16px 0 0; font-size: 15px; }
.spush-change { font-size: 18px; font-variant-numeric: tabular-nums; }
.spush-list { margin: 6px 0 12px; padding-left: 20px; }
.spush-again { display: grid; gap: 4px; margin: 10px 0; padding: 10px 12px; border: 1px solid rgb(228 174 79 / .4); border-radius: var(--radius-md); }
.spush-again p { margin: 0; }
.spush-body .sr-only, .spush-subs .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The editor: the fields and, beside them on a computer (under them on a phone), the looks. */
#dialog:has(form[data-form="spush-edit"]) { width: min(980px, calc(100vw - 24px)); }
.spush-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.spush-fields h3, .spush-preview h3 { margin: 0 0 8px; font-size: 15px; }
.spush-fields textarea { width: 100%; resize: vertical; }
.spush-en { margin: 12px 0; }
.spush-en summary { cursor: pointer; font-weight: 600; }
.spush-long { color: var(--warn); }
.spush-preview { position: sticky; top: 0; display: grid; gap: 10px; }
.spush-device-name { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.spush-note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f4f4f6; color: #15151a; font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.spush-note strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.spush-note p { margin: 2px 0 0; color: #3b3b44; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.spush-note-top { display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: 12px; color: #55555f; }
.spush-note-main { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.spush-note-main > div { min-width: 0; }
.spush-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.spush-letter { display: grid; place-items: center; background: #2b2b2f; color: #fff; font-weight: 700; font-size: 18px; }
.spush-badge { font-size: 9px; color: #55555f; }
.spush-android .spush-note { display: block; border-radius: 18px; }
.spush-android .spush-note-top { justify-content: flex-start; }
.spush-ios .spush-note { border-radius: 20px; background: rgb(245 245 247 / .92); }
.spush-ios .spush-note > div { flex: 1 1 auto; min-width: 0; }
.spush-ios .spush-note p { -webkit-line-clamp: 4; line-clamp: 4; }
.spush-desktop .spush-note { display: block; border-radius: 8px; background: #2b2b2f; color: #f3f3f6; }
.spush-desktop .spush-note p, .spush-desktop .spush-note-top, .spush-desktop .muted { color: #c4c4cc; }
.spush-desktop .spush-note-main { justify-content: flex-start; }

/* «Статистика»: the filters in one row, the tiles, the tables each under its heading (not inside its frame). */
.spush-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.spush-filter { display: grid; gap: 6px; flex: 0 1 220px; min-width: 0; }
.spush-filter-site { flex-basis: 320px; }
.spush-filter label { margin: 0; }
.spush-filter select { width: 100%; }
.spush-filters .form-error:empty { display: none; }
.spush-block { display: grid; gap: 12px; }
.spush-block h2 { margin: 8px 0 0; }
.spush-block > .field-hint { margin: 0; }
.spush-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-grid); }
.spush-stats small { font-size: 13px; font-weight: 500; }
.spush-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-grid); align-items: start; }
.spush-table-block { min-width: 0; }
.spush-table-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.spush-table-block .table-wrap { margin-top: 0; }
.spush-table { width: 100%; font-variant-numeric: tabular-nums; }
/* The figures' columns: on the right, their heads too; a head wraps rather than push the table wider than the page. */
.spush-grid thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.spush-grid th:not(:first-child), .spush-grid td:not(:first-child) { text-align: right; }
.spush-grid td { white-space: nowrap; }
/* A step's name wraps (a row's name, not a column's head: no head's band); its figure and share stay on the right. */
.spush-steps th { background: none; color: var(--text-2); font-weight: 400; text-align: left; white-space: normal; padding: 10px 12px; }
.spush-steps td { white-space: nowrap; text-align: right; width: 1%; padding: 10px 12px; }
.spush-steps td.muted { font-size: 13px; }
.spush-steps tr:last-child th { border-bottom: 0; }

@media (max-width: 760px) {
  .spush-compose { grid-template-columns: minmax(0, 1fr); }
  .spush-preview { position: static; }
}
/* A phone: the steps stay a table (a name and its figure in a row), not a card per row as the other tables. */
@media (max-width: 540px) {
  .table-wrap.spush-steps-wrap { border: 1px solid var(--line); }
  .table-wrap .spush-steps { display: table; }
  .table-wrap .spush-steps tbody { display: table-row-group; }
  .table-wrap .spush-steps tr { display: table-row; margin: 0; padding: 0; border: 0; background: none; }
  .table-wrap .spush-steps th, .table-wrap .spush-steps td { display: table-cell; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .table-wrap .spush-steps tr:last-child th, .table-wrap .spush-steps tr:last-child td { border-bottom: 0; }
  .table-wrap .spush-steps td::before { content: none; }
  .table-wrap .spush-steps td:empty { display: table-cell; }
  .table-wrap .spush-steps td.muted { white-space: normal; min-width: 72px; }
}
