/* Config preview is isolated from the approved Store Assistant mobile shell. */
.hc {
  --hc-warning: #ff7d00;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  background: var(--color-background);
  font-size: 14px;
}
.hc-sidebar {
  background: white;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.hc-brand {
  height: 80px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.hc-brand .icon {
  color: white;
  background: var(--color-primary);
  padding: 6px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.hc-brand strong {
  font-size: 16px;
  letter-spacing: -0.4px;
}
.hc-nav-label {
  display: block;
  margin: 24px 20px 12px;
  color: var(--color-text-placeholder);
  font-weight: 600;
}
.hc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 8px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--color-text-secondary);
  border-radius: 8px;
}
.hc-nav-item .icon {
  width: 18px;
  height: 18px;
}
.hc-nav-item.selected {
  background: #e8f5f1;
  color: var(--color-primary);
  font-weight: 600;
}
.hc-side-note {
  margin: 40px 24px 24px;
  color: var(--color-text-placeholder);
  font-size: 12px;
  line-height: 1.8;
}
.hc-workspace {
  min-width: 0;
}
.hc-topbar {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  color: var(--color-text-secondary);
}
.hc-main {
  padding: 24px 32px;
  max-width: 1504px;
  margin: 0 auto;
}
.hc-page-heading,
.hc-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.hc-page-heading {
  margin-bottom: 24px;
}
.hc-page-heading h1 {
  font-size: 20px;
  font-weight: 600;
}
.hc-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hc-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
}
.hc-app-select {
  min-width: 180px;
  height: 36px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hc-app-select .icon {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}
.hc-page-heading p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--color-text-placeholder);
  margin-top: 8px;
  font-size: 12px;
}
.hc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.hc-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
}
.hc-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.hc-button.primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.hc-button.primary:hover {
  background: #0a6255;
}
.hc-app-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  overflow-x: auto;
}
.hc-app-tabs span {
  padding: 12px 0;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
}
.hc-app-tabs span.current {
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}
.hc-config-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.hc-subtabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #eef0f3;
}
.hc-subtabs button {
  padding: 6px 16px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--color-text-secondary);
}
.hc-subtabs button[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 600;
  background: white;
  box-shadow: 0 1px 4px #0001;
}
.hc-date-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.hc input,
.hc select,
.hc-dialog input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
  max-width: 100%;
  min-width: 0;
}
.hc input[type='date'],
.hc-dialog input[type='date'] {
  width: 152px;
  font-size: 13px;
}
.hc-caption {
  font-size: 12px;
  color: var(--color-text-placeholder);
}
.hc-notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-primary);
  background: #edf6f3;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.hc-notice.warning {
  border-color: var(--hc-warning, #ff7d00);
  background: #fff7e8;
}
.hc-notice.danger {
  border-color: var(--color-danger);
  background: #fef1f0;
}
.hc-notice.success {
  border-color: var(--color-success);
  background: #edf9f0;
}
.hc-section-heading {
  margin-bottom: 16px;
}
.hc-section-heading h2 {
  font-size: 18px;
  font-weight: 600;
}
.hc-section-heading p {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.hc-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.hc-panel {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 6px #1d212906;
  overflow: hidden;
}
.hc-template .hc-section-heading {
  padding: 24px 24px 0;
}
.hc h3,
.health-admin h3,
.hc-dialog h3 {
  font-size: 14px;
  font-weight: 600;
}
.hc-template .hc-section-heading p {
  font-size: 11px;
}
.hc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-text-secondary);
  background: #f1f3f5;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.hc-badge.red {
  color: #b83030;
  background: #fef1f0;
}
.hc-badge.yellow {
  color: #765900;
  background: #fff5c4;
}
.hc-badge.green {
  color: #087b26;
  background: #edf9f0;
}
.hc-badge.warning {
  color: #905000;
  background: #fff7e8;
}
.hc-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.hc-dot.red {
  background: #d83c4c;
}
.hc-dot.yellow {
  background: #c49a00;
}
.hc-dot.green {
  background: #248653;
}
.hc-table-wrap {
  overflow-x: auto;
}
.hc-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.hc-table th {
  background: #f7f8fa;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.hc-table th,
.hc-table td {
  padding: 12px 16px;
  height: 56px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.hc-table strong {
  font-size: 13px;
  font-weight: 500;
}
.hc-table small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-placeholder);
}
.hc-table tbody tr:nth-child(even) {
  background: #fcfcfd;
}
.hc-table tbody tr:last-child td {
  border-bottom: 0;
}
.hc-table.threshold {
  min-width: 420px;
}
.hc-table.threshold td:not(:first-child) {
  font-size: 12px;
  white-space: nowrap;
}
.hc-template footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
}
.hc-template footer small {
  font-size: 12px;
  color: var(--color-text-placeholder);
}
.hc-bottom-note {
  padding: 24px;
  margin-top: 24px;
}
.hc-matching-policy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 16px;
}
.hc-matching-policy p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.hc-match-options {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
}
.hc-match-options legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.hc-match-options label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
}
.hc-match-options input[type='radio'] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 3px 0 0;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.hc-match-options strong,
.hc-match-options small {
  display: block;
}
.hc-match-options small {
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.hc-bottom-note p {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.hc-bottom-note strong {
  margin-left: 6px;
}
.hc-footnote {
  margin-top: 24px;
  color: var(--color-text-placeholder);
  font-size: 12px;
  line-height: 1.8;
}
.hc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hc-filters input {
  width: 280px;
}
.hc-filters select {
  width: 180px;
}
.hc-table.matching {
  min-width: 920px;
}
.hc-table .hc-button {
  border: 0;
  color: var(--color-primary);
  background: none;
  padding: 4px 0;
}
.hc-table-footer {
  padding: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
}
.hc-empty {
  text-align: center;
  padding: 56px !important;
  color: var(--color-text-placeholder);
}
.hc-dialog {
  width: 720px;
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  background: white;
  box-shadow: 0 12px 40px #0002;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  font:
    14px/1.5 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
.hc-dialog::backdrop {
  background: #1d212960;
}
.hc-dialog[open] {
  display: flex;
  flex-direction: column;
}
.hc-dialog.hc-drawer {
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  position: fixed;
  margin: 0 0 0 auto;
  width: 640px;
  max-width: calc(100vw - 24px);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border-width: 0 0 0 1px;
}
.hc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.hc-dialog-head small {
  color: var(--color-text-placeholder);
  font-size: 12px;
}
.hc-dialog h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}
.hc-icon-button {
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 8px;
}
.hc-dialog-body {
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}
.hc-dialog-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.hc-editor-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 12px;
}
.hc-editor-heading,
.hc-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
}
.hc-editor-heading {
  padding: 12px;
  background: var(--color-background);
  font-size: 12px;
}
.hc-editor-row {
  border-bottom: 1px solid var(--color-border);
  padding-left: 12px;
  padding-right: 12px;
  align-items: center;
}
.hc-editor-row strong {
  font-size: 13px;
  font-weight: 500;
}
.hc-editor-row small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-placeholder);
}
.hc-editor-row input {
  width: 100%;
}
.hc-interval {
  grid-column: 1/-1;
  color: var(--color-text-placeholder);
  font-size: 11px;
}
.hc-error {
  color: var(--color-danger);
  font-size: 12px;
  margin-top: 12px;
}
.hc-error:empty {
  display: none;
}
.hc-excluded {
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.hc-excluded p {
  margin-top: 8px;
  line-height: 1.8;
}
.hc-demo-action {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hc-demo-action small {
  color: var(--color-text-placeholder);
  font-size: 11px;
}
.hc-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0 24px;
  text-align: center;
}
.hc-impact-grid strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
}
.hc-impact-grid small {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-top: 4px;
}
.hc-errors {
  color: var(--color-danger);
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
}
.hc-form-field {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.hc-form-field small {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.hc-change-preview {
  margin: 24px 0;
}
.hc-change-preview summary {
  cursor: pointer;
  color: var(--color-primary);
  font-size: 13px;
}
.hc-change-preview h3 {
  margin-top: 16px;
}
.hc-inspect-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 24px;
}
.hc-inspect-meta small {
  display: block;
  color: var(--color-text-placeholder);
  font-size: 12px;
  margin-bottom: 8px;
}
.hc-inspect-meta strong {
  font-size: 14px;
  font-weight: 500;
}
.hc-comparison {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-block: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.hc-comparison small {
  display: block;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.hc-comparison p {
  margin-top: 8px;
  color: var(--color-text-placeholder);
  font-size: 11px;
}
@media (min-width: 1600px) {
  .hc-template .hc-table th,
  .hc-template .hc-table td {
    padding: 14px 24px;
  }
}
@media (max-width: 1180px) {
  .hc {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .hc-brand {
    padding: 0 16px;
    gap: 8px;
  }
  .hc-brand strong {
    font-size: 14px;
  }
  .hc-main {
    padding: 24px;
  }
  .hc-template-grid {
    grid-template-columns: 1fr;
  }
  .hc-page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hc-topbar {
    padding: 0 24px;
  }
}
@media (max-width: 760px) {
  .hc {
    grid-template-columns: 1fr;
  }
  .hc-sidebar {
    display: none;
  }
  .hc-main {
    padding: 16px;
  }
  .hc-topbar {
    padding: 0 16px;
    height: 56px;
    font-size: 12px;
  }
  .hc-topbar .hc-caption {
    display: none;
  }
  .hc-title-row {
    gap: 8px;
  }
  .hc-app-select {
    display: none;
  }
  .hc-actions {
    flex-wrap: wrap;
  }
  .hc-app-tabs {
    gap: 20px;
  }
  .hc-section-heading {
    flex-wrap: wrap;
  }
  .hc-template .hc-section-heading {
    padding: 16px 16px 0;
  }
  .hc-template footer {
    padding: 16px;
  }
  .hc-dialog-body {
    padding: 16px;
  }
  .hc-editor-heading,
  .hc-editor-row {
    gap: 8px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .hc-dialog-head {
    padding: 16px;
  }
  .hc-dialog-footer {
    padding: 16px;
  }
  .hc-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
  .hc-page-heading h1 {
    font-size: 18px;
  }
  .prototype-switch {
    font-size: 10px;
    gap: 0;
  }
}
.health-admin {
  --color-primary: #0f7868;
  --color-secondary: #36a893;
  --color-danger: #e54848;
  --color-warning: #d6a600;
  --color-success: #00b42a;
  --color-text-primary: #1d2129;
  --color-text-secondary: #4e5969;
  --color-text-placeholder: #86909c;
  --color-background: #f7f8fa;
  --color-border: #e5e6eb;
  font:
    14px/1.5 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
.health-admin .hc-config-toolbar {
  margin-top: 0;
}
.health-admin input {
  font: inherit;
}
.health-admin .hc-bottom-note p {
  line-height: 1.8;
}

#page-applications .health-config-content {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.health-admin .red-ink {
  color: #b83030;
}
.health-admin .yellow-ink {
  color: #765900;
}
.health-admin .green-ink {
  color: #087b26;
}
.health-admin:not(.hc-dialog) {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
:where(.health-admin) h1,
:where(.health-admin) h2,
:where(.health-admin) h3,
:where(.health-admin) p {
  margin: 0;
}
.health-admin button,
.health-admin input,
.health-admin select,
.health-admin textarea {
  font-family: inherit;
  color: inherit;
}
.health-admin .hc-table.threshold {
  border-top: 4px solid var(--color-border);
  color: var(--color-text-secondary);
}
.health-admin .hc-table.threshold strong {
  display: block;
}
