/* ── Admin Push page, in the poster face ──
 * @file admin-push.css
 * @author Jouni Miikki
 * SPDX-License-Identifier: MIT
 * @description The operator's Push page (design canvas "AIMEAT Admin Push"): the status rows and
 *   the numeral strip, the three actions for this browser, the trigger list read against
 *   AIMEAT_PUSH_NOTIFY_TYPES, the message templates with their fields and placeholders, and the
 *   subscription list. The three steps that only appear while the VAPID keys are missing live here
 *   too. The frame, the sections, the metric rows, the strip and the doors come from admin.css and
 *   organism.css; only what this page adds is here. Every value is a theme.css token.
 * @version-history
 *   v1.0.0 — 2026-09-12 — Initial. The page had no rules of its own: it was inline styles, three
 *     .adm-card blocks and hardcoded hex (#818cf8, rgba(79,70,229,…), #f59e0b).
 */

.adm-pu-lead { margin: 0 0 14px; font-size: .95rem; line-height: 1.6; color: var(--text); max-width: 92ch; }
.adm-pu-note { margin: 12px 0 0; font-size: .8rem; line-height: 1.55; color: var(--text-dim); max-width: 90ch; }
.adm-pu .adm-mrow--last { border-bottom: 0; }
/* An env var name and a value fit here; the shared 10rem column clips them. */
.adm-pu .adm-mrow { grid-template-columns: minmax(0, 1fr) auto minmax(13rem, auto); }
.adm-pu .adm-mval { overflow-wrap: anywhere; }
.adm-pu-code { display: inline-block; font-family: var(--font-mono); font-size: .75rem; background: var(--code-bg); padding: 1px 6px; overflow-wrap: anywhere; }

/* 02: one loud action and two words. */
.adm-pu-acts { display: flex; gap: 22px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.adm-pu-acts .og-door { font-size: .82rem; }
.adm-pu-said { margin: 10px 0 0; font-size: .82rem; font-weight: 600; }
.adm-pu-said.is-ok { color: var(--success-fg); }
.adm-pu-said.is-bad { color: var(--danger-fg); }
.adm-pu-waiting { font-size: .82rem; color: var(--text-dim); }

/* The three steps, shown only while the keys are missing. */
.adm-pu-steps { display: flex; flex-direction: column; gap: 14px; max-width: 78ch; }
.adm-pu-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.adm-pu-step > b { font-family: var(--font-mono); font-size: .8rem; font-weight: 400; color: var(--accent); padding-top: 2px; }
.adm-pu-step p { margin: 0 0 6px; font-size: .9rem; line-height: 1.5; }
.adm-pu-cmd { font-family: var(--font-mono); font-size: .8rem; border: 2px solid var(--text); background: var(--bg-surface); padding: 8px 11px; overflow-wrap: anywhere; line-height: 1.7; }

/* 04: the language chips and one template per row. */
.adm-pu-chips { display: flex; gap: 6px; }
.adm-pu-chip { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; padding: 3px 9px; border: 2px solid var(--border); border-radius: 0; background: none; color: var(--text-dim); cursor: pointer; }
.adm-pu-chip:hover { border-color: var(--text); color: var(--text); }
.adm-pu-chip.on { border-color: var(--text); background: var(--sun); color: var(--on-sun); }
.adm-pu-tpl { border-bottom: 1px solid var(--border); padding: 12px 0; }
.adm-pu-tpl:last-of-type { border-bottom: 0; }
.adm-pu-tplh { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 18px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.adm-pu-tplh b { font-weight: 700; font-size: .95rem; color: var(--text); }
.adm-pu-tplh .adm-why { margin-top: 3px; }
.adm-pu-tplh .adm-pu-caret { font-family: var(--font-mono); font-size: .78rem; color: var(--text); }
.adm-pu-open { margin-top: 14px; border: 2px solid var(--text); background: var(--card-bg); padding: 14px 16px; }
.adm-pu-fld { margin-bottom: 14px; }
.adm-pu-fldl { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.adm .adm-pu-fld input[type='text'] { width: 100%; box-sizing: border-box; border: 0; border-bottom: 3px solid var(--text); border-radius: 0; background: none; padding: 3px 2px 5px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); outline: none; box-shadow: none; }
.adm .adm-pu-fld input[type='text']:focus { border-bottom-color: var(--accent); }
.adm .adm-pu-fld textarea { width: 100%; box-sizing: border-box; border: 2px solid var(--text); border-radius: 0; background: var(--bg); padding: 9px 11px; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.5; color: var(--text); resize: vertical; min-height: 3.2em; outline: none; box-shadow: none; }
.adm .adm-pu-fld textarea:focus { border-color: var(--accent); box-shadow: none; }
.adm-pu-ph { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.adm-pu-ph em { font-style: normal; font-size: .78rem; color: var(--text-dim); }
.adm-pu-ph span { font-family: var(--font-mono); font-size: .72rem; border: 2px solid var(--border); padding: 1px 7px; color: var(--text-dim); }

/* 05: one subscription per row, a block on a narrow screen. */
.adm-pu-shead,
.adm-pu-srow { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(240px, 2.4fr) 148px 148px; gap: 0 18px; align-items: baseline; }
.adm-pu-shead { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: .69rem; text-transform: uppercase; letter-spacing: .3px; }
.adm-pu-srow { padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: .82rem; color: var(--text-dim); }
.adm-pu-srow b { font-weight: 700; color: var(--text); font-size: .88rem; }
.adm-pu-ep { font-family: var(--font-mono); font-size: .72rem; overflow-wrap: anywhere; }
.adm-pu-when { font-family: var(--font-mono); font-size: .74rem; }
.adm-pu-when.is-stale { color: var(--accent); }
.adm-pu-empty { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-dim); }

@media (max-width: 900px) {
  /* The metric row's value drops under its name, and the subscription row becomes a block. */
  .adm-pu .adm-mrow { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-pu .adm-mval { grid-column: 1 / -1; text-align: left; margin-top: 3px; }
  .adm-pu-shead { display: none; }
  .adm-pu-srow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 12px 0; }
  .adm-pu-srow > span:first-child,
  .adm-pu-srow > .adm-pu-ep { flex-basis: 100%; }
  .adm-pu-srow > [data-l]::before { content: attr(data-l) ': '; font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
  .adm-pu-tplh { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-pu-tplh .adm-pu-caret { display: none; }
}
