/* /admin: the section menu beside every admin page, the overview tiles and the site status list */
.admin-cols { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* older admin pages are built as a centred narrow column; inside the frame they fill it */
.admin-main > .narrow { max-width: none; margin: 0; }
.admin-group { display: none; }
.admin-sub { margin: 2px 0 0; }
.admin-main .page-head h1 { margin: 0; }

/* needs attention */
.attn .list-item { align-items: center; }
.attn-icon {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--tc); color: var(--on-tc);
}
.attn-text { flex: 1; min-width: 0; }
.attn-text b { display: block; overflow-wrap: anywhere; }
.attn-done { margin: 0; padding: 8px 20px 18px; display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 700; }

/* number tiles */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
a.tile:hover { text-decoration: none; background: var(--card-alt); }
.tile-label { color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile-label .ms { font-size: 18px; }
.tile-num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-note { font-size: .78rem; color: var(--muted); }
.tile-note.up { color: var(--ok); font-weight: 700; }
.tile.hot { background: var(--tc); color: var(--on-tc); }
.tile.hot .tile-label, .tile.hot .tile-note { color: var(--on-tc); }
a.tile.hot:hover { background: var(--tc); filter: brightness(.97); }
.section-label { margin: 6px 4px -2px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* site status */
.checks { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 6px; }
.check {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--card-alt); color: var(--text);
}
.check:first-child { border-top: 0; }
a.check:hover { text-decoration: none; background: var(--card-alt); }
.check-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-dot .ms { font-size: 18px; }
.check.ok .check-dot { background: var(--pc); color: var(--on-pc); }
.check.warn .check-dot { background: var(--tc); color: var(--on-tc); }
.check.info .check-dot { background: var(--card-alt); color: var(--muted); }
.check-text { flex: 1; min-width: 0; }
.check-state { font-size: .82rem; color: var(--muted); font-weight: 600; text-align: right; }
.check.warn .check-state { color: var(--pink); }

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .admin-cols { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
  .admin-side { position: sticky; top: 64px; }
  .admin-main { gap: 16px; }
  .admin-group { display: block; padding: 12px 16px 4px; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .row2.admin-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

/* role chip beside the overview title, the team list */
.admin-role { vertical-align: middle; margin-left: 8px; background: var(--sc); color: var(--on-sc); border-color: transparent; font-size: .8rem; }
.team-row { flex-wrap: wrap; }
.team-who { flex: 1; min-width: 12rem; }
.team-who b { overflow-wrap: anywhere; }
.team-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.team-form select { width: auto; }
