/* Monitor production dashboard: compact, wide desktop layout for the US App Store. */
:root {
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --line: #e7ebf2;
  --line-strong: #d1d9e6;
  --ink: #111827;
  --sub: #667085;
  --faint: #98a2b3;
  --blue: #2259e5;
  --blue-light: #3f8cff;
  --blue-dark: #154fc4;
  --nav: #2259e5;
  --nav-dark: #1749bd;
  --green: #19a974;
  --orange: #f5a524;
  --red: #e5484d;
  --purple: #7659e6;
  --radius: 4px;
  --rail-width: 70px;
  --header-height: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; min-height: 100%; }
html { background: var(--canvas); }
body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid #84adff;
  outline-offset: 2px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Application shell */
.shell { min-width: 0; min-height: 100vh; background: var(--canvas); }
.rail {
  position: fixed;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-width);
  min-width: 0;
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--nav), var(--nav-dark));
}
.logo {
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.17);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.rail-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.nav-link {
  width: 100%;
  min-height: 68px;
  padding: 8px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,.82);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}
.nav-link:hover { color: #fff; background: rgba(0,24,111,.16); text-decoration: none; }
.nav-link.active, .nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(0,24,111,.24);
  box-shadow: inset 3px 0 0 rgba(255,255,255,.94);
}
.nav-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: var(--rail-width);
  height: var(--header-height);
  min-width: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-brand {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
}
.top-brand small { color: var(--sub); font-size: 12px; font-weight: 500; }
.global-context { min-width: 0; display: flex; align-items: center; gap: 10px; }
.select-field {
  min-width: 160px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #cbd5e3;
  border-radius: var(--radius);
}
.select-field label, .select-field > span { flex: none; color: var(--sub); font-size: 12px; }
.select-field select {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 22px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 600;
}
.header-meta {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--sub);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main, .main {
  width: auto;
  min-width: 0;
  max-width: none;
  margin-left: var(--rail-width);
  padding: calc(var(--header-height) + 16px) 16px 40px;
}
main > section, .main > section { min-width: 0; }
.dashboard-row { min-width: 0; margin-top: 16px; }
.page-alert {
  margin-bottom: 12px;
  padding: 9px 12px;
  color: #9b353a;
  background: #fff1f1;
  border: 1px solid #f2c6c8;
  border-radius: var(--radius);
  font-size: 12px;
}

.snapshot-note { margin: 10px 0 0; color: var(--sub); font-size: 12px; line-height: 1.7; }

