/* Task-based manager layout. Shared semantic colours remain in tokens.css. */
@layer pages  {

* {
  box-sizing:border-box}
body.mg-body {
  margin:0;
  background:var(--zs-color-bg);
  color:var(--zs-color-text);
  font:var(--zs-text-md)/var(--zs-leading) var(--zs-font-sans)}

.mg-body a {
  color:inherit;
  text-decoration:none}
.mg-body button,.mg-body input,.mg-body select,.mg-body textarea {
  font:inherit}
.mg-body svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0}
.mg-body .mg-sprite {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden}
.mg-body h1,.mg-body h2,.mg-body h3,.mg-body p {
  margin-top:0}
.mg-body p {
  margin-bottom:1em}
.mg-body h1 {
  font-size:var(--zs-text-title-wide);
  line-height:1.2;
  letter-spacing:-.9px;
  font-weight:650;
  margin-bottom:9px}
.mg-body h2 {
  font-size:var(--zs-text-lg);
  line-height:1.4;
  letter-spacing:-.3px;
  margin-bottom:6px}
.mg-body h3 {
  font-size:var(--zs-text-md);
  line-height:var(--zs-leading)}
.mg-body code,.mg-mono {
  font-family:var(--zs-font-mono);
  overflow-wrap:anywhere;
  font-size:var(--zs-text-sm)}
.mg-sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)}
.mg-skip {
  position:fixed;
  top:-60px;
  left:12px;
  z-index:20;
  background:var(--zs-color-surface);
  padding:12px}
.mg-skip:focus {
  top:12px}

.mg-sidebar {
  overflow-y:auto;
  overscroll-behavior:contain;
  position:fixed;
  inset:0 auto 0 0;
  width:242px;
  background:var(--zs-color-bg);
  color:var(--zs-color-text);
  padding:30px 20px 20px;
  display:flex;
  flex-direction:column;
  z-index:5}
.mg-brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:var(--zs-text-xl);
  font-weight:700;
  letter-spacing:-.6px}
.mg-brand-symbol {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--zs-color-accent);
  border-radius:11px;
  color:var(--zs-color-on-accent)}
.mg-brand-symbol svg {
  width:25px;
  height:25px}
.mg-brand small {
  display:block;
  font-size:var(--zs-text-sm);
  letter-spacing:2.8px;
  font-weight:500;
  color:var(--zs-color-text-muted);
  margin-top:1px}
.mg-workspace {
  display:flex;
  align-items:center;
  gap:10px;
  margin:35px 0 29px;
  border:1px solid var(--zs-color-border);
  border-radius:8px;
  padding:12px 9px;
  font-size:var(--zs-text-sm);
  font-weight:600}
.mg-avatar {
  width:29px;
  height:29px;
  background:var(--zs-color-sunken);
  border-radius:6px;
  display:grid;
  place-items:center;
  font-size:var(--zs-text-sm)}
.mg-workspace small {
  display:block;
  font-size:var(--zs-text-sm);
  font-weight:400;
  color:var(--zs-color-text-muted);
  margin-top:2px}
.mg-nav-label {
  font-size:var(--zs-text-sm);
  letter-spacing:1.7px;
  margin:0 12px 12px;
  color:var(--zs-color-text-muted)}
.mg-nav {
  display:grid;
  gap:5px}
.mg-nav a {
  min-height:45px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border-radius:7px;
  font-size:var(--zs-text-sm);
  font-weight:500;
  color:var(--zs-color-text-muted)}
.mg-nav a:hover {
  background:var(--zs-color-sunken);
  color:var(--zs-color-text)}
.mg-nav a[aria-current] {
  background:var(--zs-color-sunken);
  color:var(--zs-color-text);
  box-shadow:inset 3px 0 var(--zs-color-accent)}
.mg-nav-count {
  margin-left:auto;
  display:grid;
  place-items:center;
  background:var(--zs-color-sunken);
  border-radius:5px;
  min-width:22px;
  font-size:var(--zs-text-sm)}
.mg-sidebar-bottom {
  margin-top:auto;
  padding-top:35px}
.mg-sidebar-bottom a {
  display:flex;
  justify-content:space-between;
  padding:10px 12px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  min-height:44px}
.mg-sidebar-bottom a:hover {
  color:var(--zs-color-text)}
.mg-sidebar-bottom p {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  margin:24px 12px 0;
  padding-top:20px;
  border-top:1px solid var(--zs-color-border)}

.mg-shell {
  min-width:0;
  margin-left:242px}
.mg-topbar {
  min-height:72px;
  border-bottom:1px solid var(--zs-color-border);
  background:var(--zs-color-surface);
  padding:16px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px}
.mg-breadcrumb {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-breadcrumb span {
  margin:0 12px;
  color:var(--zs-color-text-muted)}
.mg-account {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:var(--zs-text-sm)}
.mg-account>a {
  display:inline-flex;
  align-items:center;
  min-height:44px}
.mg-account form {
  margin:0}
.mg-text-button {
  border:0;
  background:none;
  color:var(--zs-color-text-muted);
  cursor:pointer;
  min-height:44px}
.mg-preview {
  background:var(--zs-status-warn-surface);
  color:var(--zs-status-warn-text);
  padding:5px 10px;
  border-radius:5px;
  font-size:var(--zs-text-sm)}
.mg-main {
  max-width:1600px;
  padding:36px;
  margin:auto}
.mg-page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:29px}
.mg-page-heading p {
  color:var(--zs-color-text-muted);
  margin-bottom:0}
.mg-body .mg-eyebrow {
  font-size:var(--zs-text-sm);
  letter-spacing:1.6px;
  font-weight:600;
  color:var(--zs-color-text-muted);
  margin-bottom:12px}
.mg-page-actions {
  display:flex;
  gap:8px;
  flex-shrink:0}
.mg-button,.mg-legacy .button,.mg-legacy button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid var(--zs-color-border);
  border-radius:7px;
  background:var(--zs-color-surface);
  color:var(--zs-color-text);
  font-weight:600;
  font-size:var(--zs-text-sm);
  cursor:pointer;
  text-align:center}
.mg-button:hover,.mg-legacy button:hover {
  background:var(--zs-color-sunken)}
.mg-body .mg-button--primary {
  background:var(--zs-color-accent);
  border-color:var(--zs-color-accent);
  color:var(--zs-color-on-accent)}
.mg-button--primary:hover {
  background:var(--zs-color-accent-hover)}
.mg-button:disabled {
  background:var(--zs-color-sunken);
  color:var(--zs-color-text-muted);
  border-color:var(--zs-color-border);
  cursor:not-allowed}
.mg-body .mg-link {
  color:var(--zs-color-accent);
  font-size:var(--zs-text-sm);
  font-weight:600;
  display:inline-block;
  min-height:44px;
  padding:10px 0}
.mg-link:hover {
  text-decoration:underline}

.mg-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:22px}
.mg-metric {
  display:block;
  background:var(--zs-color-surface);
  border:1px solid var(--zs-color-border);
  border-radius:10px;
  padding:21px 23px}
.mg-metric>span {
  font-size:var(--zs-text-sm);
  font-weight:500;
  color:var(--zs-color-text-muted)}
.mg-metric strong {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:var(--zs-text-metric);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-1.5px;
  margin:12px 0}
.mg-metric small {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-metric small svg {
  width:16px}
.mg-metric-dot {
  display:block;
  width:9px;
  height:9px;
  border-radius:50%;
  border:4.5px solid var(--zs-status-ok-icon)}
.mg-callout {
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid var(--zs-color-border);
  border-left:3px solid var(--zs-color-accent);
  border-radius:8px;
  background:var(--zs-color-surface);
  padding:17px 20px;
  margin-bottom:26px}
.mg-callout>svg {
  margin-left:auto;
  color:var(--zs-color-accent)}
.mg-callout-icon {
  width:35px;
  height:35px;
  background:var(--zs-color-accent-subtle);
  color:var(--zs-color-accent);
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:var(--zs-text-xl)}
.mg-callout strong {
  font-size:var(--zs-text-sm)}
.mg-callout small {
  display:block;
  font-size:var(--zs-text-sm);
  margin-top:3px;
  color:var(--zs-color-text-muted)}

.mg-panel {
  background:var(--zs-color-surface);
  border:1px solid var(--zs-color-border);
  border-radius:10px;
  min-width:0;
  margin-bottom:24px;
  overflow:visible}
.mg-panel-heading {
  flex-wrap:wrap;
  padding:22px 24px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px}
.mg-panel-heading p {
  margin-bottom:0;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm)}
