:root {
  --bg: #f3faf6;
  --bg-2: #e7f5ec;
  --panel: #ffffff;
  --panel-2: #f4fbf7;
  --line: rgba(35, 110, 70, 0.14);
  --ink: #1a3224;
  --muted: #5a7464;
  --lime: #4caf1f;
  --lime-dim: rgba(76, 175, 31, 0.14);
  --amber: #f0a01a;
  --amber-dim: rgba(240, 160, 26, 0.16);
  --rose: #e85a48;
  --rose-dim: rgba(232, 90, 72, 0.14);
  --ok: #2db86a;
  --shadow: 0 14px 36px rgba(40, 100, 60, 0.1);
  --radius: 18px;
  --edge: #3f9e1a;
  --floor: #eef8f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 196, 80, 0.28), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(120, 220, 160, 0.32), transparent 50%),
    radial-gradient(600px 320px at 50% 100%, rgba(255, 170, 120, 0.18), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 14px 20px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.app-shell.wide .topbar {
  margin-bottom: 6px;
}

.view-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.view-fill h1 {
  font-size: 1.05rem;
}

.view-fill .lede {
  display: none;
}

.view-fill .toolbar {
  margin-bottom: 8px;
  padding: 8px 12px;
}

.view-fill #layout-result {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #8fdc3a 40%, #4caf1f 100%);
  box-shadow: 0 0 0 4px var(--lime-dim);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 7px 9px 16px;
  border: 2px solid #1a3224;
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.82rem;
}

.nav a.active,
.nav a:hover {
  color: #14301f;
  background: var(--lime);
}

.topbar-note {
  display: none;
}

.view h1 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 8px;
  color: var(--muted);
  max-width: 80ch;
  font-size: 0.88rem;
}

.panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.toolbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.field label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--lime);
}

.combo {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.combo-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}

.combo-input {
  width: 100%;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.combo.is-open .combo-input {
  border-color: var(--lime);
  background-color: #ffffff;
}

.combo-list {
  position: fixed;
  z-index: 70;
  max-height: 240px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--lime);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.combo-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
}

.combo-item:last-child {
  border-bottom: 0;
}

.combo-item:hover,
.combo-item.is-active {
  background: var(--lime-dim);
}

.combo-item.is-selected {
  color: var(--lime);
}

.combo-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 650;
  cursor: pointer;
  background: var(--lime);
  color: #14301f;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.station.has-signal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.station.has-signal .station-copy {
  min-width: 0;
  flex: 1;
}

.signal {
  flex: 0 0 16px;
  width: 16px;
  padding: 4px 3px;
  border-radius: 9px;
  background: #e8f2ea;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.signal .lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d4c9;
}

.signal.green .lamp.green {
  background: #2db86a;
}

.signal.yellow .lamp.yellow {
  background: #f0a01a;
}

.signal.red .lamp.red {
  background: #e85a48;
}

.signal.off .lamp {
  opacity: 0.35;
}

.publish-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 6px;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--rose-dim);
  color: var(--rose);
}

