/* Product appearance center. This stylesheet loads after product-ui.css. */
html[data-nh-preset="default"] {
  --nh-primary: #007f78;
  --nh-primary-dark: #00655f;
  --nh-primary-soft: #e4f3f0;
  --nh-page-bg: #f3f6f6;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #f7faf9;
  --nh-ink: #152321;
  --nh-muted: #62706d;
  --nh-line: #dce5e2;
  --nh-rail: #152421;
  --nh-rail-muted: #b4c2bf;
}

html[data-nh-preset="anthropic"] {
  --nh-primary: #b76118;
  --nh-primary-dark: #8c4714;
  --nh-primary-soft: #f8ecdf;
  --nh-page-bg: #f8f5f0;
  --nh-surface: #fffdf9;
  --nh-surface-subtle: #f4eee5;
  --nh-ink: #2d241b;
  --nh-muted: #746657;
  --nh-line: #e6d8c7;
  --nh-rail: #2c241d;
  --nh-rail-muted: #d5c2ad;
}

html[data-nh-preset="easy"] {
  --nh-primary: #1d5fd1;
  --nh-primary-dark: #174ba5;
  --nh-primary-soft: #e8efff;
  --nh-page-bg: #f4f7ff;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #eef3ff;
  --nh-ink: #14213d;
  --nh-muted: #5e6f91;
  --nh-line: #d8e2f7;
  --nh-rail: #17233b;
  --nh-rail-muted: #bfcae2;
}

html[data-nh-preset="midnight"] {
  --nh-primary: #475569;
  --nh-primary-dark: #334155;
  --nh-primary-soft: #e8edf2;
  --nh-page-bg: #f2f5f7;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #eef2f5;
  --nh-ink: #16202c;
  --nh-muted: #657384;
  --nh-line: #d7e0e8;
  --nh-rail: #111827;
  --nh-rail-muted: #b8c2cf;
}

html[data-nh-preset="rose"] {
  --nh-primary: #c24162;
  --nh-primary-dark: #9f2f4c;
  --nh-primary-soft: #fbeaf0;
  --nh-page-bg: #fff5f7;
  --nh-surface: #fffefe;
  --nh-surface-subtle: #fff0f4;
  --nh-ink: #332027;
  --nh-muted: #806571;
  --nh-line: #ead5dd;
  --nh-rail: #332028;
  --nh-rail-muted: #d5b8c4;
}

html[data-nh-preset="lake"] {
  --nh-primary: #0284c7;
  --nh-primary-dark: #0369a1;
  --nh-primary-soft: #e1f3fc;
  --nh-page-bg: #f1f8fc;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #edf8fd;
  --nh-ink: #12283a;
  --nh-muted: #5c7180;
  --nh-line: #d3e5ef;
  --nh-rail: #102638;
  --nh-rail-muted: #b4c9d7;
}

html[data-nh-preset="sunset"] {
  --nh-primary: #ea580c;
  --nh-primary-dark: #c2410c;
  --nh-primary-soft: #fff0e5;
  --nh-page-bg: #fff7f1;
  --nh-surface: #fffefd;
  --nh-surface-subtle: #fff2e8;
  --nh-ink: #332317;
  --nh-muted: #806751;
  --nh-line: #ead9ca;
  --nh-rail: #33251b;
  --nh-rail-muted: #d8bd9f;
}

html[data-nh-preset="forest"] {
  --nh-primary: #27834c;
  --nh-primary-dark: #1d653a;
  --nh-primary-soft: #e4f5ea;
  --nh-page-bg: #f1f8f3;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #edf8f0;
  --nh-ink: #17291e;
  --nh-muted: #617465;
  --nh-line: #d5e5d9;
  --nh-rail: #14241a;
  --nh-rail-muted: #b7c9bb;
}

html[data-nh-preset="breeze"] {
  --nh-primary: #0891b2;
  --nh-primary-dark: #0e7490;
  --nh-primary-soft: #e2f7fa;
  --nh-page-bg: #effbfc;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #eaf9fb;
  --nh-ink: #112a32;
  --nh-muted: #5c747b;
  --nh-line: #d1e7ec;
  --nh-rail: #11272f;
  --nh-rail-muted: #b2cbd2;
}