.mg-panel-heading h2 {
  margin-bottom:4px}
.mg-overview-grid {
  display:grid;
  grid-template-columns:minmax(0,2.5fr) minmax(260px,1fr);
  gap:24px;
  align-items:start}
.mg-next {
  padding:25px}
.mg-tile-icon {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border-radius:10px;
  background:var(--zs-color-accent-subtle);
  color:var(--zs-color-accent);
  margin-bottom:20px}
.mg-next h2 {
  font-size:var(--zs-text-xl);
  line-height:1.45;
  margin-bottom:15px}
.mg-next>p:not(.mg-eyebrow) {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  margin-bottom:22px}
.mg-next .mg-button {
  width:100%}
.mg-small-note {
  font-size:var(--zs-text-sm);
  line-height:1.65;
  color:var(--zs-color-text-muted);
  margin:16px 0 0}
.mg-next .mg-small-note {
  border-top:1px solid var(--zs-color-border);
  padding-top:16px;
  margin-top:22px}

.mg-table-wrap {
  position:relative;
  overflow-x:auto}
.mg-table {
  width:100%;
  border-collapse:collapse;
  text-align:left}
.mg-table th {
  font-size:var(--zs-text-sm);
  font-weight:600;
  letter-spacing:.4px;
  color:var(--zs-color-text-muted);
  background:var(--zs-color-bg);
  padding:12px 18px;
  border-top:1px solid var(--zs-color-border);
  border-bottom:1px solid var(--zs-color-border);
  white-space:nowrap}
.mg-table td {
  padding:18px;
  font-size:var(--zs-text-sm);
  border-bottom:1px solid var(--zs-color-border);
  vertical-align:middle}
.mg-table tr:last-child td {
  border-bottom:0}
.mg-table td:first-child,.mg-table th:first-child {
  padding-left:24px}
.mg-device-name {
  display:block;
  font-weight:600;
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
.mg-device-name:hover {
  color:var(--zs-color-accent);
  text-decoration:underline}
.mg-secondary {
  display:block;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm);
  margin-top:5px;
  max-width:350px;
  overflow-wrap:anywhere}
.mg-table time {
  color:var(--zs-color-text-muted);
  white-space:nowrap;
  font-size:var(--zs-text-sm)}
.mg-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:var(--zs-text-sm);
  font-weight:600;
  border-radius:6px;
  padding:5px 8px;
  background:var(--zs-status-neutral-surface);
  color:var(--zs-status-neutral-text);
  white-space:nowrap}
.mg-badge--ok {
  background:var(--zs-status-ok-surface);
  color:var(--zs-status-ok-text)}
.mg-badge--warning {
  background:var(--zs-status-warn-surface);
  color:var(--zs-status-warn-text)}
.mg-badge--critical {
  background:var(--zs-status-crit-surface);
  color:var(--zs-status-crit-text)}
.mg-badge--info {
  background:var(--zs-status-info-surface);
  color:var(--zs-status-info-text)}
.mg-table .mg-badge {
  white-space:normal}
.mg-version {
  font-family:var(--zs-font-mono);
  font-size:var(--zs-text-sm);
  background:var(--zs-color-bg);
  padding:4px 7px;
  border-radius:4px;
  white-space:nowrap}
.mg-row-link {
  display:grid;
  place-items:center;
  width:32px;
  height:34px;
  color:var(--zs-color-text-muted)}
.mg-row-link:hover {
  background:var(--zs-color-accent-subtle);
  color:var(--zs-color-accent)}
.mg-empty {
  text-align:center;
  padding:40px 24px;
  color:var(--zs-color-text-muted)}
.mg-empty strong {
  display:block;
  color:var(--zs-color-text);
  margin-bottom:8px}
.mg-empty p {
  font-size:var(--zs-text-sm);
  margin-bottom:15px}

.mg-activity-item {
  display:flex;
  align-items:center;
  gap:15px;
  padding:17px 24px;
  border-top:1px solid var(--zs-color-border)}
.mg-activity-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:34px;
  height:34px;
  border:1px solid var(--zs-color-border);
  border-radius:50%;
  color:var(--zs-color-text-muted)}
.mg-activity-item strong {
  font-size:var(--zs-text-sm);
  font-weight:600}
.mg-activity-item p {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  margin:3px 0 0}
.mg-activity-item time {
  margin-left:auto;
  white-space:nowrap;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-tabs {
  display:flex;
  gap:28px;
  border-bottom:1px solid var(--zs-color-border);
  margin-bottom:24px;
  overflow-x:auto;
  padding:6px;
  margin-left:-6px;
  margin-right:-6px}
.mg-tabs a {
  white-space:nowrap;
  font-size:var(--zs-text-sm);
  font-weight:500;
  min-height:44px;
  padding:8px 0 13px;
  color:var(--zs-color-text-muted);
  border-bottom:2px solid transparent}
.mg-tabs a[aria-current] {
  color:var(--zs-color-accent);
  border-color:var(--zs-color-accent)}
.mg-tabs span {
  font-size:var(--zs-text-sm);
  background:var(--zs-color-sunken);
  border-radius:5px;
  padding:2px 7px;
  margin-left:7px}
.mg-filters {
  display:flex;
  align-items:end;
  gap:14px;
  padding:22px 24px;
  flex-wrap:wrap}
.mg-filters label,.mg-form label,.mg-legacy label {
  display:grid;
  gap:7px;
  font-size:var(--zs-text-sm);
  font-weight:500}
.mg-search {
  flex:1;
  min-width:180px}
.mg-body input:not([type=checkbox]),.mg-body select,.mg-body textarea {
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--zs-color-border-strong);
  border-radius:6px;
  background:var(--zs-color-surface);
  color:var(--zs-color-text);
  font-size:var(--zs-text-sm)}
.mg-body input::placeholder {
  color:var(--zs-color-text-muted)}
.mg-filters select {
  min-width:155px;
  max-width:250px}
.mg-list-caption {
  padding:0 24px 15px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-disclosure>summary {
  padding:20px 24px;
  font-weight:600;
  cursor:pointer;
  min-height:48px}
.mg-disclosure[open]>summary {
  border-bottom:1px solid var(--zs-color-border)}
.mg-disclosure .mg-form {
  padding:24px}
.mg-form {
  display:grid;
  gap:20px;
  max-width:760px}
.mg-form>.mg-button {
  justify-self:start}
.mg-form-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px}
.mg-inline-warning {
  padding:14px 16px;
  border-radius:7px;
  background:var(--zs-status-warn-surface);
  color:var(--zs-status-warn-text);
  font-size:var(--zs-text-sm);
  margin:0}
.mg-inline-warning--crit {
  background:var(--zs-status-crit-surface);
  color:var(--zs-status-crit-text)}
.mg-inline-warning--info {
  background:var(--zs-status-info-surface);
  color:var(--zs-status-info-text)}
.mg-inline-warning--neutral {
  background:var(--zs-status-neutral-surface);
  color:var(--zs-status-neutral-text)}
.mg-row--crit>td:first-child {
  box-shadow:inset 3px 0 0 var(--zs-status-crit-icon)}
.mg-row--warn>td:first-child {
  box-shadow:inset 3px 0 0 var(--zs-status-warn-icon)}
.mg-padded {
  padding:25px}
.mg-padded>.mg-panel-heading {
  flex-wrap:wrap;
  padding:0 0 20px}
.mg-image-layout {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);
  gap:24px}
/* K2-4 (Bericht 182, 5-c): Die rechte Spalte endet nach ihrem Inhalt (vorher lief sie bei 1920 px 1848 px hoch neben „Für Kunden“ mit); unter „Vom Download
   zur Station“ steht dort „Bestehende Station aktualisieren“ (_images.html). */
.mg-body .mg-image-layout {
  align-items:start}
