/* The station-console look of the central login (login.NetWorkXXIII.de), so News reads as part of the same
   family. Loaded last, after https://NetWorkXXIII.de/site.css (header, footer, tokens), app.css and, on the
   front page, status.css. Panels are the elements with class "console"; everything else is restyled in place.
   Served from status/ so the static status page can use it too. */

:root { --line-hi: #3a3a42; }

/* Backdrop: scanlines, a red glow at the top, a faint 48 px grid in the steel accent. */
body {
  min-height: 100vh; min-height: 100dvh;  /* so the backdrop reaches the bottom of short pages */
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(1400px 560px at 50% 0, rgba(205, 33, 39, .10) 0%, transparent 70%),
    linear-gradient(rgba(159, 176, 196, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(159, 176, 196, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}
main strong { color: #fff; font-weight: 600; }

/* ---------- console panels ---------- */
.console {
  position: relative; width: calc(100% - 32px); max-width: 1148px; margin: 20px auto 36px;
  padding: 30px 32px 28px;
  background: var(--panel-grad); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
}
.console.form-page, .console.narrow-article { max-width: 860px; }
.console.narrow { max-width: 600px; margin-top: clamp(28px, 7vh, 72px); }
/* the red signal bar with two small gaps, and offset corner brackets */
.console::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 70%, transparent 70% 72%, var(--brand) 72% 86%, transparent 86% 88%, var(--brand) 88%);
}
.console::after {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--line-hi), var(--line-hi)) left top / 14px 1px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) left top / 1px 14px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) right bottom / 1px 14px no-repeat;
}

/* ---------- type ---------- */
.eyebrow { letter-spacing: .2em; }
.eyebrow::before { content: "▮ "; content: "▮ " / ""; color: var(--brand); }
.page-head h1, .console h1 { color: #fff; }
.console .section-title { border: 0; padding: 0; margin: 0 0 14px; font-size: 26px; letter-spacing: .01em; color: #fff; }
.console .section-head { border: 0; margin: 0 0 18px; }
.console .section-head .section-title { margin: 0; }
/* section headings inside a panel: small, uppercase, white */
.console .block-title, .console section .section-title {
  font: 600 15px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border: 0; padding: 0; margin: 0 0 10px;
}
/* sections within a panel are divided by a line, as on the account page */
.console > .block, .console > .two-up, .console > .two-col { border-top: 1px solid var(--line); padding-top: 22px; margin: 26px 0 0; }
.console > .stats { margin-bottom: 0; }
.console .two-up > .block { margin-bottom: 18px; }

/* ---------- inset boxes: tables, tiles, header lists ---------- */
.table-scroll, .stat, .counters div, .snippet, .headers, .letters a { background: rgba(0, 0, 0, .25); border-color: var(--line); }
table.data thead th { background: transparent; letter-spacing: .14em; }
.stat-label, .counters dt, .headers dt { letter-spacing: .14em; }
.stat-value, .counters dd { color: #fff; }
.headers { gap: 0; padding: 0; }
.headers div { padding: 10px 14px; border-top: 1px solid var(--line); }
.headers div:first-child { border-top: 0; }
.headers dd { color: #fff; }

/* status labels: small uppercase pills */
.pill { font-size: 11px; letter-spacing: .14em; padding: 2px 7px; border-radius: 0; }
/* The server state ("On air" etc.) takes the main site's pills, where .on is the red ON AIR lamp. Peer links
   in the outgoing table keep plain, static colours: green connected, amber sleeping, red down. */
#out-rows .pill { border: 1px solid transparent; box-shadow: none; animation: none; }
#out-rows .pill.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
#out-rows .pill.standby { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
#out-rows .pill.lost { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }

/* ---------- buttons (the header keeps the main site's) ---------- */
main .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px;
  font: 700 13px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: transparent; border: 1px solid var(--line-hi); border-radius: 0;
  transition: background .15s, border-color .15s, color .15s;
}
main .btn:hover { border-color: var(--accent); color: #fff; background: rgba(159, 176, 196, .06); text-decoration: none; }
main .btn.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
main .btn.primary:hover { background: #b9c7d7; border-color: #b9c7d7; color: var(--accent-ink); }
main .btn.primary::after { content: "\a0\a0▸"; content: "\a0\a0▸" / ""; }
.snippet .btn { min-height: 36px; padding: 6px 10px; font-size: 11px; }

/* ---------- inputs ---------- */
.field label, .group-search label { font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .group-search input {
  min-height: 46px; padding: 11px 12px; color: #fff; background: #070708;
  border: 1px solid var(--line); border-radius: 0; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .6);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover, .group-search input:hover { border-color: var(--line-hi); }
.field input:focus, .field textarea:focus, .group-search input:focus,
.field input:focus-visible, .field textarea:focus-visible, .group-search input:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(159, 176, 196, .18);
}
.field [aria-invalid="true"] { border-color: var(--down); }

/* ---------- notices: a bordered box with a glyph ---------- */
.notice, .form-error, .field-error, .stale-note { position: relative; padding: 11px 14px 11px 40px; border: 1px solid; font-size: 15px; }
.form-error, .field-error, #load-error { color: #ffd9da; background: rgba(229, 72, 77, .09); border-color: rgba(229, 72, 77, .45); }
.notice, .stale-note { color: #f6e3b8; background: rgba(224, 176, 74, .07); border-color: rgba(224, 176, 74, .4); }
.notice::before, .form-error::before, .field-error::before, .stale-note::before {
  position: absolute; left: 14px; top: 11px; font: 700 14px/1.55 var(--mono);
  content: "!"; content: "!" / "Problem:"; color: var(--warn);
}
.notice::before, .stale-note::before { content: "!" / "Note:"; }
.form-error::before, .field-error::before, #load-error::before { color: var(--down); }
.stale-note { width: calc(100% - 32px); max-width: 1148px; margin: 16px auto 0; }

@media (max-width: 520px) {
  .console, .stale-note { width: calc(100% - 20px); }
  .console { padding: 24px 18px 20px; }
  .console::after { display: none; }
  .console .section-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  main .btn, .field input, .field textarea, .group-search input { transition: none; }
}
@media (forced-colors: active) {
  .console::before, .console::after, .eyebrow::before { display: none; }
  main .btn { border: 1px solid ButtonText; }
}