html[data-nh-preset="lavender"] {
  --nh-primary: #7255c7;
  --nh-primary-dark: #5840a4;
  --nh-primary-soft: #eeeaff;
  --nh-page-bg: #f7f5fd;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #f2effd;
  --nh-ink: #241d38;
  --nh-muted: #6d6385;
  --nh-line: #ddd6ef;
  --nh-rail: #241d38;
  --nh-rail-muted: #c3b8d9;
}

html[data-nh-preset="easy"] body.nh-product-app {
  font-size: 16px;
}

html[data-nh-preset="easy"] .nh-nav-link,
html[data-nh-preset="easy"] .nh-mobile-nav-link {
  font-size: 14px;
}

html[data-nh-color-mode="dark"] {
  --nh-bg: #172321;
  --nh-page-bg: #172321;
  --nh-surface: #20302d;
  --nh-surface-subtle: #273936;
  --nh-ink: #edf5f3;
  --nh-muted: #a6b7b2;
  --nh-line: #3b4f4a;
  --nh-rail: #101a18;
  --nh-rail-muted: #a5b7b1;
  --nh-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-nh-color-mode="dark"] body.nh-product-app,
html[data-nh-color-mode="dark"] body.nh-page-dial {
  background: var(--nh-page-bg) !important;
}

html[data-nh-color-mode="dark"] .nh-topbar,
html[data-nh-color-mode="dark"] .nh-mobile-topbar,
html[data-nh-color-mode="dark"] .nh-mobile-nav {
  background: var(--nh-surface);
  background: color-mix(in srgb, var(--nh-surface) 90%, var(--nh-page-bg));
}

html[data-nh-color-mode="dark"] body.nh-page-dial #phone {
  background: var(--nh-surface);
}

