/* POP Monitor — estilo NOC.
   Layout: menu lateral fixo + área de conteúdo; no celular o menu vira barra inferior.
   Cores de estado (ok/warn/crit/off) são reservadas para status: nunca usadas como decoração. */

@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-2: #0d1218;
  --surface: #121921;
  --surface-2: #18212b;
  --surface-3: #1f2a36;
  --line: #212c38;
  --line-2: #2c3947;
  --fg: #e6edf3;
  --fg-2: #b4c0cc;
  --muted: #7d8b9a;
  --accent: #4cc3ff;
  --accent-2: #1aa3e8;
  --accent-ink: #03131d;
  --accent-soft: rgba(76, 195, 255, .12);
  --ok: #3ddc97;   --ok-soft: rgba(61, 220, 151, .12);
  --warn: #f6b93b; --warn-soft: rgba(246, 185, 59, .13);
  --crit: #ff5d5d; --crit-soft: rgba(255, 93, 93, .14);
  --off: #7b8794;  --off-soft: rgba(123, 135, 148, .16);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  --r: 10px;
  --f: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "PlexMono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f7;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #edf1f5;
  --line: #e0e5eb;
  --line-2: #cfd7e0;
  --fg: #0e1621;
  --fg-2: #354252;
  --muted: #5d6b7b;
  --accent: #0b84c6;
  --accent-2: #096fa8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 132, 198, .10);
  --ok: #0f9d63;   --ok-soft: rgba(15, 157, 99, .10);
  --warn: #b7791f; --warn-soft: rgba(183, 121, 31, .12);
  --crit: #d63031; --crit-soft: rgba(214, 48, 49, .10);
  --off: #6b7684;  --off-soft: rgba(107, 118, 132, .12);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
        background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
              background: var(--accent); color: var(--accent-ink); }