.mg-step-title {
  display:flex;
  gap:14px;
  margin-bottom:24px}
.mg-step-title>span {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--zs-color-accent-subtle);
  color:var(--zs-color-accent);
  border-radius:8px;
  font-family:var(--zs-font-mono);
  font-size:var(--zs-text-sm);
  flex-shrink:0}
.mg-step-title p {
  font-size:var(--zs-text-sm);
  margin-bottom:0}
.mg-steps {
  padding-left:25px;
  margin:24px 0}
.mg-steps li {
  padding-left:6px;
  margin-bottom:24px;
  font-size:var(--zs-text-sm)}
.mg-steps li::marker {
  color:var(--zs-color-accent);
  font-weight:700}
.mg-steps p {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  margin:7px 0 0}
.mg-customer-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px}
.mg-location {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:16px 0;
  border-top:1px solid var(--zs-color-border);
  font-size:var(--zs-text-sm)}
.mg-location span {
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm);
  white-space:nowrap}
.mg-detail-heading {
  display:flex;
  gap:16px;
  align-items:center;
  margin:23px 0 28px}
.mg-detail-heading p {
  margin:3px 0 0;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm)}
.mg-detail-heading>.mg-badge {
  margin-left:auto;
  white-space:normal}
.mg-device-mark {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  background:var(--zs-color-surface);
  border:1px solid var(--zs-color-border);
  border-radius:12px;
  color:var(--zs-color-accent)}
.mg-device-mark svg {
  width:29px;
  height:29px}
.mg-detail-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px}
.mg-facts {
  margin:20px 0 26px}
.mg-facts>div {
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:14px;
  border-top:1px solid var(--zs-color-border);
  padding:13px 0;
  font-size:var(--zs-text-sm)}
.mg-facts dt {
  color:var(--zs-color-text-muted)}
.mg-facts dd {
  margin:0;
  font-weight:500;
  overflow-wrap:anywhere}
.mg-body .mg-back {
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted);
  min-height:44px;
  display:inline-block;
  padding:7px 0}
.mg-explainer {
  display:flex;
  gap:25px;
  margin:20px 0 25px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-explainer strong {
  color:var(--zs-color-accent)}
.mg-muted {
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm)}
.mg-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:36px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-pagination {
  display:flex;
  justify-content:space-between;
  gap:12px}

.mg-legacy .station:not(.station-pending)> .section-heading,.mg-legacy .station:not(.station-pending)>p,.mg-legacy .station:not(.station-pending)>dl {
  display:none}
.mg-legacy .section-heading {
  flex-wrap:wrap;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px}
.mg-legacy article {
  padding:0}
.mg-legacy .muted {
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm)}
.mg-legacy details {
  border-top:1px solid var(--zs-color-border);
  margin-top:16px}
.mg-legacy summary {
  font-size:var(--zs-text-sm);
  font-weight:600;
  padding:15px 0;
  cursor:pointer;
  min-height:44px}
.mg-legacy form {
  display:grid;
  gap:16px;
  max-width:650px;
  margin:15px 0}
.mg-legacy .checkbox {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:400}
.mg-legacy input[type=checkbox] {
  width:44px;
  height:44px;
  flex-shrink:0}
.mg-legacy .station-actions {
  margin-top:18px}
.mg-legacy .danger {
  color:var(--zs-status-crit-text);
  border-color:var(--zs-color-danger)}
.mg-legacy .image-build {
  border-top:1px solid var(--zs-color-border);
  padding:23px 0}
.mg-legacy .image-build:first-child {
  border-top:0}
.mg-legacy .badge {
  display:inline-block;
  padding:4px 8px;
  font-size:var(--zs-text-sm);
  border-radius:5px;
  background:var(--zs-color-sunken);
  color:var(--zs-color-text-muted)}
.mg-legacy .ready {
  background:var(--zs-status-ok-surface);
  color:var(--zs-status-ok-text)}
.mg-legacy dd {
  margin-left:0;
  overflow-wrap:anywhere}
.mg-mobile-nav {
  display:none}

.mg-mobile-extra {
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px}
.mg-inline-note {
  padding:16px;
  background:var(--zs-status-info-surface);
  color:var(--zs-status-info-text);
  border-radius:8px}
.mg-job-details {
  margin-top:10px;
  max-width:650px}
.mg-job-details summary {
  cursor:pointer;
  min-height:44px;
  padding:10px 0}
.mg-job-details p {
  margin-bottom:14px}
.mg-job-details form {
  display:inline-block;
  margin:6px 0}
.mg-device-name {
  min-height:32px;
  padding:4px 0}


.mg-legacy form>a {display:inline-flex;align-items:center;min-height:44px}
@media(min-width:61.3125em) {.mg-overview-grid .mg-table th:nth-child(5),.mg-overview-grid .mg-table td:nth-child(5) {display:none}.mg-overview-grid .mg-table th,.mg-overview-grid .mg-table td {padding-left:12px;padding-right:12px}}
@media(min-width:100em) {
  .mg-main {
  padding-top:44px}
.mg-overview-grid {
  grid-template-columns:minmax(0,3fr) minmax(280px,1fr)}
}

@media(max-width:78.125em) {
  .mg-overview-grid {
  grid-template-columns:1fr}
.mg-next {
  display:none}
.mg-main {
  padding:28px}
.mg-topbar {
  padding:15px 28px}
.mg-image-layout {
  grid-template-columns:1.5fr 1fr}
.mg-table td {
  padding:14px}
}

@media(max-width:61.25em) {
  .mg-sidebar {
  display:none}
.mg-shell {
  min-width:0;
  margin-left:0}
.mg-mobile-nav {
  display:block;
  background:var(--zs-color-bg);
  color:var(--zs-color-text);
  padding:0 22px}
.mg-mobile-nav>summary {
  padding:15px 0;
  cursor:pointer}
.mg-mobile-nav .mg-nav {
  padding:0 0 15px}
.mg-page-heading {
  align-items:flex-start}
.mg-breadcrumb {
  display:none}
.mg-topbar {
  justify-content:flex-end}
.mg-overview-grid {
  grid-template-columns:1fr}
.mg-detail-grid {
  grid-template-columns:1fr}
.mg-overview-grid .mg-panel {
  margin-bottom:0}
.mg-overview-grid {
  margin-bottom:24px}
}

@media(max-width:42.5em) {
  .mg-main {
  padding:24px 16px}
.mg-body h1 {
  font-size:var(--zs-text-title)}
.mg-page-heading {
  display:block}
.mg-page-actions {
  margin-top:18px}
.mg-metrics {
  gap:8px;
  grid-template-columns:1fr}
.mg-metric {
  padding:13px 10px}
.mg-metric>span {
  font-size:var(--zs-text-sm)}
.mg-metric strong {
  font-size:var(--zs-text-title-wide)}
.mg-metric small {
  font-size:var(--zs-text-sm);
  display:block}
.mg-metric small svg {
  display:none}
.mg-metric-dot {
  width:6px;
  height:6px;
  border-width:3px}
.mg-topbar {
  padding:10px 16px}
.mg-account {
  gap:12px;
  font-size:var(--zs-text-sm);
  flex-wrap:wrap}
.mg-preview {
  font-size:var(--zs-text-sm)}
.mg-panel-heading {
  flex-wrap:wrap;
  padding:19px 16px;
  align-items:flex-start}
.mg-panel-heading h2 {
  font-size:var(--zs-text-lg)}
.mg-panel-heading .mg-link {
  font-size:var(--zs-text-sm);
  white-space:nowrap}
.mg-table {
  min-width:0;
  display:block}
.mg-table thead {
  display:none}
.mg-table tbody {
  display:block}
.mg-table tr {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  padding:18px 16px;
  gap:16px;
  border-bottom:1px solid var(--zs-color-border)}
.mg-body .mg-table td {
  display:block;
  min-width:0;
  padding:0;
  border:0}
.mg-table td::before {
  content:attr(data-label);
  display:block;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm);
  margin-bottom:6px}
.mg-body .mg-table td:first-child,.mg-body .mg-table td[colspan] {
  grid-column:1/-1;
  padding-right:35px}
.mg-table td:first-child::before {
  display:none}