html[data-nh-color-mode="dark"] body.nh-page-dial #shurukuang,
html[data-nh-color-mode="dark"] body.nh-page-dial #shurukuang .phone-input,
html[data-nh-color-mode="dark"] body.nh-page-dial .dial-button,
html[data-nh-color-mode="dark"] body.nh-page-dial .button-no-background,
html[data-nh-color-mode="dark"] body.nh-page-dial #language-btn-dialpad {
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-page-rate .text-input,
html[data-nh-color-mode="dark"] body.nh-page-rate .search-input,
html[data-nh-color-mode="dark"] body.nh-page-rate .country-selector-wrapper,
html[data-nh-color-mode="dark"] body.nh-page-rate .page-btn,
html[data-nh-color-mode="dark"] body.nh-page-rate .page-current {
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-page-rate .country-selector-wrapper #selectedCountryText,
html[data-nh-color-mode="dark"] body.nh-page-rate .country-selector-wrapper .country-info {
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-page-rate .rate-table-header,
html[data-nh-color-mode="dark"] body.nh-page-rate .pagination-container,
html[data-nh-color-mode="dark"] body.nh-page-rate .data-table th {
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-page-account .balance-card {
  border-color: var(--nh-primary);
  background: linear-gradient(135deg, var(--nh-primary-dark), var(--nh-primary));
}

html[data-nh-color-mode="dark"] body.nh-page-account .feature-item:hover,
html[data-nh-color-mode="dark"] body.nh-page-account .feature-item:focus {
  background: color-mix(in srgb, var(--nh-primary-soft) 34%, var(--nh-surface-subtle)) !important;
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-page-account .recharge-btn {
  background: color-mix(in srgb, #ffffff 86%, var(--nh-primary-soft));
  color: var(--nh-primary-dark);
}

html[data-nh-color-mode="dark"] .history-clear-button:hover,
html[data-nh-color-mode="dark"] .history-action-button[data-history-action="delete"]:hover {
  background: color-mix(in srgb, var(--nh-danger) 24%, var(--nh-surface-subtle));
}

/* Align the dial number field with the keypad while keeping the contacts action fixed. */
body.nh-page-dial #shurukuang {
  width: calc(100% - 22px);
  transform: translateX(22px);
}

/* Language selector follows the active appearance palette. */
.nh-language-modal {
  position: fixed;
  z-index: 13000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 22, 20, 0.58);
}

.nh-language-modal[hidden] {
  display: none;
}

.nh-language-dialog {
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  box-shadow: var(--nh-shadow);
  color: var(--nh-ink);
}

.nh-language-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 17px;
  border-bottom: 1px solid var(--nh-line);
}

.nh-language-header h2 {
  margin: 0;
  color: var(--nh-ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
}

.nh-language-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--nh-muted);
  cursor: pointer;
}

.nh-language-close:hover,
.nh-language-close:focus {
  border-color: var(--nh-line);
  background: var(--nh-surface-subtle);
  color: var(--nh-ink);
  outline: 0;
}

.nh-language-list {
  max-height: min(460px, calc(100vh - 120px));
  overflow-y: auto;
  padding: 8px;
}

.nh-language-option {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--nh-ink);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.nh-language-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-language-option i {
  visibility: hidden;
  flex: 0 0 auto;
  color: var(--nh-primary);
}

.nh-language-option:hover,
.nh-language-option:focus {
  border-color: var(--nh-line);
  background: var(--nh-surface-subtle);
  color: var(--nh-ink);
  outline: 0;
}

.nh-language-option.active {
  border-color: var(--nh-primary);
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  font-weight: 700;
}

.nh-language-option.active i {
  visibility: visible;
  color: var(--nh-primary-dark);
}

@media (max-width: 600px) {
  .nh-language-modal {
    align-items: end;
    padding: 0;
  }

  .nh-language-dialog {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .nh-language-list {
    max-height: min(58vh, calc(100vh - 90px));
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

.nh-appearance-panel {
  left: 268px;
  width: 330px;
  max-height: min(720px, calc(100vh - 88px));
  overflow-y: auto;
}

.nh-appearance-header {
  align-items: flex-start;
}

.nh-appearance-header > div {
  min-width: 0;
}

.nh-appearance-header strong,
.nh-appearance-header span {
  display: block;
}

.nh-appearance-header span,
.nh-appearance-group small {
  margin-top: 4px;
  color: var(--nh-muted);
  font-size: 11px;
  line-height: 1.45;
}

.nh-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.nh-mode-choice,
.nh-preset-choice {
  min-width: 0;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-muted);
  cursor: pointer;
}

.nh-mode-choice {
  display: grid;
  min-height: 56px;
  place-items: center;
  gap: 4px;
  padding: 7px 4px;
  font-size: 11px;
}

.nh-mode-choice i {
  font-size: 15px;
}

.nh-mode-choice.active,
.nh-mode-choice:hover,
.nh-mode-choice:focus,
.nh-preset-choice.active,
.nh-preset-choice:hover,
.nh-preset-choice:focus {
  border-color: var(--nh-primary);
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  outline: 0;
}

.nh-preset-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.nh-preset-choice {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 11px;
  text-align: left;
}

.nh-preset-choice i {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--nh-preset-swatch);
  box-shadow: 0 0 0 1px rgba(21, 35, 33, 0.16);
}

.nh-preset-choice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-appearance-reset {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nh-muted);
  cursor: pointer;
  font-size: 12px;
}

.nh-appearance-reset:hover,
.nh-appearance-reset:focus {
  color: var(--nh-primary-dark);
  outline: 0;
}

@media (max-width: 959px) {
  .nh-appearance-panel {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: min(680px, calc(100vh - 96px - env(safe-area-inset-bottom)));
  }
}

/* Theme bridge for legacy content pages that still ship fixed colors. */
body.nh-product-app .header,
body.nh-product-app .settings-group,
body.nh-product-app .setting-header,
body.nh-product-app .setting-content,
body.nh-product-app .setting-item,
body.nh-product-app .info-item,
body.nh-product-app .rate-tabs,
body.nh-product-app .input-group-container,
body.nh-product-app .rate-card,
body.nh-product-app .info-section,
body.nh-product-app .table-container,
body.nh-product-app .query-section,
body.nh-product-app .cdr-card {
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

body.nh-product-app .header-title,
body.nh-product-app .setting-title,
body.nh-product-app .section-title,
body.nh-product-app .profile-name,
body.nh-product-app .feature-item,
body.nh-product-app .feature-name,
body.nh-product-app .rate-price,
body.nh-product-app .data-table th,
body.nh-product-app .cdr-number,
body.nh-product-app .copy-target,
body.nh-product-app strong {
  color: var(--nh-ink) !important;
}

body.nh-product-app .intro-text,
body.nh-product-app .setting-content,
body.nh-product-app .setting-item,
body.nh-product-app .info-item span:first-child,
body.nh-product-app .profile-id,
body.nh-product-app .rate-card-header,
body.nh-product-app .rate-area,
body.nh-product-app .data-table td,
body.nh-product-app .cdr-row-middle,
body.nh-product-app .cdr-row-status,
body.nh-product-app .cdr-time,
body.nh-product-app .no-results,
body.nh-product-app .empty-state,
body.nh-product-app .unavailable-text,
body.nh-product-app .legal-section p,
body.nh-product-app .legal-section li {
  color: var(--nh-muted) !important;
}

body.nh-product-app .setting-header:hover,
body.nh-product-app .feature-item:hover,
body.nh-product-app .feature-item:focus {
  background: var(--nh-surface-subtle) !important;
}

body.nh-product-app .copy-button,
body.nh-product-app .paste-button,
body.nh-product-app #copyButton {
  border: 1px solid var(--nh-primary) !important;
  background: var(--nh-primary) !important;
  color: #fff !important;
}

body.nh-product-app .header-title,
body.nh-product-app .setting-item,
body.nh-product-app .setting-item span,
body.nh-product-app .setting-item li,
body.nh-product-app .setup-steps,
body.nh-product-app .setup-steps li,
body.nh-product-app .download-button,
body.nh-product-app .error-message,
body.nh-product-app .warning-text,
body.nh-product-app .feature-name,
body.nh-product-app .rate-tab,
body.nh-product-app .rate-card-header,
body.nh-product-app .rate-area {
  color: var(--nh-ink) !important;
}

body.nh-product-app .setting-item,
body.nh-product-app .setup-steps li,
body.nh-product-app .info-item span:first-child,
body.nh-product-app .rate-card-header,
body.nh-product-app .rate-area,
body.nh-product-app .feature-name {
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .error-message,
html[data-nh-color-mode="dark"] body.nh-product-app .warning-text {
  color: #ffb4a9 !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .download-button {
  background: var(--nh-primary) !important;
  color: #fff !important;
}

body.nh-product-app input,
body.nh-product-app textarea,
body.nh-product-app select {
  background-color: var(--nh-surface-subtle) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .header,
html[data-nh-color-mode="dark"] body.nh-product-app .settings-group,
html[data-nh-color-mode="dark"] body.nh-product-app .setting-header,
html[data-nh-color-mode="dark"] body.nh-product-app .setting-content,
html[data-nh-color-mode="dark"] body.nh-product-app .setting-item,
html[data-nh-color-mode="dark"] body.nh-product-app .info-item,
html[data-nh-color-mode="dark"] body.nh-product-app .share-section,
html[data-nh-color-mode="dark"] body.nh-product-app .referred-list,
html[data-nh-color-mode="dark"] body.nh-product-app .payment-history-list,
html[data-nh-color-mode="dark"] body.nh-product-app .recharge-card,
html[data-nh-color-mode="dark"] body.nh-product-app .legal-meta,
html[data-nh-color-mode="dark"] body.nh-product-app .legal-links a {
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .copy-target,
html[data-nh-color-mode="dark"] body.nh-product-app .share-section h4,
html[data-nh-color-mode="dark"] body.nh-product-app .referred-list h4,
html[data-nh-color-mode="dark"] body.nh-product-app .payment-history-list h4,
html[data-nh-color-mode="dark"] body.nh-product-app #balance-display,
html[data-nh-color-mode="dark"] body.nh-product-app #balance-amount,
html[data-nh-color-mode="dark"] body.nh-product-app #show-offer-btn {
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .setup-steps,
html[data-nh-color-mode="dark"] body.nh-product-app .setup-steps li,
html[data-nh-color-mode="dark"] body.nh-product-app .setting-item p,
html[data-nh-color-mode="dark"] body.nh-product-app .setting-item div,
html[data-nh-color-mode="dark"] body.nh-product-app .intro-text {
  color: var(--nh-muted) !important;
}

.legal-bilingual {
  display: block;
  margin-top: 4px;
  color: var(--nh-muted);
  font-size: 15px;
  font-weight: 650;
}

.legal-links small,
.legal-meta small {
  display: block;
  margin-top: 1px;
  color: var(--nh-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.nh-product-app .setting-header {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
}

body.nh-product-app .download-button,
body.nh-product-app .download-button:hover,
body.nh-product-app .download-button:focus {
  color: #fff !important;
}

body.nh-product-app .help-note,
body.nh-product-app .help-substeps {
  color: var(--nh-muted) !important;
}

body.nh-product-app .help-substeps {
  margin-top: 6px;
  padding-left: 15px;
}

body.nh-product-app .help-substeps p {
  margin: 0 0 4px;
}

body.nh-product-app .help-substeps p::before {
  content: "• ";
}

body.nh-product-app .help-note {
  margin: 0 0 10px;
}

/* Live-call metrics and legacy callout surfaces inherit the selected product theme. */
body.nh-product-app #auto-healing-tip {
  border: 1px solid var(--nh-line);
  background: var(--nh-surface);
  color: var(--nh-ink);
  box-shadow: var(--nh-shadow);
}

body.nh-product-app.nh-page-callout #videos {
  color: var(--nh-ink);
}

body.nh-product-app.nh-page-callout #rtp-stats-display {
  --stats-surface: var(--nh-surface);
  --stats-ink: var(--nh-ink);
  --stats-muted: var(--nh-muted);
  --stats-line: var(--nh-line);
}

body.nh-product-app.nh-page-callout .callout-status-row {
  border-color: var(--nh-line);
  background: var(--nh-surface-subtle);
  color: var(--nh-ink);
}

body.nh-product-app .dial-country-info,
body.nh-product-app #modal-country-name,
body.nh-product-app #rate-info,
body.nh-product-app .line-rate {
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app input::placeholder,
html[data-nh-color-mode="dark"] body.nh-product-app textarea::placeholder {
  color: color-mix(in srgb, var(--nh-muted) 88%, var(--nh-ink)) !important;
  opacity: 1;
}

body.nh-product-app #rtp-stats-display {
  border: 1px solid var(--nh-line) !important;
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  box-shadow: var(--nh-shadow) !important;
}

body.nh-product-app #rtp-stats-display .score-label,
body.nh-product-app #rtp-stats-display .stats-label {
  color: var(--nh-muted) !important;
}

body.nh-product-app #rtp-stats-display .stats-details {
  border-top-color: var(--nh-line) !important;
}

/* Keep outbound call quality visible and compact after theme-center loads. */
body.nh-product-app.nh-page-callout #call-quality-slot {
  width: min(260px, 90vw) !important;
  margin: 0 auto 22px !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display {
  width: min(260px, 90vw) !important;
  margin: 0 auto !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--nh-surface) 88%, transparent) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.nh-product-app.nh-page-callout #rtp-stats-display .call-quality-header {
  display: none !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .score-container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .score-label {
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

body.nh-product-app.nh-page-callout #rtp-stats-score,
body.nh-product-app.nh-page-callout #rtp-stats-display .score-value {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .stats-details {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 16px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--nh-line) !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .stats-row {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .stats-label {
  font-size: 10px !important;
  font-weight: 600 !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display .stats-value {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.1;
  white-space: nowrap;
}

body.nh-product-app.nh-page-callout #rtp-stats-display.simple-mode {
  width: auto !important;
  min-width: 96px;
  padding: 8px 16px !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display.simple-mode .score-container {
  flex-direction: row;
  gap: 8px;
  margin-bottom: 0 !important;
}

body.nh-product-app.nh-page-callout #rtp-stats-display.simple-mode #rtp-stats-score,
body.nh-product-app.nh-page-callout #rtp-stats-display.simple-mode .score-value {
  font-size: 16px !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-callout #rtp-stats-display {
  background: color-mix(in srgb, var(--nh-surface) 86%, transparent) !important;
}