.btn.small {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.85rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.metrics.metrics-line {
  grid-template-columns: repeat(3, 1fr);
}

.layout-stage {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.view-fill .layout-stage {
  flex: 1;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.metrics.metrics-col {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.layout-main {
  min-width: 0;
}

.view-fill .layout-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.view-fill .layout-main .callout,
.view-fill .layout-main .legend {
  flex: 0 0 auto;
}

.view-fill .legend {
  margin-top: 6px;
}

.metric {
  padding: 8px 10px;
  background: linear-gradient(165deg, #ffffff 0%, #eef9f1 100%);
  border: 1px solid rgba(76, 175, 31, 0.22);
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(40, 100, 60, 0.06);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.04em;
  color: #163526;
}

.metric.warn {
  border-color: rgba(240, 160, 26, 0.35);
  border-left-color: var(--amber);
  background: linear-gradient(165deg, #fffdf8 0%, #fff3de 100%);
}

.metric.bad {
  border-color: rgba(232, 90, 72, 0.35);
  border-left-color: var(--rose);
  background: linear-gradient(165deg, #fffafa 0%, #ffe8e4 100%);
}

.metric.good {
  border-color: rgba(45, 184, 106, 0.35);
  border-left-color: var(--ok);
  background: linear-gradient(165deg, #f7fffa 0%, #e3f8ec 100%);
}

.callout {
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0 0 8px;
  border: 1px solid rgba(76, 175, 31, 0.2);
  border-left: 4px solid var(--lime);
  background: linear-gradient(90deg, #f0fae8 0%, #ffffff 55%);
  font-size: 0.86rem;
}

.callout.bad {
  background: linear-gradient(90deg, #ffe8e4 0%, #fff8f7 55%);
  border-color: rgba(232, 90, 72, 0.3);
  border-left-color: var(--rose);
}

.callout.warn {
  background: linear-gradient(90deg, #fff3de 0%, #fffbf5 55%);
  border-color: rgba(240, 160, 26, 0.35);
  border-left-color: var(--amber);
}

.callout.good {
  background: linear-gradient(90deg, #e3f8ec 0%, #f7fffa 55%);
  border-color: rgba(45, 184, 106, 0.28);
  border-left-color: var(--ok);
}

.floor-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(76, 175, 31, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 175, 31, 0.07) 1px, transparent 1px),
    var(--floor);
  background-size: 24px 24px;
}

.view-fill .floor-wrap-fill {
  flex: 1;
  min-height: 0;
}

.floor-sizer {
  position: relative;
  flex: 0 0 auto;
}

.floor {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  isolation: isolate;
}

.floor-edges,
.floor-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.floor-edges {
  z-index: 0;
  pointer-events: none;
}

.floor-nodes {
  z-index: 1;
}

.floor-edges svg,
.floor svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.station-block {
  position: absolute;
  z-index: 2;
}

.station-block.is-clickable {
  cursor: pointer;
}

.station-block.is-clickable:hover .station,
.station-block.is-selected .station {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-dim);
}

.station {
  position: relative;
  width: 100%;
  height: 70px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(165deg, #f4fcec 0%, #e5f6d8 100%);
  border: 1px solid rgba(76, 175, 31, 0.28);
  box-shadow: 0 6px 14px rgba(40, 100, 60, 0.08);
  overflow: hidden;
}

.hw-picker,
.hw-label {
  margin-top: 3px;
  height: 24px;
}

.hw-toggle,
.hw-label {
  display: block;
  width: 100%;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  box-sizing: border-box;
  text-align: left;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 6px;
  font-size: 0.62rem;
  line-height: 22px;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-label {
  cursor: default;
  color: var(--muted);
}

.hw-toggle.empty {
  color: var(--muted);
  font-family: Nunito, "Segoe UI", sans-serif;
}

.hw-menu {
  position: fixed;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--lime);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hw-menu input {
  margin: 8px;
  width: calc(100% - 16px);
}

.hw-results {
  overflow: auto;
  max-height: 260px;
}

.hw-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
}

.hw-item:hover,
.hw-item.active {
  background: var(--lime-dim);
}

.hw-item b {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.hw-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.72rem;
}

.hw-item .used {
  color: var(--amber);
}

.hw-group {
  padding: 8px 12px 4px;
  color: var(--lime);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.station b {
  display: block;
  font-size: 0.78rem;
}

.station small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.station.bottleneck {
  border-color: var(--rose);
  background: #fff0ed;
  box-shadow: 0 0 0 3px var(--rose-dim);
}

.station.extra {
  border-style: dashed;
  background: linear-gradient(165deg, #f7fef0 0%, #eef9e4 100%);
}

.station.ok-rate {
  border-color: var(--ok);
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 10px 2px 0;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
}

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.wf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 10px;
}

.product-bar {
  padding: 10px 12px 12px;
  margin-bottom: 0;
}

.product-bar .toolbar {
  margin-bottom: 8px;
  padding: 0;
}

.category-bar {
  margin-bottom: 0;
  align-content: start;
}

.category-bar .wf-categories {
  flex: 1 1 100%;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-chips .chip.product-chip {
  cursor: pointer;
}

.product-chips .chip.product-chip.active {
  border-style: solid;
  border-color: var(--lime);
  color: #163526;
  background: var(--lime-dim);
  font-weight: 650;
}

.product-chips .chip.product-chip:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.product-chips .chip.product-chip.active:hover {
  color: #163526;
}

.product-list {
  padding: 10px;
}

.product-list button.row {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.product-list button.row.active {
  background: var(--lime-dim);
  color: var(--lime);
}

.editor {
  padding: 16px;
}

.station-row {
  display: grid;
  grid-template-columns: 36px 1.4fr 90px 90px 1.1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.seq {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  text-align: center;
}

.catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.wf-categories {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wf-categories .chip {
  cursor: default;
}

.wf-categories .chip:hover {
  border-color: var(--line);
  color: var(--ink);
}

.chip {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.82rem;
}

.chip:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(76, 175, 31, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(40, 100, 60, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.filter-row th {
  padding: 6px 8px 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  vertical-align: top;
  background: #eef6f0;
}

/* Zebra striping for data rows only (thead / .filter-row excluded) */
.table-wrap tbody tr:nth-child(even):not(.bottleneck):not(.emp-detail-row) td {
  background: #eef9f1;
}

.col-filter {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

tr.bottleneck td {
  background: var(--rose-dim);
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: #d9e8de;
  overflow: hidden;
  min-width: 80px;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--lime);
}

.bar.bad > span {
  background: var(--rose);
}

.bar.warn > span {
  background: var(--amber);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.loading-shell {
  padding: 28px 20px;
  font-weight: 600;
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--lime);
  padding: 12px 14px;
  border-radius: 12px;
  z-index: 20;
  box-shadow: var(--shadow);
}

.live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 0.85rem;
}

.pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(45, 184, 106, 0.18);
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.worker-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  overflow: auto;
  z-index: 30;
  padding: 16px 16px 28px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 36px rgba(40, 100, 60, 0.12);
}

.worker-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.worker-drawer h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.worker-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 31, 0.22);
  border-left: 4px solid var(--lime);
  background: linear-gradient(165deg, #ffffff 0%, #eef9f1 100%);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(40, 100, 60, 0.06);
}

.worker-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.drawer-sub {
  font-size: 0.92rem;
  margin: 16px 0 8px;
}

.line-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--lime);
  background: linear-gradient(165deg, #ffffff 0%, #f0fae8 100%);
}

.line-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.line-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.line-card .notes {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.line-meta b {
  color: var(--ink);
  font-weight: 600;
}

.line-card .assign-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.chart-panel {
  padding: 14px;
  margin-bottom: 12px;
  border-left: 4px solid #3a9fd9;
  background: linear-gradient(165deg, #ffffff 0%, #eef6fc 100%);
}

.chart-panel h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #1a4a66;
}

.kpi-chart {
  width: 100%;
  height: 180px;
  display: block;
}

.kpi-chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.muted-tag {
  color: var(--muted);
  font-size: 0.78rem;
}

.emp-table td strong {
  display: block;
}

.emp-table td .muted-tag {
  display: block;
  margin-top: 2px;
}

.emp-table .emp-actions {
  white-space: nowrap;
}

.emp-table tr.is-inactive td {
  opacity: 0.62;
}

.emp-detail-row td {
  background: #eef6f0;
  padding: 12px;
}

.emp-kpi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.emp-kpi-chips .chip {
  cursor: default;
}

.emp-kpi-chips .chip.is-primary {
  border-style: solid;
  border-color: var(--lime);
  color: var(--lime);
}

.emp-kpi-chips .chip:hover {
  border-color: var(--line);
  color: var(--ink);
}

.emp-kpi-chips .chip.is-primary:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.emp-kpi-table {
  margin-top: 8px;
}

.emp-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  margin-bottom: 10px;
}

.emp-filter .muted-tag,
#emp-filter .muted-tag {
  margin: 0 0 6px;
  align-self: end;
}

@media (max-width: 980px) {
  .topbar,
  .split,
  .wf-top,
  .metrics,
  .layout-stage,
  .station-row {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow: auto;
  }

  .topbar-note {
    display: none;
  }
}