/* KPI banner */
.hero {
  min-width: 0;
  min-height: 186px;
  display: grid;
  grid-template-columns: 232px repeat(4, minmax(0, 1fr));
  overflow: hidden;
  color: #fff;
  background: linear-gradient(108deg, #0b57db 0%, #176bec 46%, var(--blue-light) 100%);
  border-radius: var(--radius);
}
.metric {
  position: relative;
  min-width: 0;
  min-height: 186px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: inherit;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.22);
  text-align: center;
}
button.metric:hover { background: rgba(255,255,255,.08); }
button.metric:active { background: rgba(0,41,137,.18); }
.metric:first-child, .metric.total {
  align-items: flex-start;
  padding-left: 38px;
  background: rgba(0,36,136,.22);
  border-left: 0;
  text-align: left;
}
.metric[aria-disabled="true"], .metric.capability { cursor: help; }
.metric-value {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 14px; font-weight: 600; opacity: .96; }
.metric-note {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  opacity: .88;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-delta, .metric-scope {
  margin-top: 4px;
  padding: 2px 8px;
  color: #fff;
  background: rgba(255,255,255,.19);
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.metric-delta.up { background: #15a878; }
.metric-delta.down { background: #ef5b61; }
.metric-delta.neutral { background: rgba(255,255,255,.19); }
.metric-scope { margin-top: 6px; color: #174993; background: #fff; font-weight: 650; }

/* Charts */
.grid-two {
  min-width: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  min-width: 0;
  min-height: 452px;
  padding: 18px 24px 16px;
  background: var(--surface);
  border: 1px solid #edf0f5;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(21,45,85,.025);
}
.panel.full { grid-column: 1 / -1; }
.panel.category-panel, .panel.panel-category { min-height: 404px; }
.panel.category-combined, .panel.category-combined-panel, .panel.panel-combined { min-height: 822px; }
.panel.preorder-panel { min-height: 452px; }
.panel-head {
  min-width: 0;
  min-height: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-head h1, .panel-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.panel-head > div { min-width: 0; }
.panel-head p {
  margin: 2px 0 0;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.45;
}
.panel-head .detail, .panel-head .more, .detail-button {
  flex: none;
  padding: 3px 2px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 13px;
  white-space: nowrap;
}
.panel-head .detail:hover, .panel-head .more:hover, .detail-button:hover { color: var(--blue-dark); text-decoration: underline; }
.chart-controls {
  min-width: 0;
  min-height: 36px;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.chart-controls .custom-range { flex: 1 0 100%; margin-top: 0; }
.chart-shell, .chart {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 322px;
  overflow: hidden;
}
.chart svg, .chart-shell svg {
  width: 100%;
  height: 322px;
  display: block;
}
.chart .grid, .chart-shell .grid { stroke: #e9edf3; stroke-width: 1; }
.chart .axis, .chart-shell .axis { fill: #7a8495; font-size: 11px; }
.chart .series, .chart-shell .series { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-grid-line { stroke: #e9edf3; stroke-width: 1; }
.chart-axis { fill: #7a8495; font-size: 11px; }
.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart-capture { fill: transparent; pointer-events: all; }
.chart-guide line { stroke: #9ba8ba; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-guide circle { stroke-width: 2; vector-effect: non-scaling-stroke; }
.bar-mark { cursor: default; transition: opacity .12s ease; }
.bar-mark:hover, .bar-mark:focus { opacity: .78; outline: none; }
.chart .bar, .chart-shell .bar { transition: opacity .12s ease; }
.chart .bar:hover, .chart-shell .bar:hover { opacity: .78; }
.chart .tip, .chart-shell .tip {
  position: absolute;
  z-index: 5;
  min-width: 150px;
  max-width: 240px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(18,31,55,.92);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(18,31,55,.2);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
}
.chart .tip b, .chart-shell .tip b { display: block; margin-bottom: 3px; }
.chart .tip i, .chart-shell .tip i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
}
.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 156px;
  max-width: 250px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(18,31,55,.92);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(18,31,55,.2);
  transform: translate(-50%, -102%);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
}
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { margin-bottom: 3px; }
.chart-tooltip i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
}
.legend {
  min-height: 28px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: #525e70;
  font-size: 12px;
}
.legend button {
  padding: 3px 2px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
}
.legend button.off, .legend button[aria-pressed="false"] { opacity: .38; text-decoration: line-through; }
.legend i, .legend-swatch {
  width: 16px;
  height: 3px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

.segmented, .tabs {
  max-width: 100%;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: var(--radius);
}
.segmented button, .tabs button {
  flex: none;
  min-height: 34px;
  padding: 5px 12px;
  color: #344054;
  background: #fff;
  border: 0;
  border-right: 1px solid #e5e8ee;
  font-size: 13px;
}
.segmented button:last-child, .tabs button:last-child { border-right: 0; }
.segmented button.active, .tabs button.active,
.segmented button[aria-selected="true"], .tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--blue);
}
.segmented button:disabled, .tabs button:disabled { opacity: .5; cursor: not-allowed; }
.custom-range {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sub);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
}
.custom-range input {
  height: 30px;
  min-width: 138px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #ccd5e2;
  border-radius: 3px;
}

.range-window {
  min-width: 0;
  margin: 3px 0 2px;
  display: flex;
  flex-direction: column;
  color: var(--sub);
  font-size: 11px;
}
.range-window > .chart-shell { flex: none; }
.range-control {
  min-width: 0;
  margin: 0 34px 0 50px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  font-size: 11px;
}
.dual-range {
  position: relative;
  min-width: 0;
  height: 28px;
  --from: 0%;
  --to: 45%;
}
.dual-range::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 5px;
  background: #edf1f7;
  border: 1px solid #d3dbe8;
  border-radius: 2px;
}
.dual-range::after {
  content: "";
  position: absolute;
  top: 11px;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  height: 7px;
  background: #b7c9eb;
  border: 1px solid #90abd9;
  border-radius: 2px;
}
.dual-range input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.dual-range input::-webkit-slider-thumb {
  width: 11px;
  height: 22px;
  appearance: none;
  background: #fff;
  border: 1px solid #7897c9;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(20,47,90,.18);
  cursor: ew-resize;
  pointer-events: auto;
}
.dual-range input::-moz-range-thumb {
  width: 11px;
  height: 22px;
  background: #fff;
  border: 1px solid #7897c9;
  border-radius: 2px;
  cursor: ew-resize;
  pointer-events: auto;
}
.dual-range input::-moz-range-track { background: transparent; }
.range-window output, .range-control output { min-width: 94px; text-align: right; }
.range-control .dual-range { width: 100%; }

.category-chart-block {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.category-chart-block + .category-chart-block { margin-top: 18px; }
.category-chart-block h3 {
  margin: 0 0 2px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.category-combined-panel .chart-shell { min-height: 260px; }
.category-combined-panel .chart-shell svg { height: 260px; }
.aggregate-trend {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compact-chart, .compact-chart.chart-shell { min-height: 220px; }
.compact-chart svg, .compact-chart.chart-shell svg { height: 220px; }

/* Loading, empty and error states */
.state-block {
  min-height: 310px;
  padding: 24px;
  display: grid;
  place-items: center;
  color: var(--sub);
  text-align: center;
}
.state-block strong { display: block; margin-bottom: 5px; color: #344054; }
.state-block p { margin: 0 0 10px; font-size: 12px; }
.hero > .state-block { grid-column: 1 / -1; min-height: 186px; color: rgba(255,255,255,.88); }
.hero > .state-block strong { color: #fff; }
.hero > .state-block p { color: rgba(255,255,255,.8); }
.hero > .state-block .action-button { color: #154fc4; background: #fff; border-color: #fff; }
.skeleton {
  width: min(520px, 88%);
  height: 210px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  border-bottom: 1px solid #e0e5ed;
  border-left: 1px solid #e0e5ed;
}
.skeleton > i, .skeleton > span {
  flex: 1;
  min-width: 8px;
  background: linear-gradient(90deg, #eef1f5, #f9fafc, #eef1f5);
  background-size: 200% 100%;
  border-radius: 2px 2px 0 0;
  animation: shimmer 1.25s infinite linear;
}
.skeleton-lines {
  width: min(520px, 88%);
  height: 210px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  border-bottom: 1px solid #e0e5ed;
  border-left: 1px solid #e0e5ed;
}
.skeleton-lines > i {
  flex: 1;
  min-width: 8px;
  background: linear-gradient(90deg, #eef1f5, #f9fafc, #eef1f5);
  background-size: 200% 100%;
  border-radius: 2px 2px 0 0;
  animation: shimmer 1.25s infinite linear;
}
.skeleton-lines > i:nth-child(1) { height: 46%; }
.skeleton-lines > i:nth-child(2) { height: 70%; }
.skeleton-lines > i:nth-child(3) { height: 54%; }
.skeleton-lines > i:nth-child(4) { height: 84%; }
.skeleton-lines > i:nth-child(5) { height: 62%; }
.skeleton-lines > i:nth-child(6) { height: 74%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty, .error { color: var(--sub); text-align: center; }
.state-block.empty, .state-block.error, .state-block.empty-state, .state-block.error-state { min-height: 310px; }
.state-block.error-state { color: #a4383c; }
.error { color: #a4383c; }
.error .action-button { margin-top: 10px; }
.error-text { min-height: 18px; color: var(--red); font-size: 12px; }

/* Aggregate pages */
.aggregate-head {
  min-width: 0;
  min-height: 72px;
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aggregate-head h1 { margin: 0; font-size: 19px; font-weight: 650; }
.aggregate-head p { margin: 3px 0 0; color: var(--sub); font-size: 12px; }
.aggregate-head > div:first-child { min-width: 0; }
.aggregate-head > div:first-child:has(> .back-button) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
}
.aggregate-head > div:first-child .back-button { grid-row: 1 / 3; align-self: center; }
.aggregate-head > div:first-child h1,
.aggregate-head > div:first-child p { grid-column: 2; }
.aggregate-title { min-width: 0; }
.aggregate-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.back-button, .action-button {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 3px;
  white-space: nowrap;
}
.back-button {
  flex: none;
  color: #344054;
  background: #fff;
  border: 1px solid #cfd7e4;
}
.action-button {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
}
.action-button.primary { color: #fff; background: var(--blue); }
.action-button.quiet { color: #475467; border-color: #d1d9e6; }
.action-button:hover, .back-button:hover { filter: brightness(.97); text-decoration: none; }
.filter-row {
  min-width: 0;
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field > label, .field > span:first-child { color: var(--sub); font-size: 12px; }
.field input, .field select {
  min-width: 140px;
  height: 34px;
  padding: 4px 9px;
  background: #fff;
  border: 1px solid #ccd5e2;
  border-radius: 3px;
}
.field .tabs { min-width: 0; }
.filter-separator { align-self: flex-end; padding-bottom: 7px; color: var(--sub); font-size: 12px; }
.table-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.result-bar {
  min-height: 48px;
  margin-top: 12px;
  padding: 8px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sub);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.result-bar strong { color: var(--ink); font-size: 15px; font-weight: 650; }
.table-head {
  min-height: 62px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.result-count { font-size: 16px; font-weight: 650; }
.result-count small { margin-left: 5px; color: var(--sub); font-size: 12px; font-weight: 400; }
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.data-table, table.grid {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
}
.data-table th, table.grid th {
  height: 42px;
  padding: 8px 12px;
  color: #6a7485;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.data-table td, table.grid td {
  height: 64px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr:hover td, table.grid tbody tr:hover td { background: #f8fbff; }
.data-table tbody tr:last-child td, table.grid tbody tr:last-child td { border-bottom: 0; }
.data-table .num, table.grid .num { text-align: right; }
.data-table .number, table.grid .number, .number { text-align: right; font-variant-numeric: tabular-nums; }
.app-cell {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-icon {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #2468e8;
  background: #dbe7fb;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
}
.app-icon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.app-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.app-icon.image-failed .app-icon-image { display: none; }
.app-name {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #202939;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-cell .developer {
  display: block;
  max-width: 230px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-copy { min-width: 0; }
.app-copy strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #202939;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-copy small {
  display: block;
  max-width: 230px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  color: #526071;
  background: #eef2f7;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.tag.blue { color: #1f55ba; background: #eaf2ff; }
.tag.green, .tag.live, .tag.final, .tag.new { color: #167a55; background: #e7f7ef; }
.tag.orange, .tag.preorder, .tag.relisted, .tag.partial { color: #955b0d; background: #fff4df; }
.tag.red, .tag.delisted, .tag.failed { color: #b3383d; background: #fdebec; }
.tag.unknown, .tag.absent, .tag.suspect { color: #526071; background: #eef2f7; }
.tag.status-live, .tag.confirmed, .tag.run-final { color: #167a55; background: #e7f7ef; }
.tag.status-preorder, .tag.event-relisted, .tag.pending,
.tag.run-probing, .tag.run-confirming, .tag.run-aggregating,
.tag.run-aggregating1, .tag.run-aggregating2, .tag.run-summarizing {
  color: #955b0d;
  background: #fff4df;
}
.tag.status-delisted, .tag.event-delisted, .tag.run-failed { color: #b3383d; background: #fdebec; }
.tag.event-new_listed { color: #167a55; background: #e7f7ef; }
.tag.event-discovered { color: #5f46b9; background: #f0edff; }
.tag.status-suspect, .tag.status-absent, .tag.status-unknown, .tag.run-partial { color: #526071; background: #eef2f7; }
.pager {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: auto;
  color: var(--sub);
  border-top: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.pager button, .pager input {
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #d6dce6;
  border-radius: 3px;
}
.pager button.active, .pager button[aria-current="page"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.pager button:disabled { opacity: .38; }
.pager input { width: 48px; }

.capability-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  color: #6e4f11;
  background: #fff9e8;
  border: 1px solid #efd997;
  border-radius: var(--radius);
  font-size: 12px;
}
.capability-note strong { color: #563b08; }
.scope-note {
  margin: 14px 0 0;
  padding: 9px 12px;
  color: #566274;
  background: #eef4ff;
  border: 1px solid #d8e5fb;
  border-radius: var(--radius);
  font-size: 12px;
}

/* Scan records */
.runs { min-width: 0; }
.runs .panel { min-height: 0; }
.runs-head {
  min-height: 54px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.runs-head h1, .runs-head h2 { margin: 0; font-size: 17px; font-weight: 650; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 28px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 15px;
  color: #fff;
  background: rgba(18,31,55,.94);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18,31,55,.24);
  transform: translateX(-50%);
  font-size: 13px;
}

@media (max-width: 840px) {
  :root { --header-height: 60px; }

  .top {
    left: 0;
    padding: 10px 12px;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .top-brand { flex: 1; }
  .header-meta { flex: none; overflow: visible; }
  .global-context { flex: 1; }
  .select-field { flex: 1; min-width: 0; }

  .rail {
    top: var(--header-height);
    right: 0;
    bottom: auto;
    width: 100%;
    height: 58px;
    padding: 0 6px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .logo { width: 38px; height: 38px; margin: 0 6px 0 0; }
  .rail-nav { width: auto; min-width: max-content; flex: 1; flex-direction: row; }
  .nav-link { width: auto; min-width: 72px; min-height: 58px; padding: 5px 8px; flex-direction: row; }
  .nav-link.active, .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(255,255,255,.94); }

  main, .main {
    margin-left: 0;
    padding: calc(var(--header-height) + 58px + 12px) 12px 32px;
  }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 112px; padding: 16px 10px; }
  .metric:first-child, .metric.total {
    grid-column: span 2;
    min-height: 126px;
    align-items: center;
    padding-left: 10px;
    text-align: center;
  }
  .metric:nth-child(even) { border-left: 0; }

  .grid-two { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .panel.full { grid-column: 1; }
  .panel { min-height: 430px; padding: 14px 12px 12px; }
  .range-control { margin-right: 10px; margin-left: 10px; }

  .aggregate-head { align-items: flex-start; flex-wrap: wrap; }
  .aggregate-actions { width: 100%; margin-left: 0; }
  .filter-row { align-items: flex-start; }
  .field { flex: 1 1 200px; }
  .table-head, .runs-head { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  :root { --header-height: 112px; }

  .top {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    align-items: start;
  }
  .top-brand { width: 100%; flex: none; }
  .top-brand small { display: none; }
  .global-context { flex-direction: column; align-items: stretch; }
  .select-field { width: 100%; min-height: 38px; }
  .header-meta {
    max-width: 96px;
    margin-left: 0;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    overflow: visible;
    white-space: normal;
    text-align: right;
  }
  .header-meta #asof-top { font-size: 10px; line-height: 1.25; }

  .nav-link { min-width: 66px; font-size: 10px; }
  .nav-link svg { display: none; }

  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 108px; padding: 14px 8px; }
  .metric:first-child, .metric.total { min-height: 122px; }
  .metric-value { font-size: 24px; }
  .metric-label { font-size: 12px; }

  .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .chart-controls { justify-content: flex-start; }
  .chart-shell, .chart { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .chart svg, .chart-shell svg { width: 560px; min-width: 560px; }
  .segmented, .tabs { max-width: 100%; overflow-x: auto; }
  .segmented button, .tabs button { min-height: 40px; }
  .custom-range { align-items: stretch; flex-direction: column; }
  .custom-range input, .custom-range .action-button { width: 100%; min-height: 42px; }

  .aggregate-head { padding: 12px; }
  .back-button, .action-button { min-height: 42px; }
  .aggregate-actions { flex-wrap: wrap; }
  .field { flex-basis: 100%; }
  .filter-separator { display: none; }
  .range-control { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .range-control output { min-width: 0; text-align: left; }
  .field input, .field select { width: 100%; min-height: 42px; }
  .pager { justify-content: flex-start; }
  .pager button, .pager input { min-height: 40px; }
  .result-bar { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Application search and shared detail view. */
a.app-detail-link:hover { text-decoration: none; }
a.app-detail-link:hover .app-copy strong { color: var(--blue); text-decoration: underline; }
.app-search-panel { padding: 26px; }
.app-search-form { max-width: 860px; }
.app-search-form > label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.app-search-input-row { display: flex; gap: 10px; }
.app-search-input-row input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; background: white; border: 1px solid var(--line-strong); border-radius: 5px; }
.app-search-input-row button { flex: none; min-width: 88px; }
.search-result-count { margin: 26px 0 8px; color: var(--sub); font-size: 12px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.search-result .app-cell { flex: 1; }
.search-result-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: 12px; color: var(--sub); }
.bundle-text { overflow-wrap: anywhere; }
.app-profile { padding: 26px; }
.app-profile-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.app-profile .app-cell { min-width: 0; gap: 18px; }
.app-profile .app-icon { width: 78px; height: 78px; border-radius: 18px; font-size: 28px; }
.app-profile .app-copy strong { max-width: none; white-space: normal; font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.app-profile .app-copy small { max-width: none; white-space: normal; font-size: 13px; color: var(--sub); }
.app-store-scope { margin: 10px 0 0 96px; font-size: 12px; color: var(--sub); }
.app-current-status { flex: none; max-width: 45%; text-align: right; }
.app-current-status > .tag { font-size: 15px; padding: 5px 13px; }
.app-current-status p { font-size: 12px; color: var(--sub); }
.app-observation-note { padding: 12px 14px; margin: 22px 0; font-size: 12px; color: #375373; background: #f1f6ff; border-left: 3px solid #a9c6f7; }
.app-observation-note.observation-stale { color: #7c6227; background: #fffaed; border-color: #ecd08a; }
.app-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 22px; }
.app-facts dt { color: var(--sub); font-size: 12px; margin-bottom: 5px; }
.app-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.copy-id { border: 0; background: transparent; color: var(--blue); font-size: 11px; padding: 2px 4px; }
.app-meta-note { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--sub); font-size: 11px; }
.app-history-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 16px 0; }
.app-history-stats > div { padding: 18px 22px; }
.app-history-stats span { color: var(--sub); display: block; font-size: 12px; }
.app-history-stats strong { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.app-history-panel { padding-bottom: 8px; }
.app-history-range { padding: 0 22px; display: flex; gap: 16px; flex-wrap: wrap; }
.app-custom-dates { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.app-custom-dates label { color: var(--sub); font-size: 11px; }
.app-custom-dates input { display: block; border: 1px solid var(--line-strong); padding: 6px; border-radius: 4px; }
.app-history-boundary { padding: 0 22px; color: var(--sub); font-size: 12px; }
.chart svg.line-chart-svg, .chart-shell svg.line-chart-svg { width: 100%; min-width: 0; }
.app-history-chart { margin: 18px 22px; border: 1px solid var(--line); border-radius: 5px; }
.app-timeline-scroll { overflow-x: auto; }
.app-timeline { position: relative; margin: 0 auto; }
.app-timeline-axis { position: absolute; top: 28px; left: 80px; right: 80px; border-top: 1px dashed #c9d4e4; }
.app-axis-start, .app-axis-end { position: absolute; top: 5px; font-size: 11px; color: var(--sub); }
.app-axis-start { left: 16px; } .app-axis-end { right: 16px; }
.app-timeline-node { position: absolute; transform: translateX(-50%); width: 140px; padding: 5px 3px; display: flex; align-items: center; flex-direction: column; gap: 2px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: #536b88; }
.app-timeline-node i { display: block; width: 11px; height: 11px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #f2f5fa; margin-bottom: 2px; }
.app-timeline-node strong { font-size: 12px; font-weight: 600; }
.app-timeline-node span, .app-timeline-node small { font-size: 10px; }
.app-timeline-node.node-new_listed { color: var(--green); }
.app-timeline-node.node-relisted { color: var(--blue); }
.app-timeline-node.node-delisted { color: var(--red); }
.app-timeline-node[aria-pressed='true'], .app-timeline-node:hover { background: #f5f8fd; border-color: var(--line-strong); }
.timeline-help { padding: 0 12px; margin: 0 0 10px; }
.app-history-selection { margin: 16px 22px; background: #f6f9ff; padding: 14px 16px; border-radius: 4px; }
.app-history-selection strong { display: inline-block; margin-right: 16px; }
.app-history-selection span, .app-history-selection p { font-size: 12px; color: var(--sub); }
.app-history-selection p { margin-bottom: 0; }
.app-event-list-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 22px 10px; }
.app-event-list-head h3 { margin: 0; font-size: 14px; }
.event-link { padding: 0; border: 0; color: var(--blue); background: transparent; text-align: left; }
.app-additional { margin-top: 16px; padding: 20px 22px; }
.app-basic-info summary, .app-additional summary { cursor: pointer; font-weight: 600; }
.app-basic-info summary { padding-top: 16px; border-top: 1px solid var(--line); }
.app-basic-info[open] summary { margin-bottom: 22px; }
.app-expand-hint, .app-collapse-hint { margin-left: 12px; color: var(--sub); font-size: 12px; font-weight: 400; }
.app-collapse-hint, details[open] > summary .app-expand-hint { display: none; }
details[open] > summary .app-collapse-hint { display: inline; }
.app-description { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--sub); }
@media (max-width: 900px) {
  .app-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-history-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-result { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-result-meta { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .app-search-panel, .app-profile { padding: 16px; }
  .app-profile-heading { flex-direction: column; gap: 16px; }
  .app-current-status { text-align: left; max-width: 100%; }
  .app-profile .app-copy strong { font-size: 21px; }
  .app-history-stats { gap: 8px; }
  .app-history-stats > div { padding: 14px; }
  .app-history-stats strong { font-size: 16px; }
  .app-history-range { padding: 0 14px; }
  .app-history-range .segmented button { padding-left: 9px; padding-right: 9px; }
  .app-history-chart { margin-left: 14px; margin-right: 14px; }
}

.app-search-panel, .app-profile, .app-history-stats > .panel, .app-history-panel, .app-additional { min-height: 0; }

#manual-scan-status:empty, #manual-scan-note:empty { display: none; }

/* Unified dropdown */
.ui-select { position: relative; min-width: 0; }
.ui-select > .ui-trigger, #custom-range-display.ui-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid #bbc8da; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; text-align: left;
}
.ui-select > .ui-trigger:hover, #custom-range-display.ui-trigger:hover { border-color: #8199bf; background: var(--surface-soft); }
.ui-trigger[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px #2259e512; }
.dropdown-chevron { flex: none; width: 16px; height: 16px; color: #475467; }
.ui-trigger[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); color: var(--blue); }
.ui-options {
  position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; min-width: 100%; width: max-content;
  max-width: min(340px, calc(100vw - 24px)); max-height: 280px; overflow: auto; padding: 4px;
  border: 1px solid #edf0f5; border-radius: 8px; background: #fff; box-shadow: 0 4px 18px #17203320;
}
.ui-options button {
  display: block; width: 100%; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 5px;
  background: transparent; color: var(--ink); font-size: 12px; text-align: left; white-space: nowrap;
}
.ui-options button:hover:not(:disabled), .ui-options button[aria-checked="true"] { background: #edf1ff; color: var(--blue); }
.ui-options button:disabled { opacity: .4; cursor: default; }
.select-field { border-color: #bbc8da; border-radius: 8px; padding: 0 0 0 10px; }
.select-field:focus-within { border-color: var(--blue); }
.select-field .ui-select { flex: 1; }
.select-field .ui-select > .ui-trigger { min-height: 34px; border: 0; background: transparent; padding: 5px 10px; font-size: 14px; font-weight: 600; }

/* Period summary — sizes follow .codex/docs/Monitor-Opportunity-Prototype.html .sheet */
#period {
  padding: 10px 16px 20px;
}
#period-mode-wrap { width: 98px; }
#period-select-wrap { max-width: 100%; }
#period-state .state-block {
  min-height: calc(100vh - var(--header-height) - 88px);
  background: var(--surface);
  border-radius: var(--radius);
}
.period-tools { margin: 0; }
.period-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px 14px; }
.period-controls { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; min-width: 0; }
.period-picker, .custom-dates { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
#period-prev, #period-next { min-width: 80px; min-height: 34px; padding: 5px 10px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
#period-prev:hover:not(:disabled), #period-next:hover:not(:disabled) { background: #e9eef9; color: var(--blue); }
#period-prev:disabled, #period-next:disabled {
  color: var(--faint);
  background: #eef1f6;
  cursor: not-allowed;
  opacity: .55;
}
#period-latest { color: var(--blue); background: transparent; border: 0; font-size: 11px; }
.custom-dates label { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 11px; }
.custom-dates input, .custom-dates button { min-height: 34px; padding: 5px 10px; border: 0; border-radius: 8px; background: #fff; }
.custom-dates button[type="submit"] { background: var(--blue); color: #fff; }
#custom-cancel { background: #fff; color: var(--sub); }
.range-summary { grid-column: 1; grid-row: 1; justify-self: start; color: var(--sub); font-size: 11px; }
.net-note { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; color: var(--sub); font-size: 11px; text-align: right; }
.period-error { margin: 8px 0 0; color: var(--red); font-size: 12px; text-align: center; }
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px; padding: 0 0 12px; }
.pulse-card { position: relative; min-width: 0; width: 100%; padding: 14px 18px 12px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; }
.pulse-card .k { color: var(--sub); font-size: 12px; font-weight: 500; }
.pulse-card .v { margin-top: 5px; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.7px; }
.pulse-card .d { margin-top: 5px; color: var(--sub); font-size: 11px; }
.pulse-card .pulse-change { font-weight: 600; }
.pulse-card .pulse-change.up { color: #178f5f; }
.pulse-card .pulse-change.down { color: #d0443f; }
.pulse-card[aria-pressed="true"] .pulse-change.up { color: #9ff0bd; }
.pulse-card[aria-pressed="true"] .pulse-change.down { color: #ffd0cc; }
.pulse-sparkline { position: relative; display: block; height: 36px; margin-top: 8px; }
.pulse-card .pulse-sparkline svg { width: 100%; height: 100%; }
.pulse-point { position: absolute; display: block; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: var(--pulse-ink); border: 1.3px solid var(--pulse-border); transform: translate(-50%,-50%); pointer-events: none; }
.pulse-card:hover { background: var(--surface-soft); }
.pulse-card[aria-pressed="true"] { background: var(--blue); color: #fff; }
.pulse-card[aria-pressed="true"] .k, .pulse-card[aria-pressed="true"] .d { color: #e7eeff; }
.pulse-card[aria-pressed="true"] .v { color: #fff; }
.pulse-card[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 12px solid var(--blue); }
#period .block { margin-top: 18px; }
#period .sec-label { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .2px; }
#period .sec-sub { margin: 4px 0 12px; color: var(--sub); font-size: 11px; line-height: 1.6; }
#period .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.share-panel { min-width: 0; padding: 16px; background: #fff; border-radius: 10px; }
.share-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.share-toolbar .sec-sub { margin: 0; }
.category-share { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.category-share svg { display: block; max-width: none; height: 324px; }
.share-column { cursor: pointer; outline: none !important; }
.share-column:hover .column-fill { fill: #668fdf; }
.share-column[aria-pressed="true"] .column-fill { fill: var(--blue); }
#pulse-tooltip, #share-tooltip {
  position: fixed; z-index: 100; width: max-content; max-width: min(310px, calc(100vw - 24px));
  padding: 11px 14px; border-radius: 8px; background: #202a3b; color: #fff;
  box-shadow: 0 6px 20px #17203322; pointer-events: none; font-size: 11px;
  transform: none; min-width: 0; line-height: 1.5;
}
#pulse-tooltip strong, #share-tooltip strong,
#pulse-tooltip span, #share-tooltip span { display: inline; margin-bottom: 0; }
.tooltip-date { color: #cbd4e4; }
.tooltip-value { margin-top: 5px; font-size: 12px; }
.tooltip-value strong { margin-left: 6px; font-size: 20px; font-weight: 600; }
.tooltip-total { margin-top: 6px; color: #cbd4e4; font-size: 10px; }
#app-section { padding: 18px 20px; border-radius: 12px; background: #fff; }
#app-table-scroll .state-block {
  min-height: 168px;
  padding: 20px 0 8px;
  background: transparent;
}
#app-table-scroll .skeleton-lines { height: 88px; padding: 0; }
#period .text-button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--blue); font-size: 11px; }
#period .section-title-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
#period .data-table { min-width: 1330px; }
#period #list-tabs { margin: 10px 0 8px; }
#period #list-sort-wrap { min-width: 196px; }
#period .list-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px auto; }
#period .list-filters .ui-select > .ui-trigger { min-height: 32px; font-size: 11px; }
#period .empty-note { margin: 0; padding: 18px 0; color: var(--sub); font-size: 12px; }
#period .app-cell { min-width: 240px; }
#period .app-icon { width: 36px; height: 36px; border-radius: 8px; }
#period .app-copy strong { max-width: 280px; }
.status-live { color: #128457; }
.status-down { color: #b54747; }
.summary-notes { margin-top: 16px; color: var(--sub); font-size: 11px; }
.summary-heading { margin: 0; font-weight: 600; }
.period-help, .trend-note, .foot { margin: 8px 0 0; color: var(--sub); font-size: 11px; line-height: 1.7; }

@media (max-width: 1280px) {
  .period-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .period-controls { grid-column: 1/-1; grid-row: 1; }
  .range-summary { grid-column: 1; grid-row: 2; }
  .net-note { grid-column: 2; grid-row: 2; }
}
@media (max-width: 840px) {
  #period { padding: 8px 0 16px; }
}
@media (max-width: 760px) {
  .pulse { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 10px; }
  .pulse-card { padding: 12px; }
  .pulse-card .v { font-size: 24px; }
  .period-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; max-width: 360px; }
  #period-select-wrap, #custom-range-display { grid-column: 1/-1; width: 100%; }
  #app-section { padding: 14px 12px; }
  #period-state .state-block { min-height: calc(100vh - var(--header-height) - 120px); }
}

#manual-scan[data-busy="true"] { display: inline-flex; align-items: center; gap: 7px; cursor: not-allowed; }
#manual-scan[data-busy="true"]::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: scan-button-spin .8s linear infinite; }
@keyframes scan-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #manual-scan[data-busy="true"]::before { animation: none; } }