body.nh-product-app .rate-quality-value {
  color: var(--nh-primary-dark);
  font-weight: 700;
}

body.nh-product-app .rate-standard-value {
  color: var(--nh-warning);
  font-weight: 700;
}

/* Final dark-mode contrast pass for legacy product pages. */
body.nh-product-app.nh-page-settings .intro-text,
body.nh-product-app.nh-page-settings .settings-group,
body.nh-product-app.nh-page-settings .setting-header,
body.nh-product-app.nh-page-settings .setting-content,
body.nh-product-app.nh-page-settings .setting-item,
body.nh-product-app.nh-page-settings .info-item {
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

body.nh-product-app.nh-page-settings .setting-title,
body.nh-product-app.nh-page-settings .copy-target,
body.nh-product-app.nh-page-settings .error-message strong,
body.nh-product-app.nh-page-settings .setup-steps li {
  color: var(--nh-ink) !important;
}

body.nh-product-app.nh-page-settings .intro-text,
body.nh-product-app.nh-page-settings .setting-item span,
body.nh-product-app.nh-page-settings .setting-item p,
body.nh-product-app.nh-page-settings .info-item span:first-child,
body.nh-product-app.nh-page-settings .setup-steps,
body.nh-product-app.nh-page-settings .unavailable-text {
  color: var(--nh-muted) !important;
}

body.nh-product-app.nh-page-settings .indicator-icon {
  color: var(--nh-primary) !important;
}

body.nh-product-app.nh-page-settings .copy-button {
  border-color: var(--nh-line) !important;
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-primary-dark) !important;
}

