:root {
  --primary: #1955a6;
  --hover: #124381;
  --tint: #eff4fb;
  --navy: #0b1220;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f8fafc;
  --surface: #fff;
  --success: #166534;
  --warning: #92400e;
  --danger: #b91c1c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    system-ui,
    -apple-system,
    sans-serif;
}
button,
select,
input {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 500;
}
button:hover {
  background: var(--tint);
}
.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-align: center;
}
.primary:hover {
  background: var(--hover);
}
:focus-visible {
  outline: 3px solid #3973bc;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 4px 0 6px;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
}
small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.muted {
  color: var(--muted);
}
.sidebar {
  width: 220px;
  background: var(--navy);
  color: #b5c0d1;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  font-weight: 650;
  color: white;
  letter-spacing: -1px;
}
.brand span {
  font-size: 13px;
  color: #b3cae9;
  letter-spacing: 0;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  margin: 38px 12px 12px;
}
nav a {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  color: #bac4d4;
  border-radius: 8px;
  margin-bottom: 4px;
}
nav a[aria-current] {
  background: var(--primary);
  color: white;
}
nav a span {
  font-size: 12px;
  opacity: 0.8;
}
.sidebar-note {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 2;
  margin: auto 12px 28px;
  color: #90a2b9;
}
.sidebar-note strong {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.sidebar footer {
  border-top: 1px solid #263244;
  padding: 20px 12px 0;
}
.sidebar small {
  color: #90a2b9;
}
.shell {
  margin-left: 220px;
}
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: white;
  font-size: 12px;
}
.preview,
.tag {
  padding: 4px 8px;
  background: var(--tint);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
}
main {
  padding: 28px 32px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 10px;
}
.scope {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.notice {
  margin: 22px 0 24px;
  padding: 9px 12px;
  background: #eff4fb;
  border: 1px solid #dce7f6;
  color: var(--primary);
  font-size: 12px;
  border-radius: 6px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-bottom: 24px;
}
.metrics article {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}
.metrics article:last-child {
  border: 0;
}
.metrics span {
  color: var(--muted);
  font-size: 12px;
}
.metrics strong {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.warn-text {
  color: var(--warning);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.panel-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-head p {
  font-size: 12px;
  margin-top: 4px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
select {
  max-width: 185px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  color: var(--ink);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: #f8fafc;
  border-block: 1px solid var(--line);
  padding: 11px 18px;
}
td {
  padding: 20px 18px;
  font-size: 13px;
  border-bottom: 1px solid #edf1f5;
}
tr:last-child td {
  border-bottom: 0;
}
.service-link {
  font-weight: 600;
}
.status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.status:before {
  content: "●";
  font-size: 8px;
  margin-right: 6px;
}
.warning {
  background: #fffbeb;
  color: var(--warning);
}
.healthy {
  background: #f0fdf4;
  color: var(--success);
}
.neutral {
  background: #f1f5f9;
  color: #475569;
}
.attention {
  padding: 20px;
}
.attention h2 {
  font-size: 19px;
  margin: 18px 0 8px;
}
.attention p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.attention .button {
  width: 100%;
  margin-top: 14px;
}
dl {
  margin: 20px 0;
}
dt {
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
}
dd {
  margin: 4px 0;
  font-size: 13px;
}
.incident-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
}
.steps {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow: auto;
}
.steps li {
  flex: 1;
  padding: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.steps .current {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.investigation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  font-size: 11px;
  color: var(--muted);
}
.chart-meta strong {
  font-size: 12px;
  color: var(--ink);
}
.chart {
  padding: 0 12px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  font: 11px system-ui;
  fill: #64748b;
}
.chart-caption,
.readout {
  padding: 8px 20px;
  font-size: 12px;
  color: var(--muted);
}
.readout {
  background: #f8fafc;
  color: var(--ink);
  margin: 0 20px;
  border-radius: 6px;
}
.chart-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  font-size: 12px;
}
.chart-controls input {
  flex: 1;
  accent-color: var(--primary);
}
details {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 12px;
}
.samples {
  max-height: 250px;
  margin-top: 12px;
}
.samples td {
  padding: 8px 16px;
}
.timeline-panel {
  margin-top: 20px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}
.timeline li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  font-size: 12px;
  color: var(--muted);
  min-width: 38px;
}
.timeline strong {
  font-size: 13px;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.text-button {
  border: 0;
  padding: 0;
  color: var(--primary);
  font-size: 12px;
  background: transparent;
}
.decision .panel {
  padding: 20px;
  margin-bottom: 20px;
}
.decision h2 {
  margin: 8px 0;
  font-size: 18px;
}
.decision p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.decision button {
  width: 100%;
  margin: 8px 0;
}
.criteria {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.criteria li {
  margin: 10px 0;
}
.empty {
  padding: 32px;
  text-align: center;
  margin-top: 20px;
}
.empty p {
  margin: 12px 0;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
dialog {
  width: min(540px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 20px 80px #0b122033;
}
dialog::backdrop {
  background: #0b122055;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-head button {
  padding: 5px 10px;
}
.dialog-head h2 {
  font-size: 20px;
}
dialog p {
  margin: 12px 0;
}
dialog code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
dialog .notice {
  margin: 16px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.skip {
  position: fixed;
  left: 240px;
  top: -100px;
  padding: 10px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 5px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1280px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .attention {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .attention dl {
    grid-column: 2;
    grid-row: 1/5;
    margin: 0;
  }
  .attention h2 {
    margin: 0;
  }
  .investigation-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  main {
    padding: 24px;
  }
  .metrics article {
    padding: 16px;
  }
}
@media (max-width: 1000px) {
  .investigation-grid {
    grid-template-columns: 1fr;
  }
  .decision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
  }
  .brand {
    font-size: 24px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 8px;
    gap: 8px;
  }
  .nav-label,
  .sidebar-note,
  .sidebar footer {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    padding: 0 16px;
    gap: 12px;
    font-size: 11px;
  }
  .preview {
    font-size: 10px;
  }
  main {
    padding: 20px 16px;
  }
  .heading {
    align-items: start;
  }
  .scope {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .heading p {
    font-size: 12px;
  }
  .panel-head {
    align-items: start;
    flex-direction: column;
  }
  .attention {
    display: block;
  }
  .attention h2 {
    margin: 16px 0;
  }
  .attention dl {
    margin: 16px 0;
  }
  .decision {
    display: block;
  }
  .incident-bar {
    align-items: start;
    flex-direction: column;
  }
  .steps li {
    flex: none;
  }
  .chart-meta {
    flex-direction: column;
    gap: 2px;
  }
  .page-footer {
    display: block;
  }
  .page-footer span {
    display: block;
    margin-top: 4px;
  }
  .chart-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .skip {
    left: 16px;
  }
}

/* Newneo 369996d: compact operational density on desktop. */
@media (min-width: 1000px) {
  main {
    padding: 20px 24px;
  }
  .metrics {
    margin-bottom: 16px;
  }
  .metrics article {
    min-height: 80px;
    padding: 12px 16px;
  }
  .metrics strong {
    font-size: 25px;
    margin: 4px 0;
    line-height: 1.2;
  }
  .overview-grid,
  .investigation-grid {
    gap: 16px;
  }
  .panel-head {
    padding: 16px;
  }
}
/* Expanded workspace: scroll navigation independently of the operation. */
.sidebar {
  padding: 20px 14px 12px;
}
.sidebar .brand {
  padding: 0 8px;
  flex-shrink: 0;
}
.sidebar nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  margin-top: 16px;
  scrollbar-width: thin;
}
.sidebar .nav-label {
  margin: 18px 12px 6px;
  font-size: 9px;
}
.sidebar nav a {
  padding: 8px 12px;
  margin-bottom: 2px;
  font-size: 13px;
}
.sidebar-note {
  display: none;
}
.sidebar footer {
  padding: 12px 8px 0;
  font-size: 12px;
  flex-shrink: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.product-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-card {
  padding: 20px;
  margin-bottom: 16px;
}
.product-grid .product-card {
  margin-bottom: 0;
}
.product-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}
.product-card h2 {
  margin-bottom: 12px;
}
.view > .panel {
  margin-bottom: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 12px;
}
.toolbar label {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.toolbar input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.workflow-list {
  padding: 0;
  list-style: none;
  margin: 0 0 20px;
}
.workflow-list li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
}
.workflow-list strong {
  font-weight: 500;
}
.dependency-map {
  padding: 24px;
  max-width: 760px;
  margin: auto;
  text-align: center;
}
.dependency-map > div:not(.dependency-branches),
.dependency-branches > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.dependency-map .status {
  margin-left: 12px;
}
.edge-label {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}
.dependency-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 20px;
}
@media (max-width: 1000px) {
  .product-grid,
  .product-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid > :first-child:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .sidebar nav {
    display: block;
    max-height: 190px;
    overflow: auto;
    margin-top: 8px;
  }
  .sidebar .nav-label {
    display: block;
  }
  .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-group .nav-label {
    width: 100%;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 6px 10px;
  }
  .product-grid,
  .product-grid.three {
    grid-template-columns: 1fr;
  }
  .dependency-branches {
    grid-template-columns: 1fr;
  }
  .dependency-map {
    padding: 16px;
  }
  .dependency-map .status {
    margin: 8px 0 0;
  }
  .toolbar label {
    width: 100%;
  }
  .toolbar input {
    width: 100%;
  }
}
/* Service desk: Newneo shell, subdued symbols, compact market rows. */
.line-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #718198;
  vertical-align: middle;
}
.sidebar nav a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  height: 40px;
  font-size: 14px;
}
.sidebar nav a span {
  font-size: 14px;
  opacity: 1;
}
.sidebar nav a[aria-current] .line-icon {
  color: white;
}
.sidebar .brand small {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.3px;
  margin: 2px 0 0;
}
.sidebar nav {
  margin-top: 28px;
}
.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 12px 0 20px;
  font-size: 12px;
}
.market-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.market-summary b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 5px;
}
.market-summary .snapshot {
  margin-left: auto;
  font-size: 11px;
}
.tone-warning {
  color: #92400e;
}
.tone-good {
  color: #166534;
}
.market-toolbar {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.market-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.board-search {
  margin-right: auto;
}
.board-search input {
  border: 0;
  outline-offset: 4px;
  width: 245px;
  font: inherit;
  font-size: 12px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
}
.market-toolbar select {
  font-size: 11px;
  padding: 6px;
}
.market-toolbar select:disabled {
  opacity: 1;
  color: var(--muted);
}
.board-table th {
  padding: 10px 12px;
  font-size: 10px;
}
.board-table td {
  padding: 8px 12px;
  font-size: 12px;
  height: 43px;
}
.board-table tr[data-service] {
  cursor: default;
}
.board-table tr[data-service]:hover {
  background: #f3f6fb;
}
.board-table tr[data-service]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.board-table .status {
  font-size: 10px;
  padding: 2px 6px;
}
.board-table .criticality {
  font-size: 11px;
  color: #475569;
}
.service-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.service-cell strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.service-cell span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.service-cell .line-icon {
  color: #8490a2;
}
.board-table .ratio {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.coverage-divider td {
  height: 25px;
  padding: 5px 12px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
}
.board-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.ranking-help {
  border: 0;
  padding: 8px 0 20px;
  color: var(--muted);
  max-width: 900px;
}
.ranking-help p {
  margin: 12px 0;
  line-height: 1.7;
}
.event-desk {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin: 12px 0;
  overflow: hidden;
  position: sticky;
  bottom: 8px;
  z-index: 2;
  box-shadow: 0 2px 12px #0f172a08;
}
.event-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}
.event-heading strong {
  letter-spacing: 1px;
}
.event-heading > span {
  color: var(--muted);
}
.event-heading button {
  font-size: 10px;
  padding: 3px 8px;
}
.event-heading button:first-of-type {
  margin-left: auto;
}
.ticker-viewport {
  overflow: hidden;
  padding: 9px 0;
}
.ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: news-flow 55s linear infinite;
}
.ticker-item {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--ink);
}
.ticker-item:hover {
  background: transparent;
  text-decoration: underline;
}
.ticker-item time {
  color: var(--muted);
}
.event-tone {
  font-weight: 500;
}
.event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.event-dot.good {
  background: #16a34a;
}
.event-dot.warning {
  background: #d97706;
}
.ticker-paused .ticker-track,
.event-desk:hover .ticker-track,
.event-desk:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes news-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.service-detail-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}
.technical details {
  border: 0;
}
.technical summary {
  font-weight: 500;
}
.technical p {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}
.technical label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  font-size: 12px;
}
.technical input {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.technical td {
  font:
    11px/1.6 ui-monospace,
    monospace;
  padding: 12px;
}
.analytics-cards {
  padding: 0 16px;
}
.service-home .heading h1 {
  font-size: 24px;
}
.service-home .notice {
  padding: 6px 10px;
  margin: 12px 0;
  font-size: 10px;
}
.service-home .page-footer {
  margin-top: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .ticker-viewport {
    overflow-x: auto;
  }
}
@media (max-width: 650px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 170px;
    margin-top: 14px;
  }
  .sidebar nav a {
    font-size: 12px;
    height: 34px;
  }
  .sidebar nav a span {
    font-size: 12px;
  }
  .market-summary {
    gap: 12px;
  }
  .market-summary .snapshot {
    margin-left: 0;
    width: 100%;
  }
  .board-search {
    width: 100%;
  }
  .board-search input {
    width: 100%;
  }
  .market-toolbar {
    gap: 12px;
  }
  .event-desk {
    position: static;
  }
  .service-detail-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .technical label {
    flex-wrap: wrap;
  }
}
/* Keep visually hidden table labels inside their scrolling container. */
.board-table {
  position: relative;
}
/* Desktop service desk: only the service list scrolls vertically. */
@media (min-width: 651px) {
  body.service-home {
    height: 100dvh;
    overflow: hidden;
  }
  .service-home .shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .service-home .topbar {
    flex: 0 0 56px;
  }
  .service-home main {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .service-home .heading,
  .service-home .notice {
    flex-shrink: 0;
  }
  .service-home #overview {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .service-home .market-summary {
    flex-shrink: 0;
    padding-bottom: 12px;
  }
  .service-home .market-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
  .service-home .market-toolbar,
  .service-home .board-foot {
    flex-shrink: 0;
  }
  .service-home .board-table {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .service-home .board-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    box-shadow: 0 1px 0 var(--line);
  }
  .service-home .ranking-help {
    flex-shrink: 0;
    padding: 8px 0;
    margin: 0;
    max-height: 90px;
    overflow: auto;
  }
  .service-home .event-desk {
    position: static;
    flex-shrink: 0;
    margin: 0;
  }
  .service-home .page-footer {
    display: none;
  }
}