.mg-table td:last-child:not([colspan]) {
  position:absolute;
  right:12px;
  top:16px}
.mg-table time {
  white-space:normal}
.mg-table .mg-badge {
  white-space:normal}
.mg-secondary {
  max-width:none}
.mg-row-link {
  min-height:44px;
  width:44px}
.mg-table-wrap {
  position:relative;
  overflow-x:auto}
.mg-activity-item {
  padding:16px;
  gap:10px;
  flex-wrap:wrap}
.mg-activity-item time {
  margin-left:44px;
  font-size:var(--zs-text-sm)}
.mg-activity-item>div {
  flex:1;
  min-width:180px}
.mg-callout {
  padding:15px 13px;
  gap:10px}
.mg-callout small {
  font-size:var(--zs-text-sm)}
.mg-image-layout,.mg-customer-grid {
  grid-template-columns:1fr;
  gap:0}
.mg-form-pair {
  grid-template-columns:1fr}
.mg-padded {
  padding:20px}
.mg-filters {
  padding:18px 16px;
  gap:12px}
.mg-filters label {
  flex:1;
  min-width:120px}
.mg-filters select {
  max-width:none;
  min-width:0}
.mg-filters .mg-search {
  flex-basis:100%}
.mg-tabs {
  gap:23px}
.mg-footer {
  flex-direction:column;
  font-size:var(--zs-text-sm);
  gap:5px}
.mg-facts>div {
  grid-template-columns:1fr 1.2fr;
  font-size:var(--zs-text-sm)}
.mg-explainer {
  flex-direction:column;
  gap:10px}
.mg-detail-heading {
  flex-wrap:wrap}
.mg-detail-heading>.mg-badge {
  margin-left:70px;
  max-width:calc(100% - 70px)}
.mg-small-note {
  font-size:var(--zs-text-sm)}
.mg-disclosure>summary {
  padding:18px 20px}
}

.mg-legacy label,.mg-legacy form,.mg-body select {min-width:0}
.mg-legacy label.checkbox {display:block;position:relative;padding-left:54px;min-height:44px;overflow-wrap:anywhere}
.mg-legacy label.checkbox input {position:absolute;left:0;top:0;margin:0}
@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto}
}

/* B-06, Plan:424, :482: Rückmeldung am Ort, Fehler im Meldungsrahmen und am Feld; nur Tokens. */
.mg-meldungen {
  display:grid;
  gap:12px;
  margin:0 0 24px}
.mg-meldung {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:7px;
  background:var(--zs-status-ok-surface);
  color:var(--zs-status-ok-text);
  font-size:var(--zs-text-sm)}
.mg-meldung p {
  margin:0;
  flex:1 1 auto;
  min-width:0}
/* V12A-09, Plan:421, Kap. 5.4: nie Farbe allein; Haken für Erfolg, Warnzeichen für Fehler. Im HTML nach dem Text (der Text führt, das Symbol ist verborgen), sichtbar davor. */
.mg-meldung-symbol {
  order:-1}
.mg-meldung--fehler {
  background:var(--zs-status-crit-surface);
  color:var(--zs-status-crit-text)}
.mg-meldung a {
  color:inherit}
/* V12A-04, WCAG F73: Ein Link im Fließtext ist als Link erkennbar, nicht nur an der Farbe (.mg-body a nimmt die Unterstreichung sonst weg). */
.mg-meldung a,
#auftraege .mg-muted a {
  text-decoration:underline}
.mg-feldfehler {
  margin:0;
  color:var(--zs-status-crit-text);
  font-size:var(--zs-text-sm);
  font-weight:600}
/* B-05, N5: Aufträge der Station (Reiter Wartung & Verlauf) mit Zeiten und Messstand. */
.mg-auftrag {
  border-top:1px solid var(--zs-color-border);
  padding:16px 0}
.mg-auftrag:first-child {
  border-top:0}
.mg-auftrag h3 {
  margin:0 0 4px;
  font-size:var(--zs-text-md)}
.mg-auftrag h4 {
  margin:16px 0 0;
  font-size:var(--zs-text-sm)}
.mg-auftrag p {
  margin:4px 0;
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
.mg-auftrag .mg-facts {
  margin:8px 0}
.mg-messstand--alt dd {
  color:var(--zs-color-text-muted)}
/* B-18, Plan:422: Stand der Ansicht. */
.mg-page-heading .mg-stand {
  margin-top:4px;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm)}
/* N7 (Plan:325, AA-09, B-16): SD-Seite. Für Kunden und Testkandidaten getrennt, Kennzeichen mit Text und Symbol, nur Tokens. */
.mg-sd-sprung {
  flex-wrap:wrap;
  overflow-x:visible;
  column-gap:24px;
  row-gap:0}
.mg-sd-betrieb {
  border-top:1px solid var(--zs-color-border);
  padding-top:16px;
  margin-top:8px}
.mg-sd-betrieb>h3 {
  margin:0 0 4px;
  overflow-wrap:anywhere}
.mg-sd-image {
  border-top:1px solid var(--zs-color-border);
  padding:16px 0}
.mg-sd-betrieb>h3+.mg-sd-image,.mg-panel-heading+.mg-sd-image {
  border-top:0}
.mg-sd-kopf {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px}
.mg-sd-kopf h3,.mg-sd-kopf h4 {
  margin:0;
  font-size:var(--zs-text-md);
  overflow-wrap:anywhere}
.mg-sd-kopf .mg-badge {
  white-space:normal}
.mg-sd-kopf .mg-badge svg {
  width:16px;
  height:16px}
.mg-sd-fakten {
  margin:12px 0 16px}
.mg-sd .mg-button {
  max-width:100%}
.mg-sd .mg-small-note {
  margin-top:8px}
.mg-sd .mg-inline-warning {
  margin:12px 0}
.mg-sd-form {
  gap:12px;
  margin:0 0 8px}
.mg-sd .mg-sd-check {
  display:block;
  position:relative;
  padding-left:54px;
  min-height:44px;
  font-weight:400;
  overflow-wrap:anywhere}
.mg-sd .mg-sd-check input {
  position:absolute;
  left:0;
  top:0;
  width:44px;
  height:44px;
  margin:0}
.mg-sd-mehr {
  border-top:1px solid var(--zs-color-border);
  margin-top:12px}
.mg-sd-mehr>summary {
  min-height:44px;
  padding:12px 0;
  font-size:var(--zs-text-sm);
  font-weight:600;
  cursor:pointer}
.mg-sd-mehr .mg-sd-form {
  margin-top:8px}
}

