.admin-root.nd-app.nd-app .nd-overview .nd-panel-body,
.admin-root.nd-app.nd-app .nd-overview .nd-flow,
.admin-root.nd-app.nd-app .nd-overview .nd-comparison,
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking {
  overflow: visible;
}
.admin-root.nd-app.nd-app .nd-overview .nd-flow,
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking,
.admin-root.nd-app.nd-app .nd-overview .nd-comparison {
  height: auto;
  gap: 4px;
}
.admin-root.nd-app.nd-app .nd-overview .nd-flow small { display: none; }
.admin-root.nd-app.nd-app .nd-overview .nd-flow-track { height: 4px; margin-top: 2px; }
.admin-root.nd-app.nd-app .nd-overview .nd-comparison > div { gap: 3px 6px; }
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking > button { padding-block: 2px; }
.admin-root.nd-app.nd-app .nd-overview .nd-inline-values { margin-block: 2px 4px; }
.admin-root.nd-app.nd-app .nd-overview .nd-quality-summary { margin-bottom: 3px; }
.admin-root.nd-app.nd-app .nd-scroll-bars { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.admin-root.nd-app.nd-app .nd-scroll-bars .nd-bars { height: auto; }
.admin-root.nd-app.nd-app .internal-device-list { max-height: min(36dvh, 320px); overflow: auto; overscroll-behavior: contain; }
.admin-root.nd-app.nd-app .nd-notification-anchor { position: relative; }
.admin-root.nd-app.nd-app .nd-notification-trigger { position: relative; }
.admin-root.nd-app.nd-app .nd-notification-trigger i {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: #f1b52a; box-shadow: 0 0 0 2px white;
}
.admin-root.nd-app.nd-app .nd-notification-popup {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: -40px;
  width: min(390px, calc(100vw - 24px)); max-height: min(68dvh, 500px);
  overflow: auto; overscroll-behavior: contain; padding: 12px;
  box-sizing: border-box; border: 1px solid #e5e5eb; border-radius: 14px;
  background: #fff; color: #363c45; box-shadow: 0 12px 35px #37323a29;
}
.admin-root.nd-app.nd-app .nd-notification-popup > header {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.admin-root.nd-app.nd-app .nd-settings-grid .nd-panel-body > button {
  background: #f0f0f5; border: 1px solid #dedee8; border-radius: 10px;
  min-height: 36px; padding: 7px 12px; color: #3c4049;
}
.admin-root.nd-app.nd-app .nd-settings-grid .nd-panel-body > button:is(:hover,:focus-visible):enabled {
  background: #e3e3ed; border-color: #c8c8d8; color: #20242c;
}
.admin-root.nd-app.nd-app .nd-scroll-bars { overflow: hidden; }
.admin-root.nd-app.nd-app .nd-scroll-bars > .nd-bars {
  overflow: auto; overscroll-behavior: contain; min-height: 0;
  justify-content: flex-start;
}
.admin-root.nd-app.nd-app .nd-scroll-bars .nd-bars > div { flex-shrink: 0; }
@media (max-width: 759px) {
  .admin-root.nd-app.nd-app .nd-overview { height: auto; grid-template-rows: auto auto; }
  .admin-root.nd-app.nd-app .nd-overview-panels { grid-auto-rows: minmax(150px, auto); grid-template-rows: none; }
  .admin-root.nd-app.nd-app .nd-stage:has(.nd-overview) { overflow-y: auto; }
  .admin-root.nd-app.nd-app .nd-notification-anchor .nd-notification-trigger { width: 30px; min-height: 30px; height: 30px; padding: 0; }
}
/* Balance content inside the available area below each card title. */
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking,.nd-quality-summary)) > .nd-panel-body {
  justify-content: center;
  padding-block: 5px;
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison {
  overflow: visible;
  align-content: center;
  padding: 0;
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison > div {
  grid-template-columns: minmax(0,1fr) 4em 5em;
  gap: 2px 6px;
  line-height: 1.15;
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison :is(small,strong,.nd-comparison-labels span:not(:first-child)) {
  display: block;
  grid-column: auto;
  text-align: right;
}
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking { justify-content: center; }
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking > button { flex: none; }
.admin-root.nd-app.nd-app .nd-notification-popup > header { align-items: flex-start; }
.admin-root.nd-app.nd-app .nd-notification-actions { display: grid; gap: 6px; justify-items: end; margin-left: auto; }
.admin-root.nd-app.nd-app .nd-notification-back,
.admin-root.nd-app.nd-app .nd-notification-back:hover,
.admin-root.nd-app.nd-app .nd-settings-grid .nd-panel-body > button,
.admin-root.nd-app.nd-app .internal-devices button {
  background: #f7f6fa; border-color: #dadbe2; color: #3c4049;
}
.admin-root.nd-app.nd-app .nd-settings-grid .nd-panel-body > button:is(:hover,:focus-visible):enabled,
.admin-root.nd-app.nd-app .internal-devices button:is(:hover,:focus-visible):enabled {
  background: #eeedf3; border-color: #d2d2dc; color: #3c4049;
}
@media(max-width:759px){
  .admin-root.nd-app.nd-app .nd-overview .nd-comparison > div { grid-template-columns: minmax(0,1fr) 3em 4em; }
}
/* Keep figures inside the metric row, independently of browser zoom. */
@media (min-width: 760px) {
  .admin-root.nd-app.nd-app .nd-overview .nd-home-metrics > .nd-metric {
    display: grid; grid-template-rows: minmax(22px,auto) auto;
    align-content: center; gap: 2px; padding: 4px 8px;
  }
  .admin-root.nd-app.nd-app .nd-overview .nd-metric strong {
    line-height: 1.1; font-size: clamp(16px,3dvh,24px); margin: 0;
  }
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison {
  overflow: visible; grid-auto-rows: max-content; row-gap: clamp(3px,1dvh,8px);
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison .nd-compare-track {
  display: block; width: 100%; grid-column: 1/-1;
}
.admin-root.nd-app.nd-app .nd-overview .nd-flow > div { width: 100%; flex: none; }
.admin-root.nd-app.nd-app .nd-overview .nd-flow-track { width: 100%; }
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-comparison,.nd-flow,.nd-game-ranking)) > .nd-panel-body {
  justify-content: center; padding-block: 0;
}
@media(max-height: 750px) and (min-width: 760px) {
  .admin-root.nd-app.nd-app .nd-overview .nd-panel { padding-block: 8px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-panel > header { margin-bottom: 5px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-flow { gap: 4px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-flow strong { font-size: 13px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-compare-track { height: 3px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-comparison strong { font-size: 13px; }
}
@media(max-height: 750px) and (min-width: 760px) {
  .admin-root.nd-app.nd-app:has(.nd-overview) { row-gap: 7px; }
  .admin-root.nd-app.nd-app .nd-overview { gap: 8px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-panel:has(.nd-quality-summary) .nd-inline-values { margin-bottom: 2px; }
}
@media(min-width:760px){
  .admin-root.nd-app.nd-app .nd-stage:has(.nd-overview) { overflow: visible; }
}
/* Match the padding above titles with the breathing room below the last row. */
.admin-root.nd-app.nd-app .nd-overview .nd-panel {
  --overview-inset: clamp(9px, 1.55dvh, 15px);
  padding-block: var(--overview-inset);
}
.admin-root.nd-app.nd-app .nd-overview .nd-panel > header { flex-shrink: 0; }
.admin-root.nd-app.nd-app .nd-overview .nd-panel > .nd-panel-body {
  min-height: 0;
}
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) > .nd-panel-body {
  justify-content: flex-start;
}
.admin-root.nd-app.nd-app .nd-overview :is(.nd-comparison,.nd-game-ranking,.nd-flow) {
  flex: 0 0 auto;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  gap: clamp(2px, .45dvh, 5px);
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison {
  align-content: start;
  grid-auto-rows: max-content;
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison > div {
  line-height: 1.1;
  gap: 2px 6px;
}
.admin-root.nd-app.nd-app .nd-overview .nd-comparison strong { font-size: 13px; line-height: 1.1; }
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking > button {
  min-height: 0 !important;
  padding: 0 !important;
  gap: 2px 8px;
}
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking .nd-game-symbol { width: 21px; height: 21px; }
.admin-root.nd-app.nd-app .nd-overview .nd-game-ranking .nd-game-symbol svg { width: 14px; height: 14px; }
.admin-root.nd-app.nd-app .nd-overview .nd-flow > div > div:first-child { line-height: 1.1; }
.admin-root.nd-app.nd-app .nd-overview .nd-flow strong { font-size: 13px; line-height: 1.1; }
.admin-root.nd-app.nd-app .nd-overview .nd-flow-track { margin-top: 2px; }
.admin-root.nd-app.nd-app .nd-overview :is(.nd-rank-track,.nd-compare-track,.nd-flow-track) { height: 3px; }
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) {
  display: grid;
  align-content: center;
  grid-template-rows: max-content max-content;
  row-gap: clamp(4px, .75dvh, 8px);
}
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) > header {
  margin: 0; min-height: 0;
}
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) > header h3 {
  margin: 0;
}
.admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) > .nd-panel-body {
  overflow: visible !important;
}
@media(max-height: 750px) and (min-width: 760px) {
  .admin-root.nd-app.nd-app:has(.nd-overview) { grid-template-rows: 42px 34px minmax(0,1fr) 66px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-panel:has(:is(.nd-flow,.nd-comparison,.nd-game-ranking)) {
    row-gap: 4px;
  }
  .admin-root.nd-app.nd-app .nd-overview .nd-flow { gap: 2px; }
  .admin-root.nd-app.nd-app .nd-overview .nd-flow-track { margin-top: 1px; height: 3px; }
}