.brand-mark svg { width: 20px; height: 20px; }
.brand b { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small { display: block; font: 500 9.5px var(--mono); color: var(--muted); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--fg-2); font-weight: 500; }
.nav a:hover { background: var(--surface); color: var(--fg); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav .badge { margin-left: auto; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.nav-label { font: 600 10.5px var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
          background: var(--surface-3); color: var(--fg); font-weight: 600; font-size: 12.5px; }
.me-txt { min-width: 0; flex: 1; }
.me-txt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt span { font-size: 11.5px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 28px;
       background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: -.005em; }
.top .crumb { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.top .crumb a { color: var(--muted); display: flex; align-items: center; }
.top .crumb a:hover { color: var(--fg); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2.4s infinite; }
.live.stale i { background: var(--crit); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.content { padding: 24px 28px 64px; max-width: 1480px; width: 100%; }
.mobile-top { display: none; }

/* ------------------------------------------------------------ componentes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px;
       border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn.danger { color: var(--crit); }
.btn.danger:hover { border-color: var(--crit); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .55; cursor: default; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.seg button { border: 0; background: transparent; color: var(--fg-2); height: 28px; padding: 0 11px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel { padding: 18px 20px; }
.panel-h { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; flex-wrap: wrap; }
.panel-h h2 { font-size: 14.5px; margin: 0; font-weight: 600; }
.panel-h .sp { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-pops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
        font: 600 11.5px var(--f); letter-spacing: .04em; text-transform: uppercase; background: var(--off-soft); color: var(--off); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.crit i { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.badge { display: inline-flex; align-items: center; height: 20px; min-width: 20px; padding: 0 6px; justify-content: center; border-radius: 99px;
         font: 600 11px var(--mono); background: var(--surface-3); color: var(--fg-2); }
.badge.crit { background: var(--crit); color: #fff; }
.badge.warn { background: var(--warn); color: #1b1300; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px;
       background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); }
.role-admin { color: var(--accent); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; margin-bottom: 6px; color: var(--ok); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.stat .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.stat .v { font: 600 24px/1.1 var(--mono); }
.stat .l { font-size: 12.5px; color: var(--muted); }
.stat.ok .ic { background: var(--ok-soft); color: var(--ok); }
.stat.warn .ic { background: var(--warn-soft); color: var(--warn); }
.stat.crit .ic { background: var(--crit-soft); color: var(--crit); }
.stat.crit .v { color: var(--crit); }
.stat.zero .v { color: var(--muted); }

/* cartão de POP */
.pop { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; overflow: hidden; }
.pop:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pop.crit { border-color: color-mix(in srgb, var(--crit) 55%, var(--line)); }
.pop.crit::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--crit); animation: glow 2s infinite; }
@keyframes glow { 50% { opacity: .15; } }
.pop.offline { border-style: dashed; border-color: var(--line-2); }
.pop.offline .pop-main, .pop.offline .pop-row { opacity: .45; }
.pop-h { display: flex; align-items: center; gap: 10px; }
.pop-h h3 { margin: 0; font-size: 15.5px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big { font: 500 38px/1 var(--mono); letter-spacing: -.02em; }
.big small { font-size: 16px; color: var(--muted); margin-left: 2px; }
.big-l { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.lvl-warn { color: var(--warn); }
.lvl-crit { color: var(--crit); }
.spark { width: 130px; height: 44px; flex: none; }
.pop-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini .l { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.mini .v { font: 500 15px var(--mono); margin-top: 2px; }
.pop-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pop-foot .sp { flex: 1; }
.pop-alert { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.pop-alert.crit { background: var(--crit-soft); }
.pop-alert.warn { background: var(--warn-soft); }

/* lista de alertas */
.alist { display: flex; flex-direction: column; container-type: inline-size; }
.arow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
.arow .sev { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.arow .sev.crit { background: var(--crit-soft); color: var(--crit); }
.arow .sev.warn { background: var(--warn-soft); color: var(--warn); }
.arow .t1 { font-weight: 500; }
.arow .t1 b { font-weight: 600; margin-right: 6px; }
.arow .t2 { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.arow .acked { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.arow.is-acked .sev { opacity: .55; }

/* tabelas */
.tw { overflow-x: auto; margin: 0 -4px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font: 600 11px var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t td.act { text-align: right; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.crit { background: var(--crit); } .dot.warn { background: var(--warn); } .dot.ok { background: var(--ok); } .dot.off { background: var(--off); }

/* detalhe do POP */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; }
.tile .l { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile .v { font: 500 26px/1.2 var(--mono); margin-top: 6px; }
.tile .h { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chart { position: relative; height: 300px; }
.chart.sm { height: 210px; }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--fg-2); }
.field small { font-size: 12px; color: var(--muted); }
.in { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; width: 100%; }
.in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
            background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 13px; }
.chip input { accent-color: var(--accent); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.role { border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; cursor: pointer; background: var(--surface-2); }
.role input { position: absolute; opacity: 0; }
.role b { display: block; font-size: 13px; }
.role span { font-size: 11.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.role:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role:has(input:focus-visible) { outline: 2px solid var(--accent); }
.form-err { color: var(--crit); font-size: 13px; min-height: 18px; }
.limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.limit { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.limit h4 { margin: 0; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }

/* modal, toast */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 10, .6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 4px; }
.modal-h h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-b { padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13.5px; animation: up .2s; max-width: 380px; }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--crit); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* relatórios */
.rep-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rep-ctl input[type=date] { width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font: 500 21px var(--mono); margin-top: 3px; }
.kpi .s { font-size: 11.5px; color: var(--muted); }

/* modo TV: sem menus, letras maiores */
body.tv .side, body.tv .top, body.tv .mobile-top, body.tv .bnav { display: none !important; }
body.tv .shell { grid-template-columns: 1fr; }
body.tv .content { max-width: none; padding: 20px; }
body.tv .big { font-size: 52px; }
body.tv .grid-pops { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.tv-exit { position: fixed; top: 12px; right: 12px; z-index: 30; opacity: .3; }
.tv-exit:hover { opacity: 1; }

/* celular */
.bnav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 12px 16px; }
  .top .live span { display: none; }
  .content { padding: 16px 16px 92px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
  .grid-pops { grid-template-columns: 1fr; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg-2); border-top: 1px solid var(--line);
          padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 11px; border-radius: 8px; position: relative; }
  .bnav a.on { color: var(--accent); }
  .bnav .badge { position: absolute; top: 0; left: 55%; height: 17px; min-width: 17px; font-size: 10px; }
  .roles { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .chart { height: 240px; }
  .hide-m { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* impressão (relatórios) */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f6f8fa; --fg: #000; --muted: #555; --line: #ddd; }
  .side, .top, .bnav, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .pop-section { break-before: page; }
}
.btn.primary.danger-fill { background: var(--crit); border-color: var(--crit); color: #fff; }
#view:focus, #view:focus-visible { outline: none; }
@container (max-width: 520px) {
  .arow { grid-template-columns: 28px minmax(0, 1fr); align-items: start; row-gap: 8px; }
  .arow > :last-child { grid-column: 2; }
  .arow > :last-child:empty { display: none; }
}