/* N4 (Paket N4, AP-20): Übersicht „Braucht Aufmerksamkeit“, Schnellfilter, Filterleiste, Seitenwechsel, Statussymbole, Kartenzeilen bis 84em (B-15). Nur Tokens, Breakpoints in em. */
@layer pages {
/* Plan:421, Kap. 5.4: je Rolle eine eigene Symbolform, immer neben Text. K1-6 (Bericht 182, 178 V4-a; Plan:447-453): Farbe aus der Symbolfarbe der Rolle (-icon,
   Nicht-Text ab 3:1, WCAG 1.4.11) statt der dunklen Textfarbe, Strich 2,25 statt 1,7. Keine neue Farbe, nur Tokens. */
.mg-body .mg-rolle-symbol,.mg-body .mg-zeit-symbol {
  width:1.15em;
  height:1.15em;
  vertical-align:-.2em;
  margin-right:6px}
.mg-body .mg-rolle-symbol {
  stroke-width:2.25}
.mg-rolle-symbol--crit {
  color:var(--zs-status-crit-icon)}
.mg-rolle-symbol--warn {
  color:var(--zs-status-warn-icon)}
.mg-rolle-symbol--info {
  color:var(--zs-status-info-icon)}
.mg-rolle-symbol--ok {
  color:var(--zs-status-ok-icon)}
.mg-rolle-symbol--neutral {
  color:var(--zs-status-neutral-icon)}
.mg-badge .mg-rolle-symbol {
  margin-right:0}
.mg-lage {
  margin-bottom:24px}
.mg-lage h2 {
  margin-bottom:6px}
.mg-lage-zahlen {
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
  margin:0 0 18px;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-lage-zahl {
  color:var(--zs-color-text);
  font-weight:600}
/* K1-2 (Bericht 182, Plan:461 mit P1): Kurzlage je Art unter der Überschrift; Namen als unterstrichene Links in der Akzentfarbe, der Text führt. */
.mg-kurzlage {
  list-style:none;
  margin:-6px 0 18px;
  padding:0;
  overflow-wrap:anywhere}
.mg-kurzlage li {
  margin:0 0 4px;
  line-height:1.7}
.mg-kurzlage a,.mg-lage-klaeren-weitere a {
  color:var(--zs-color-accent);
  font-weight:600;
  text-decoration:underline}
.mg-body .mg-lage-klaeren-weitere {
  margin:0 0 12px;
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
/* K1-2 mit G-07 (Bericht 182, 2.3): Schmal ist die Kurzlage kompakter (14 px, Zeilenhöhe 1,5). Seit O8 gilt das zwischen 30em und 42,5em; unter 30em steht nur die
   Zählzeile (Block K1-8 unten). */
@media (max-width:42.5em) {
.mg-body .mg-kurzlage {
  font-size:var(--zs-text-sm);
  margin-bottom:14px}
.mg-kurzlage li {
  line-height:1.5;
  margin-bottom:3px}
.mg-body .mg-lage .mg-lage-zahlen {
  margin-bottom:12px}
}
/* K1-7 (Bericht 182, 179 5-a mit G-05; WCAG-Technik C27): Ab 90em stehen Überschrift und Kurzlage oben über die ganze Breite, darunter links die Liste, rechts
   „Zu klären“, „Hinweise und ohne Bewertung“ und die Plattformfristen. Quelltext- und Sichtreihenfolge sind gleich (kopf, kurz, haupt, rest), die Tab-Taste
   springt nicht hin und her; schmaler bleibt alles untereinander. */
@media (min-width:90em) {
.mg-lage--rest {
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,2fr);
  grid-template-areas:"kopf kopf" "kurz kurz" "haupt rest";
  column-gap:32px;
  align-items:start}
.mg-lage--rest>h2 {
  grid-area:kopf}
.mg-lage--rest>.mg-lage-kurz {
  grid-area:kurz}
.mg-lage--rest>.mg-lage-haupt {
  grid-area:haupt;
  min-width:0}
.mg-lage--rest>.mg-lage-rest {
  grid-area:rest;
  min-width:0}
.mg-body .mg-lage--rest>.mg-lage-rest>.mg-lage-titel:first-child {
  margin-top:0}
}
/* K1-8 (Bericht 182, G-07; Plan 5.1 Nr. 3): Unter 30em fallen im Seitenkopf der Übersicht Datumszeile und Unterzeile weg, „Stand hh:mm“ bleibt. Nur die Übersicht.
   O8 (Luis 25.11.2026, Blatt 137, Nachtrag 6a: „es reicht zu sehen, wie viele diesen Zustand haben, also Kritisch und mit Warnung“; Bericht 193): Unter 30em steht
   unter „Braucht Aufmerksamkeit“ nur die Zählzeile; die Kurzlage je Art mit den Namen und dem Sprunglink „Zu klären“ erst ab 30em. display:none verbirgt sie auch
   für die Sprachausgabe. F1 (Luis 26.11.2026, Blatt 137, Nachtrag 6c; Bericht 194, V41C-01): Die Zählzeile nennt dort nur „kritisch“ und „mit Warnung“, „in Ordnung“
   erst ab 30em; steht keine andere Zahl davor (alle Stationen in Ordnung), bleibt es, damit die Zeile nie leer ist. So bleibt sie bei 390 px einzeilig (bei 320 px
   bricht sie in der Betriebszeit in zwei Zeilen um, F-a), und bei 390 × 844 steht der erste Befund mit nächstem Schritt in und außerhalb der Betriebszeit im
   ersten Bildschirm (Plan:712; Messwerte Bericht 199). */
@media (max-width:29.9375em) {
.mg-body[data-console-page="overview"] .mg-page-heading>div>.mg-eyebrow,.mg-body[data-console-page="overview"] .mg-page-heading>div>h1+p {
  display:none}
.mg-body .mg-kurzlage {
  display:none}
.mg-body .mg-lage-zahl+.mg-lage-zahl--ok {
  display:none}
}
.mg-befunde {
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:grid;
  gap:12px}
.mg-befund {
  border:1px solid var(--zs-color-border);
  border-inline-start-width:6px;
  border-radius:8px;
  padding:12px 16px;
  min-width:0}
.mg-befund--crit {
  border-inline-start-color:var(--zs-status-crit-icon)}
.mg-befund--warn {
  border-inline-start-color:var(--zs-status-warn-icon)}
.mg-body .mg-befund p {
  margin:4px 0;
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
.mg-body .mg-befund .mg-befund-kopf {
  font-size:var(--zs-text-md)}
.mg-befund-rolle,.mg-befund-art {
  font-weight:600}
.mg-befund-kopf .mg-befund-rolle {
  white-space:nowrap}
.mg-befund-seit,.mg-befund-achse {
  color:var(--zs-color-text-muted)}
.mg-befund-schritt {
  font-weight:600}
.mg-body .mg-befund-station {
  display:inline-flex;
  align-items:center;
  min-height:var(--zs-control-height);
  font-weight:600;
  color:var(--zs-color-accent);
  text-decoration:underline;
  overflow-wrap:anywhere}
.mg-befund .mg-secondary {
  margin-top:0;
  max-width:none}
.mg-lage-titel {
  margin:20px 0 6px;
  font-size:var(--zs-text-md)}
.mg-lage-ohne {
  margin:0 0 12px;
  padding-left:0;
  list-style:none;
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
.mg-lage-ohne li {
  margin:6px 0}
.mg-lage-ruhig,.mg-lage-hinweis,.mg-lage-plattform {
  overflow-wrap:anywhere}
.mg-lage-plattform {
  margin:12px 0 0;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-lage-mehr {
  margin-bottom:4px}
/* Plan:323: „Alles in Ordnung“ gilt 3 Minuten ab „Stand“; danach zeigt dieselbe Stelle ohne Skript den Hinweis zum Neuladen (beide in einer Rasterzelle übereinander). */
.mg-lage-ok {
  display:grid;
  margin:0 0 6px}
.mg-lage-ok>p {
  grid-area:1/1;
  margin:0;
  overflow-wrap:anywhere}
.mg-lage-ok-jetzt {
  animation:mg-lage-veraltet 1ms step-end 180s forwards}
.mg-lage-ok-alt {
  visibility:hidden;
  animation:mg-lage-zeigen 1ms step-end 180s forwards}
@keyframes mg-lage-veraltet {
  to {
  visibility:hidden}
}
@keyframes mg-lage-zeigen {
  to {
  visibility:visible}
}
.mg-leer h2 {
  margin-bottom:8px}
.mg-leer p {
  max-width:60ch;
  margin-left:auto;
  margin-right:auto}
/* B-20: Schnellfilter brechen um statt seitlich zu schieben; Seitenwechsel mit Zusammenfassung. */
.mg-tabs.mg-schnellfilter {
  flex-wrap:wrap;
  overflow-x:visible;
  gap:4px 24px}
.mg-seitenwechsel {
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  padding:16px 24px}
.mg-seitenwechsel p {
  flex-basis:100%;
  margin:0;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-seitenwechsel a[aria-current] {
  border-color:var(--zs-color-accent);
  color:var(--zs-color-accent)}
.mg-empty .mg-button {
  margin-top:4px}
}

/* N4, B-15 (Paket N4): Kartenzeilen bis 84em, darüber die Tabelle mit umbrechenden Werten. */
@layer pages {
/* B-15, Plan K8 (Plan:701): Bis 84em (1344 px) ist jede Zeile eine Karte (Beschriftung aus data-label), darüber passt die Tabelle in ihren Rahmen; lange Werte brechen um. */
@media (max-width:84em) {
.mg-table {
  min-width:0;
  display:block}
.mg-table thead {
  display:none}
.mg-table tbody {
  display:block}
.mg-table tr {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  padding:18px 16px;
  gap:16px;
  border-bottom:1px solid var(--zs-color-border)}
.mg-table tr.mg-row--crit {
  box-shadow:inset 3px 0 0 var(--zs-status-crit-icon)}
.mg-table tr.mg-row--warn {
  box-shadow:inset 3px 0 0 var(--zs-status-warn-icon)}
.mg-body .mg-table td {
  display:block;
  min-width:0;
  padding:0;
  border:0;
  overflow-wrap:anywhere}
.mg-table td::before {
  content:attr(data-label);
  display:block;
  color:var(--zs-color-text-muted);
  font-size:var(--zs-text-sm);
  margin-bottom:6px}
.mg-body .mg-table td:first-child,.mg-body .mg-table td[colspan] {
  grid-column:1/-1;
  padding-right:35px;
  box-shadow:none}
.mg-table td:first-child::before {
  display:none}
.mg-table td:last-child:not([colspan]) {
  position:absolute;
  right:12px;
  top:16px}
.mg-table time,.mg-table .mg-version,.mg-table .mg-badge {
  white-space:normal}
.mg-table .mg-secondary {
  max-width:none}
.mg-table .mg-row-link {
  min-height:44px;
  width:44px}
}
@media (min-width:42.5625em) and (max-width:84em) {
.mg-table tr {
  grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,.7fr) minmax(0,.9fr)}
}
@media (min-width:84.0625em) {
.mg-table th,.mg-table time,.mg-table .mg-version {
  white-space:normal}
.mg-table td {
  overflow-wrap:anywhere}
}
}

/* N5 (Paket N5, AP-21): Stationsdetail mit Reitern (K06), Aktionsleiste (K05), Achsen, Einzelwerten mit Messstand, Aufträgen und Gefahrenbereich. Nur Tokens, Breakpoints in em. */
@layer pages {
/* K06 (MOJ Sub navigation): Reiter als echte Links, aria-current am aktiven, kenntlich an Farbe und Unterstrich; schmal brechen sie um statt seitlich zu schieben (Plan:701). */
.mg-reiter {
  margin:20px 0 24px;
  border-bottom:1px solid var(--zs-color-border)}
.mg-reiter ul {
  display:flex;
  flex-wrap:wrap;
  column-gap:28px;
  row-gap:0;
  margin:0;
  padding:0;
  list-style:none}
.mg-body .mg-reiter a {
  display:inline-flex;
  align-items:center;
  min-height:var(--zs-control-height);
  padding:8px 0;
  font-size:var(--zs-text-sm);
  font-weight:600;
  color:var(--zs-color-text-muted);
  border-bottom:3px solid transparent;
  margin-bottom:-1px}
.mg-body .mg-reiter a:hover {
  color:var(--zs-color-text);
  text-decoration:underline}
.mg-body .mg-reiter a[aria-current="page"] {
  color:var(--zs-color-accent);
  border-bottom-color:var(--zs-color-accent)}
/* K05, Plan:430: höchstens drei Aktionen, eine primär; sie brechen um, auch bei 320 px schiebt nichts seitlich. Lange Stationsnamen brechen im Titel um. */
.mg-page-heading>div {
  min-width:0}
.mg-page-heading h1 {
  overflow-wrap:anywhere}
.mg-body .mg-aktionsleiste {
  flex-wrap:wrap;
  justify-content:flex-end;
  flex-shrink:1;
  min-width:0}
.mg-aktionsleiste form {
  margin:0}
.mg-body .mg-nur-lesen {
  flex-basis:100%;
  margin:0;
  text-align:right;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-body .mg-gesperrt {
  margin:12px 0 0;
  padding:14px 16px;
  border-radius:7px;
  background:var(--zs-status-neutral-surface);
  color:var(--zs-status-neutral-text);
  font-size:var(--zs-text-sm);
  overflow-wrap:anywhere}
/* Plan:465-468, W3: die vier Achsen als Liste; der Text führt, Symbol und Farbe der Rolle stehen daneben (Plan:421). */
.mg-achsen {
  margin:12px 0 16px}
.mg-achsen>div {
  display:grid;
  grid-template-columns:minmax(0,8em) minmax(0,1fr);
  gap:14px;
  border-top:1px solid var(--zs-color-border);
  padding:12px 0;
  font-size:var(--zs-text-sm)}
.mg-achsen dt {
  color:var(--zs-color-text-muted)}
.mg-achsen dd {
  margin:0;
  overflow-wrap:anywhere}
.mg-achse-schritt,.mg-achse-ergebnis,.mg-achse-stempeln {
  display:block;
  margin-top:4px}
.mg-achse-schritt {
  font-weight:600}
.mg-body .mg-ohne-befund {
  margin:0;
  font-size:var(--zs-text-sm)}
/* AA-06, B07: Messstand mit Stand und Alter; alte Werte grau und neutral, dazu der Text „zuletzt gemeldet“ und „kein aktueller Zustand“, nie Farbe allein. */
.mg-body .mg-werte-stand {
  margin:4px 0 0;
  font-size:var(--zs-text-sm);
  color:var(--zs-color-text-muted)}
.mg-body .mg-werte-stand--alt {
  color:var(--zs-status-warn-text);
  font-weight:600}
.mg-werte--alt dd {
  color:var(--zs-color-text-muted)}
.mg-small-note a {
  text-decoration:underline}
.mg-auftrag-seiten {
  margin-top:8px}
/* Formulare des Details (Name, Update, Sperren) als eigener Baustein statt des Altbausteins fleet/station.html (B-17). */
.mg-formular details {
  border-top:1px solid var(--zs-color-border);
  margin-top:12px}
.mg-formular summary {
  display:flex;
  align-items:center;
  min-height:var(--zs-control-height);
  padding:10px 0;
  font-size:var(--zs-text-sm);
  font-weight:600;
  cursor:pointer}
/* K2-1 (Bericht 182, Befund 7; WAI-ARIA APG, Muster Disclosure): „Name bearbeiten“, „Update verwalten“ und „Verbindung sperren“ als Knopf zum Aufklappen:
   Rahmen border-strong (Nicht-Text ab 3:1), Schrift in Akzentfarbe, Pfeil nach rechts (zu) und nach unten (offen), beim Überfahren die Fläche des aktuellen
   Orts; Fokus wie überall der Ring aus base.css. Markup unverändert (details und summary, ohne Skript); das Dreieck des Browsers weicht dem eigenen Pfeil
   (display:flex nahm es ohnehin schon). Keine neue Farbe, nur Tokens. */
.mg-body .mg-formular details {
  border-top:0;
  margin-top:16px}
/* B-5 (Bericht 196): Zugeklappt steht das Folgende wieder etwa 10 px unter dem Knopf wie vor K2 (dort trug das Polster des alten summary den Abstand;
   .mg-body p setzt margin-top:0). Nur wenn danach etwas folgt: Am Ende eines Abschnitts bleibt der Abstand zum Rand wie bisher. */
.mg-body .mg-formular details:not(:last-child) {
  margin-bottom:10px}
.mg-body .mg-formular summary {
  display:inline-flex;
  gap:10px;
  max-width:100%;
  padding:10px 16px 10px 14px;
  border:1px solid var(--zs-color-border-strong);
  border-radius:7px;
  background:var(--zs-color-surface);
  color:var(--zs-color-accent);
  list-style:none}
.mg-formular summary::-webkit-details-marker {
  display:none}
.mg-formular summary::before {
  content:"";
  flex:none;
  width:.5em;
  height:.5em;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateX(-.1em) rotate(-45deg)}
.mg-formular details[open]>summary::before {
  transform:translateY(-.15em) rotate(45deg)}
.mg-body .mg-formular summary:hover {
  background:var(--zs-color-accent-subtle)}
.mg-formular form {
  display:grid;
  gap:16px;
  max-width:650px;
  margin:15px 0;
  min-width:0}
.mg-formular label {
  display:grid;
  gap:7px;
  font-size:var(--zs-text-sm);
  font-weight:500;
  min-width:0}
.mg-formular .mg-haken {
  display:block;
  position:relative;
  padding-left:54px;
  min-height:44px;
  overflow-wrap:anywhere}
.mg-formular .mg-haken input {
  position:absolute;
  left:0;
  top:0;
  margin:0;
  width:44px;
  height:44px}
.mg-formular form>.mg-button {
  justify-self:start}
.mg-formular ul {
  margin:0;
  padding-left:20px;
  font-size:var(--zs-text-sm)}
.mg-body .mg-formular form p {
  margin:0;
  font-size:var(--zs-text-sm)}
.mg-body .mg-gefahrenbereich {
  border-color:var(--zs-status-crit-icon)}
.mg-body .mg-button--gefahr {
  color:var(--zs-status-crit-text);
  border-color:var(--zs-color-danger)}
@media (max-width:42.5em) {
.mg-body .mg-aktionsleiste {
  justify-content:flex-start}
.mg-body .mg-nur-lesen {
  text-align:left}
.mg-achsen>div {
  grid-template-columns:minmax(0,1fr);
  gap:2px}
}
}

/* N5, Korrektur n16b (V16A-04, Plan:430, K04, W3): die vier Achsen über den Reitern, auf jedem Reiter; breit in zwei Spalten wie W3, schmal untereinander. V16A-02: Ein
   Auftrag, der hinter dem offenen wartet, steht unter der Achse Auftrag. Nur Tokens, Breakpoints in em. */
@layer pages {
.mg-kopf-achsen {
  margin:16px 0 0}
.mg-kopf-achsen .mg-achsen {
  margin:0}
.mg-body .mg-kopf-achsen .mg-small-note {
  margin:8px 0 0}
.mg-achse-dahinter {
  display:block;
  margin-top:4px}
@media (min-width:64em) {
.mg-kopf-achsen .mg-achsen {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:32px}
}
}

/* N6 */
/* N6 (Bericht 61): Sitzung im Kopf der Konsole (E-30, Plan:484). Nur Tokens, Breakpoints in em. */
@layer pages {
.mg-sitzung {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 12px;
  margin:0;
  color:var(--zs-color-text-muted)}
.mg-sitzung time,.mg-sitzung-zeile time {
  color:var(--zs-color-text);
  font-variant-numeric:tabular-nums}
/* N6: schmal steht die Ablaufzeit in der Zeile „Menü“; der Kopf bekäme sonst eine zweite Zeile. Das Formular im geöffneten Menü (.mg-sitzung--menue) entfiel mit
   K2-6; seine Regeln sind seit dem Paket Sitzungshinweis gestrichen (O1, Bericht 195). */
.mg-sitzung-zeile {
  display:none}
@media (max-width:42.5em) {
.mg-topbar .mg-sitzung {
  display:none}
.mg-sitzung-zeile {
  display:inline}
}
/* K2-6 (Bericht 182, 11.1 mit G-03, G-04, G-14): „Sitzung verlängern“ als Schaltfläche zweiter Stufe (mg-button, 44 px, Rahmen border-strong). Schmal steht sie
   als „Verlängern“ im Kopf neben „Abmelden“, sichtbar ohne Aufklappen; die Ablaufzeit bleibt in der Zeile „Menü“, das Formular im Menü entfällt (base.html). Der
   Name beginnt mit dem sichtbaren Wort („Verlängern: Sitzung“, WCAG 2.5.3); der Knopf lädt die Seite neu (G-03). Auf der Musterseite zeigt der Kopf das auch
   schmal; mit „(Höchstdauer)“ bleibt er dort leer wie in der Konsole. Seit dem Sitzungshinweis (ADR 0015) verlängert mit JavaScript der Knopf im Pop-up ohne
   Neuladen; dieser Knopf im Kopf bleibt der Weg ohne Skript. */
.mg-body .mg-sitzung-knopf {
  border-color:var(--zs-color-border-strong);
  padding:10px 14px}
.mg-sitzung-knopf-kurz {
  display:none}
@media (max-width:42.5em) {
.mg-topbar form.mg-sitzung,.mg-topbar div.mg-sitzung {
  display:flex}
.mg-topbar .mg-sitzung .mg-sitzung-bis,.mg-sitzung-knopf-lang {
  display:none}
.mg-sitzung-knopf-kurz {
  display:inline}
.mg-body .mg-muster-kopfzeile {
  display:flex}
}
/* N6: Unterpunkte von Stationen (Plan:429), eingerückt unter dem Bereich, wie die Punkte darüber mindestens 44 px hoch. */
.mg-nav-unterpunkte {
  display:grid;
  gap:2px;
  margin:0 0 4px 32px}
.mg-nav .mg-nav-unterpunkte a {
  min-height:44px;
  padding:10px 12px;
  font-weight:400}
/* N6, R19: der Einmalcode groß, umbrechend, in Schreibmaschinenschrift; nichts davon nur über Farbe. */
.mg-einmalcode-wert {
  margin:16px 0}
.mg-einmalcode-wert code {
  display:inline-block;
  padding:12px 16px;
  border:1px solid var(--zs-color-border);
  border-radius:8px;
  background:var(--zs-color-sunken);
  color:var(--zs-color-text);
  font-size:var(--zs-text-md);
  letter-spacing:.5px;
  overflow-wrap:anywhere}
/* K2-2 (Bericht 182, 8-a): Ein Klick oder Doppelklick markiert den ganzen Code (user-select: all; vorher teilte ein „-“ die Markierung, bei rund der Hälfte
   der Codes). Vierergruppen nur über Abstand (je Gruppe ein span, _verbinden.html): Kopiert werden die 43 Zeichen ohne Leerzeichen. 20 px; umgebrochen wird
   zwischen den Gruppen, nie in einer. */
.mg-body .mg-einmalcode-wert code {
  -webkit-user-select:all;
  user-select:all;
  font-size:var(--zs-text-xl);
  letter-spacing:normal}
.mg-einmalcode-wert code>span {
  display:inline-block}
/* B-8 (Bericht 196, = O7 aus Bericht 195): der Abstand hinter jeder Gruppe außer der letzten. Bricht der Code um, steht er am Zeilenende, und jede Zeile
   beginnt bündig; vorher stand er vor jeder Gruppe außer der ersten, und jede Folgezeile rückte um 1ch ein. */
.mg-einmalcode-wert code>span:not(:last-child) {
  margin-inline-end:1ch}
/* K2-3 (Bericht 182, 8-c mit G-01): Auf „Bestehende Station verbinden“ steht die Karte „So verbindet der Techniker die Station“ ab 64em rechts neben dem
   Formular, mit Code rechts neben Code und Formular. Quelltext mit Code: Code, Karte, Formular; Lesen und Tab-Taste gehen oben links, rechts, unten links
   (WCAG-Technik C27). Schmal steht alles untereinander. Links im Text der Karte und der Hilfe „Bestehende Station vorbereiten“ sind unterstrichen (V12A-04). */
.mg-verbinden-anleitung p a,.mg-hilfe p a {
  color:var(--zs-color-accent);
  text-decoration:underline}
.mg-body .mg-verbinden-anleitung .mg-steps {
  margin:16px 0}
/* Schritte mit Nummern wie im Wortlaut von Bericht 182 (1. bis 4.): base.css nimmt Listen mit Klasse die Marke (Ebene reset); die Farbe der Nummer setzt
   .mg-steps li::marker (accent). O5 (Bericht 195): ebenso „Vom Download zur Station“ auf der SD-Seite (_images.html); andere Listen bleiben, wie sie sind. */
.mg-verbinden-anleitung .mg-steps,.mg-hilfe .mg-steps,.mg-image-seite .mg-steps {
  list-style:decimal}
/* O8 (Berichte 195 und 220): Jede Option in der Karte (.mg-option: --enroll im Befehl und in der Notiz, --once, --replace-enrollment) bleibt ganz; vorher
   trennte der Browser hinter „--“ (--once bei 1920 px, --enroll bei 320 px, --replace-enrollment bei 1440 px), denn ein Bindestrich ist eine normale
   Trennstelle. Der lange Befehl .mg-befehl bricht weiter an Leerzeichen und Schrägstrichen um (S-3), die Notiz am Leerzeichen zwischen den Optionen. */
.mg-verbinden-anleitung .mg-option {
  white-space:nowrap}
@media (min-width:64em) {
.mg-verbinden {
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,2fr);
  column-gap:24px;
  align-items:start}
.mg-verbinden--code {
  grid-template-rows:auto 1fr}
.mg-verbinden--code>.mg-verbinden-anleitung {
  grid-column:2;
  grid-row:1 / span 2}
.mg-verbinden--code>.mg-formular {
  grid-column:1;
  grid-row:2}
}
/* N6, T06: verworfene Anmeldungen als ruhige Liste, schmal untereinander. */
.mg-archiv {
  list-style:none;
  margin:16px 0 0;
  padding:0}
.mg-archiv li {
  display:flex;
  flex-wrap:wrap;
  gap:4px 24px;
  align-items:baseline;
  padding:10px 0;
  border-top:1px solid var(--zs-color-border)}
}

/* N6r (Stufe n18, Bericht 62): Reste der Konsole aus N2, N4, N5 und N7. Nur Tokens, Breakpoints in em. */
@layer pages {
/* V16C-02 (W3, Plan:430: Statuszeile vor den Aktionen): Im Stationsdetail stehen Hinweis „gesperrt“ und die Achsen im Seitenkopf vor der Aktionsleiste. Breit bricht
   der Kopf dafür in volle Zeilen um, die Aktionen bleiben rechts; schmal steht alles untereinander (N5: Aktionen links). */
.mg-page-heading--station {
  flex-wrap:wrap;
  align-items:flex-start;
  row-gap:16px}
.mg-page-heading--station>div:first-child,.mg-page-heading--station>.mg-gesperrt,.mg-page-heading--station>.mg-kopf-achsen,.mg-page-heading--station>.mg-aktionsleiste {
  flex-basis:100%}
.mg-body .mg-page-heading--station>.mg-kopf-achsen,.mg-body .mg-page-heading--station>.mg-gesperrt {
  margin:0}
@media (max-width:42.5em) {
.mg-body .mg-page-heading--station>.mg-kopf-achsen,.mg-body .mg-page-heading--station>.mg-gesperrt {
  margin-top:16px}
/* V16C-02 mit B-06 (Plan:424, V12A-01 c: Rückmeldung ohne Scrollen sichtbar): Schmal stehen die Achsen vor der Aktionsleiste; der Name der Achse steht vor
   ihrem Wert statt darüber, mit weniger Abstand, damit Achsen und Aktionsleiste kurz bleiben. Eine Meldung steht davor (n18b, V18-01). */
.mg-page-heading--station .mg-achsen>div {
  display:block;
  padding:6px 0}
.mg-page-heading--station .mg-achsen dt {
  display:inline;
  margin-right:8px}
.mg-page-heading--station .mg-achsen dd {
  display:inline}
}
/* V14A-10: Über 84em steht die Liste als Tabelle (B-15). Die wichtigste Spalte „Betrieb / Befunde“ bekommt gut ein Drittel der Breite, die Station ein Fünftel;
   so brechen Befund, Wirkung und Schritt nicht Wort für Wort um, und die Stationsspalte bleibt nicht halb leer. */
@media (min-width:84.0625em) {
.mg-table--stationen th:nth-child(1) {
  width:20%}
.mg-table--stationen th:nth-child(3) {
  width:36%}
}
/* V14A-14 (Plan:420 „OK ohne Farbfläche“, E-04 vom 14.11.2026): OK steht mit Text, Symbol und der Textfarbe der Rolle da, ohne Fläche; Warnung, Kritisch und
   Hinweis behalten ihre Fläche. Gilt für jede Plakette der Konsole (Liste, Detail, SD-Seite). */
.mg-badge--ok {
  background:transparent}
/* n18b, V18-01 (B-06, V12A-01 c, Plan:424): Im Stationsdetail steht die Meldung nach einer Aktion direkt nach Name und Stand, vor Hinweis „gesperrt“, Achsen und
   Aktionsleiste; so bleibt sie auch bei einer Station mit langen Achsen am Handy im ersten Bildschirm. Ihr Text behält die Farbe der Meldung (.mg-page-heading p
   setzt sonst die gedämpfte Textfarbe). */
.mg-page-heading--station>.mg-meldungen {
  flex-basis:100%;
  margin:0}
.mg-page-heading--station .mg-meldung p {
  color:inherit}
@media (max-width:42.5em) {
.mg-body .mg-page-heading--station>.mg-meldungen {
  margin-top:16px}
}
/* n18b, V18-05: Auf der Musterseite steht der Gefahrenbereich ohne Formular (ein div; Enter im Feld übermittelt dann nichts) und sieht aus wie das Formular. */
.mg-formular .mg-muster-form {
  display:grid;
  gap:16px;
  max-width:650px;
  margin:15px 0;
  min-width:0}
.mg-formular .mg-muster-form>.mg-button {
  justify-self:start}
.mg-body .mg-formular .mg-muster-form p {
  margin:0;
  font-size:var(--zs-text-sm)}
}

/* N8r */
/* N8r (Stufe n20, Bericht 71): nur die Musterseite, Bausteine aus N6 im Abschnitt „Bausteine der Managerkonsole“. Nur Tokens, Breakpoints in em. */
@layer pages {
/* Der Kopf der Konsole als Beispiel, gerahmt. Bis K2-6 stand die Sitzung schmal nur im Menü, und das Beispiel verschwand bis 42,5em (Regel unten); seit K2-6 zeigt es
   der Block K2-6 auch schmal (.mg-body .mg-muster-kopfzeile), wie die Konsole „Verlängern“ im Kopf (O1, Bericht 195). */
.mg-muster-kopfzeile {
  margin:0 0 12px;
  border:1px solid var(--zs-color-border);
  border-radius:8px}
/* Die Seitenleiste als Beispiel: nicht fest am Rand wie .mg-sidebar, so breit wie dort; bis 61,25em steht die Navigation wie in der Konsole im Menü. */
.mg-muster-leiste {
  max-width:242px;
  padding:20px;
  border-radius:8px;
  background:var(--zs-color-bg);
  color:var(--zs-color-text)}
.mg-muster-menue {
  margin:0 0 12px;
  border-radius:8px}
@media (max-width:42.5em) {
.mg-muster-kopfzeile {
  display:none}
}
@media (max-width:61.25em) {
.mg-muster-leiste {
  display:none}
}
}

/* Sitzungshinweis */
/* Sitzungshinweis (Luis 27.11.2026; Plan:478, :484; ADR 0015; Bericht 213, 5.4): der Dialog 2 Minuten vor dem Ende, modal über showModal() aus static/zs/sitzung.js.
   Nur Tokens, Breakpoints in em; max-height und overflow des Browsers bleiben (Bericht 208), damit ein langer Text bei 200 % Zoom im Dialog scrollt. Was hidden trägt,
   bleibt verborgen, auch wo .mg-button display setzt; ebenso „Verlängern“ im Kopf, das das Skript bei erreichter Höchstdauer verbirgt (wie der Server). */
@layer pages {
.mg-body .mg-sitzung-hinweis {
  width:min(32rem, calc(100vw - 2rem));
  max-width:min(32rem, calc(100vw - 2rem));
  padding:var(--zs-space-5);
  border:1px solid var(--zs-color-border-strong);
  border-radius:var(--zs-radius);
  background:var(--zs-color-surface);
  color:var(--zs-color-text)}
.mg-body .mg-sitzung-hinweis::backdrop {
  background:var(--zs-color-border-strong);
  opacity:0.6}
.mg-sitzung-hinweis h2 {
  margin:0 0 var(--zs-space-3);
  font-size:var(--zs-text-lg)}
.mg-sitzung-hinweis p {
  margin:0 0 var(--zs-space-3);
  overflow-wrap:anywhere}
.mg-sitzung-hinweis [role="timer"],.mg-sitzung-hinweis time {
  font-variant-numeric:tabular-nums;
  font-weight:600}
.mg-sitzung-hinweis-aktionen {
  display:flex;
  flex-wrap:wrap;
  gap:var(--zs-space-2);
  margin-top:var(--zs-space-4)}
.mg-body .mg-sitzung-hinweis[hidden],.mg-body .mg-sitzung-hinweis [hidden],.mg-body .mg-topbar .mg-sitzung-knopf[hidden] {
  display:none}
}
