/* Retained redesign: service badge and navigation only.
 * Dashboard, page watermark, header layout, forms, and dialogs use legacy styles.
 */
body.workspace-refresh {
  --ui-surface: #ffffff;
  --ui-subtle: #f7f9fa;
  --ui-line: #dfe6e9;
  --ui-muted: #64757b;
  --ui-green: #43863b;
  --ui-green-soft: #edf5eb;
  --ui-width: 1640px;
}

/* Badge appearance only; preserve the original header geometry. */
body.workspace-refresh .app-header .service-badge {
  top: 0;
  min-height: 0;
  padding: 6px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  box-shadow: none;
  gap: 8px;
}
body.workspace-refresh .service-badge .badge-text > div {
  color: inherit;
  font-size: 10px;
  line-height: 1.4;
}
body.workspace-refresh .service-badge > i {
  font-size: 17px;
  color: var(--ui-green);
}
body.workspace-refresh .service-badge .badge-divider {
  background: var(--ui-line);
  height: 23px;
}

/* Retain rounded navigation and selected-tab-only icons. */
body.workspace-refresh > nav {
  background: var(--ui-surface) !important;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  box-shadow: none;
}
body.workspace-refresh > nav .nav-container {
  width: 100%;
  max-width: var(--ui-width);
  min-width: 0;
  padding: 7px 32px;
  margin: 0 auto;
}
body.workspace-refresh .nav-inner {
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 5px;
  border: 0;
  background: transparent;
}
body.workspace-refresh .nav-inner button[data-tab] {
  min-height: 41px;
  padding: 9px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ui-muted);
  box-shadow: none;
  font-size: 16.8px;
  line-height: 22px;
  font-weight: 650;
  transition: background-color .15s ease, color .15s ease;
}
body.workspace-refresh .nav-inner button[data-tab]:hover {
  background: var(--ui-green-soft);
  color: var(--ui-green);
}
body.workspace-refresh .nav-inner button[data-tab].active {
  background: var(--ui-green) !important;
  color: #fff !important;
  box-shadow: none;
}
body.workspace-refresh .nav-inner button[data-tab]::after { content: none; }

html[data-theme="dark"] body.workspace-refresh {
  --ui-surface: #232c2e;
  --ui-subtle: #293437;
  --ui-line: #3e4d51;
  --ui-muted: #b2c0c4;
  --ui-green: #7eba72;
  --ui-green-soft: #2a3d31;
}
html[data-theme="dark"] body.workspace-refresh .nav-inner button[data-tab].active {
  background: #477d43 !important;
}

@media (max-width: 1199px) {
  body.workspace-refresh > nav .nav-container { padding: 7px 24px; }
}
@media (max-width: 760px) {
  body.workspace-refresh > nav .nav-container {
    padding: 6px 12px;
    overflow-x: auto;
  }
  body.workspace-refresh .nav-inner {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 5px;
  }
  body.workspace-refresh .nav-inner button[data-tab] {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 15.6px;
  }
}
@media (max-width: 420px) {
  body.workspace-refresh .app-header .service-badge { padding: 5px 7px; }
  body.workspace-refresh .app-header .badge-text { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.workspace-refresh .nav-inner button[data-tab] { transition: none; }
}