body.nh-product-app.nh-page-settings .copy-button:hover,
body.nh-product-app.nh-page-settings .copy-button:focus {
  border-color: var(--nh-primary) !important;
  background: var(--nh-primary-soft) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .share-section,
html[data-nh-color-mode="dark"] body.nh-product-app .referred-list,
html[data-nh-color-mode="dark"] body.nh-product-app .payment-history-list,
html[data-nh-color-mode="dark"] body.nh-product-app .recharge-card,
html[data-nh-color-mode="dark"] body.nh-product-app .rate-tabs,
html[data-nh-color-mode="dark"] body.nh-product-app .input-group-container,
html[data-nh-color-mode="dark"] body.nh-product-app .rate-results-frame,
html[data-nh-color-mode="dark"] body.nh-product-app .table-container,
html[data-nh-color-mode="dark"] body.nh-product-app .query-section,
html[data-nh-color-mode="dark"] body.nh-product-app .history-list-shell {
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .share-section p,
html[data-nh-color-mode="dark"] body.nh-product-app .referred-list p,
html[data-nh-color-mode="dark"] body.nh-product-app .payment-history-list p,
html[data-nh-color-mode="dark"] body.nh-product-app .status-message,
html[data-nh-color-mode="dark"] body.nh-product-app .pagination-info,
html[data-nh-color-mode="dark"] body.nh-product-app .history-summary,
html[data-nh-color-mode="dark"] body.nh-product-app .callout-card p,
html[data-nh-color-mode="dark"] body.nh-product-app .callout-directory-card p {
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .table,
html[data-nh-color-mode="dark"] body.nh-product-app table,
html[data-nh-color-mode="dark"] body.nh-product-app th,
html[data-nh-color-mode="dark"] body.nh-product-app td {
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app th,
html[data-nh-color-mode="dark"] body.nh-product-app .rate-table-header,
html[data-nh-color-mode="dark"] body.nh-product-app .payment-history-list .table > thead > tr > th {
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app a:not(.nh-nav-link):not(.nh-mobile-nav-link):not(.download-button):not(.enterprise-button),
html[data-nh-color-mode="dark"] body.nh-product-app #show-offer-btn {
  color: var(--nh-primary-dark) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app .callout-status-row span,
html[data-nh-color-mode="dark"] body.nh-product-app .callout-status,
html[data-nh-color-mode="dark"] body.nh-product-app #balance-label,
html[data-nh-color-mode="dark"] body.nh-product-app #balance {
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app #rtp-stats-display .stats-value {
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app #rtp-stats-display .score-good { color: #4ade80 !important; }
html[data-nh-color-mode="dark"] body.nh-product-app #rtp-stats-display .score-warning { color: #facc15 !important; }
html[data-nh-color-mode="dark"] body.nh-product-app #rtp-stats-display .score-danger { color: #fb7185 !important; }

/* Final APP setup dark-mode pass: nested legacy rows must not keep white backgrounds. */
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .main-content,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .settings-group,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-header,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-content,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-item,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-item > div,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .info-item,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setup-steps,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setup-steps li,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .error-message {
  background: var(--nh-surface) !important;
  background-color: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  border-color: var(--nh-line) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-item span,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-item p,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .info-item span:first-child,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .unavailable-text {
  color: var(--nh-muted) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .copy-target,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .setting-title,
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .error-message strong {
  color: var(--nh-ink) !important;
}

html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-settings .copy-button {
  background: var(--nh-surface-subtle) !important;
  background-color: var(--nh-surface-subtle) !important;
  color: color-mix(in srgb, var(--nh-primary) 34%, var(--nh-ink)) !important;
}

/* Dial-page in-call overlay follows the selected product theme. */
body.nh-product-app.nh-page-dial #videos {
  justify-content: flex-start !important;
  min-height: 100vh;
  height: 100dvh;
  padding: calc(54px + env(safe-area-inset-top)) 18px calc(126px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--nh-page-bg) !important;
  color: var(--nh-ink) !important;
  text-shadow: none !important;
}

body.nh-product-app.nh-page-dial #phone-number-display {
  width: min(420px, 100%);
  margin: 0 auto 8px;
  color: var(--nh-ink) !important;
  font-size: 31px;
  font-weight: 760;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: none !important;
  letter-spacing: 0;
}

body.nh-product-app.nh-page-dial #timer {
  width: min(420px, 100%);
  margin: 0 auto 16px;
  color: var(--nh-muted) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: none !important;
}

body.nh-product-app.nh-page-dial #call-quality-slot {
  width: min(420px, 100%);
  margin: 0 auto 14px;
}

body.nh-product-app.nh-page-dial #info-button-bhp {
  width: min(420px, 100%) !important;
  margin: 0 auto 18px !important;
  padding: 14px !important;
  border: 1px solid var(--nh-line) !important;
  border-radius: 8px !important;
  background: var(--nh-surface) !important;
  color: var(--nh-muted) !important;
  box-shadow: var(--nh-shadow) !important;
  text-align: left !important;
  text-shadow: none !important;
}

body.nh-product-app.nh-page-dial #info-scroll-wrapper p {
  margin: 0 0 6px !important;
  color: var(--nh-muted) !important;
  white-space: normal !important;
}

body.nh-product-app.nh-page-dial #dtmf .dial-button,
body.nh-product-app.nh-page-dial #toggleDtmfButton {
  border: 1px solid var(--nh-line) !important;
  background: var(--nh-surface) !important;
  color: var(--nh-ink) !important;
  box-shadow: var(--nh-shadow) !important;
}

body.nh-product-app.nh-page-dial #toggleDtmfButton.active {
  border-color: var(--nh-primary) !important;
  background: var(--nh-primary-soft) !important;
  color: var(--nh-primary-dark) !important;
}

body.nh-product-app.nh-page-dial #hangUpButton {
  background: var(--nh-danger) !important;
  color: #fff !important;
}

body.nh-product-app.nh-page-dial #rtp-stats-display .score-good { color: #16835f !important; }
body.nh-product-app.nh-page-dial #rtp-stats-display .score-warning { color: #b7791f !important; }
body.nh-product-app.nh-page-dial #rtp-stats-display .score-danger { color: #c23b3b !important; }

html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-dial #rtp-stats-display .score-good { color: #4ade80 !important; }
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-dial #rtp-stats-display .score-warning { color: #facc15 !important; }
html[data-nh-color-mode="dark"] body.nh-product-app.nh-page-dial #rtp-stats-display .score-danger { color: #fb7185 !important; }

@media (max-width: 520px) {
  body.nh-product-app.nh-page-dial #videos {
    padding: calc(42px + env(safe-area-inset-top)) 14px calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body.nh-product-app.nh-page-dial #phone-number-display {
    font-size: 27px;
  }
}
