:root {
  --nh-bg: #f3f6f6;
  --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;
  --nh-primary: #007f78;
  --nh-primary-dark: #00655f;
  --nh-primary-soft: #e4f3f0;
  --nh-warning: #c56b13;
  --nh-danger: #bd3c37;
  --nh-shadow: 0 10px 28px rgba(21, 35, 33, 0.08);
}

html.nh-product-html,
html.nh-product-html body.nh-product-app {
  min-height: 100%;
}

body.nh-product-app {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 84px 36px 40px 292px;
  background: var(--nh-page-bg, var(--nh-bg));
  color: var(--nh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.nh-product-app *,
body.nh-product-auth * {
  box-sizing: border-box;
}

body.nh-product-app a {
  color: var(--nh-primary);
}

body.nh-product-app a:hover,
body.nh-product-app a:focus {
  color: var(--nh-primary-dark);
  text-decoration: none;
}

.nh-desktop-nav {
  position: fixed;
  z-index: 2000;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 24px 14px 20px;
  overflow-y: auto;
  background: var(--nh-rail);
  color: #ffffff;
}

.nh-brand {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 0 10px 22px;
  color: #ffffff;
  text-decoration: none;
}

.nh-brand:hover,
.nh-brand:focus {
  color: #ffffff;
  text-decoration: none;
}

.nh-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: #ffffff;
}

.nh-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nh-brand-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.nh-brand-subtitle {
  margin-top: 4px;
  color: var(--nh-rail-muted);
  font-size: 11px;
  line-height: 1;
}

.nh-nav-group {
  margin: 12px 0 0;
}

.nh-nav-group-label {
  display: block;
  padding: 0 12px 8px;
  color: var(--nh-rail-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.nh-nav-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d8e2df;
  font-size: 14px;
  text-decoration: none;
}

.nh-nav-link i {
  width: 17px;
  color: #a7bab5;
  font-size: 16px;
  text-align: center;
}

.nh-nav-link:hover,
.nh-nav-link:focus {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
}

.nh-nav-link.active {
  border-color: color-mix(in srgb, var(--nh-primary) 46%, transparent);
  background: color-mix(in srgb, var(--nh-primary) 34%, transparent);
  color: #ffffff;
}

.nh-nav-link.active i {
  color: color-mix(in srgb, #ffffff 32%, var(--nh-primary));
}

.nh-nav-spacer {
  flex: 1;
  min-height: 24px;
}

.nh-nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 4px 0;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nh-account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.nh-account-meta {
  min-width: 0;
}

.nh-account-name,
.nh-account-state {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-account-name {
  color: #ffffff;
  font-size: 12px;
}

.nh-account-state {
  margin-top: 2px;
  color: var(--nh-rail-muted);
  font-size: 11px;
}

.nh-topbar {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 252px;
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--nh-line);
  background: var(--nh-surface);
  background: color-mix(in srgb, var(--nh-surface) 86%, var(--nh-page-bg));
  backdrop-filter: blur(14px);
}

.nh-topbar-title {
  color: var(--nh-ink);
  font-size: 16px;
  font-weight: 700;
}

.nh-topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nh-connection-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-muted);
  font-size: 12px;
}

.nh-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c88928;
}

.nh-mobile-topbar,
.nh-mobile-nav {
  display: none;
}

body.nh-product-app #footer-placeholder,
body.nh-product-app .footer,
body.nh-product-app #main-footer {
  display: none !important;
}

body.nh-product-app .header {
  display: none;
}

body.nh-product-app .main-content,
body.nh-product-app .main-content.container {
  width: min(100%, 1140px);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

body.nh-product-app .main-content.container {
  float: none;
}

body.nh-product-app .page-header,
body.nh-product-app .country-selection-container {
  display: none !important;
}

body.nh-product-app .sticky {
  position: static;
}

body.nh-product-app .btn,
body.nh-product-app button,
body.nh-product-app input,
body.nh-product-app select,
body.nh-product-app textarea {
  font-family: inherit;
}

body.nh-product-app .action-button,
body.nh-product-app .recharge-button,
body.nh-product-app .download-button,
body.nh-product-app .submit-button {
  min-height: 40px;
  border: 1px solid var(--nh-primary);
  border-radius: 6px;
  background: var(--nh-primary);
  box-shadow: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

body.nh-product-app .action-button:hover,
body.nh-product-app .action-button:focus,
body.nh-product-app .recharge-button:hover,
body.nh-product-app .recharge-button:focus,
body.nh-product-app .download-button:hover,
body.nh-product-app .download-button:focus,
body.nh-product-app .submit-button:hover,
body.nh-product-app .submit-button:focus {
  border-color: var(--nh-primary-dark);
  background: var(--nh-primary-dark);
  color: #ffffff;
}

body.nh-product-app .text-input,
body.nh-product-app .search-input,
body.nh-product-app .date-input,
body.nh-product-app .form-control,
body.nh-product-app .input-group-icon .text-input {
  min-height: 42px;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  box-shadow: none;
  color: var(--nh-ink);
}

body.nh-product-app .text-input:focus,
body.nh-product-app .search-input:focus,
body.nh-product-app .date-input:focus,
body.nh-product-app .form-control:focus {
  border-color: var(--nh-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh-primary) 18%, transparent);
}

body.nh-product-app .error-message {
  color: var(--nh-danger);
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.nh-product-app .warning-text {
  border-left: 3px solid var(--nh-warning);
  background: color-mix(in srgb, var(--nh-warning) 12%, var(--nh-surface));
  color: color-mix(in srgb, var(--nh-warning) 70%, var(--nh-ink));
}

/* Account */
body.nh-page-account .main-content {
  max-width: 980px;
}

body.nh-page-account .nh-topbar-actions,
body.nh-page-account .nh-mobile-state {
  display: none;
}

body.nh-page-account .balance-card {
  position: relative;
  display: flex;
  min-height: 174px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 34px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid var(--nh-primary-dark);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nh-primary-dark), var(--nh-primary));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--nh-primary) 24%, transparent);
}

body.nh-page-account .balance-card::before,
body.nh-page-account .balance-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, #ffffff 18%, transparent);
}

body.nh-page-account .balance-card::before {
  right: -58px;
  top: -58px;
  width: 170px;
  height: 170px;
}

body.nh-page-account .balance-card::after {
  right: 82px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  background: color-mix(in srgb, #ffffff 10%, transparent);
}

body.nh-page-account .balance-info,
body.nh-page-account .recharge-btn {
  position: relative;
  z-index: 1;
}

body.nh-page-account .balance-label {
  margin-bottom: 9px;
  color: color-mix(in srgb, #ffffff 76%, var(--nh-primary-soft));
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

body.nh-page-account .balance-amount {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  line-height: 1;
}

body.nh-page-account .account-info-small {
  margin-top: 14px;
  color: color-mix(in srgb, #ffffff 76%, var(--nh-primary-soft));
  font-size: 14px;
}

body.nh-page-account .recharge-btn {
  display: inline-flex;
  min-width: 94px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, #ffffff 54%, var(--nh-primary-soft));
  border-radius: 6px;
  background: color-mix(in srgb, #ffffff 82%, var(--nh-primary-soft));
  color: var(--nh-primary-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

body.nh-page-account .recharge-btn:hover,
body.nh-page-account .recharge-btn:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--nh-primary-dark);
}

body.nh-page-account .features-section {
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.nh-page-account .section-title {
  margin: 0 0 12px;
  color: var(--nh-ink);
  font-size: 15px;
  font-weight: 720;
}

body.nh-page-account .features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.nh-page-account .feature-item {
  min-height: 126px;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid var(--nh-line);
  border-radius: 7px;
  background: var(--nh-surface);
  color: var(--nh-ink);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.nh-page-account .feature-item:hover,
body.nh-page-account .feature-item:focus {
  border-color: var(--nh-primary);
  background: var(--nh-primary-soft);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--nh-primary) 16%, transparent);
  color: var(--nh-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

body.nh-page-account .feature-icon-container {
  width: 38px;
  height: 38px;
  margin: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--nh-primary) 24%, var(--nh-line));
  border-radius: 6px;
  background: var(--nh-primary-soft);
}

body.nh-page-account .feature-icon {
  color: var(--nh-primary-dark);
  font-size: 17px;
}

body.nh-page-account .feature-name {
  color: var(--nh-ink);
  font-size: 13px;
  font-weight: 680;
}

body.nh-page-account .account-secondary {
  margin-top: 28px !important;
}

body.nh-page-account .account-exit {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  padding: 20px 0 72px;
  border-top: 1px solid var(--nh-line);
}

body.nh-page-account .account-exit-link {
  display: inline-flex;
  min-width: 146px;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--nh-danger) 30%, var(--nh-line));
  background: color-mix(in srgb, var(--nh-danger) 8%, var(--nh-surface));
  color: var(--nh-danger);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.nh-page-account .account-exit-link:hover,
body.nh-page-account .account-exit-link:focus {
  text-decoration: none;
  border-color: var(--nh-danger);
  background: color-mix(in srgb, var(--nh-danger) 14%, var(--nh-surface));
  color: var(--nh-danger);
}

/* Rate page */
body.nh-page-rate .rate-workspace {
  max-width: 980px;
}

body.nh-page-rate .rate-tabs {
  display: inline-flex;
  align-items: center;
}

body.nh-page-rate .rate-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
}

body.nh-page-rate .rate-tab:focus-visible {
  outline: 3px solid rgba(0, 127, 120, 0.2);
  outline-offset: 2px;
}

body.nh-page-rate .rate-search-field {
  position: relative;
  width: min(100%, 640px);
  margin: 0 0 14px;
}

body.nh-page-rate .rate-search-field .search-input {
  padding-right: 50px;
}

body.nh-page-rate .rate-search-field .search-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--nh-primary-dark);
  cursor: pointer;
}

body.nh-page-rate .rate-search-field .search-icon:hover,
body.nh-page-rate .rate-search-field .search-icon:focus {
  background: var(--nh-primary-soft);
  outline: 0;
}

body.nh-page-rate .rate-results-frame {
  width: min(100%, 920px);
  margin-top: 6px;
}

body.nh-page-rate .loading-spinner {
  width: min(100%, 920px);
  padding: 22px 0;
  color: var(--nh-primary-dark);
  text-align: center;
}

body.nh-page-rate .error-message {
  width: min(100%, 920px);
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--nh-danger) 28%, var(--nh-line));
  background: color-mix(in srgb, var(--nh-danger) 8%, var(--nh-surface));
}
body.nh-page-rate .rate-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid var(--nh-line);
  border-radius: 7px;
  box-shadow: none;
}

body.nh-page-rate .rate-tab {
  min-width: 126px;
  padding: 9px 14px;
  border-radius: 5px;
  color: var(--nh-muted);
  font-weight: 600;
}

body.nh-page-rate .rate-tab.active {
  background: var(--nh-primary);
  color: #ffffff;
}

body.nh-page-rate .input-group-container {
  max-width: 640px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.nh-page-rate .input-group-container .text-input {
  min-width: 0;
}

body.nh-page-rate .input-group-container .action-button {
  min-width: 92px;
  margin-left: 8px;
}

body.nh-page-rate .rate-cards-container {
  max-width: 640px;
  gap: 12px;
}

body.nh-page-rate .rate-card,
body.nh-page-rate .info-section,
body.nh-page-rate .table-container,
body.nh-page-rate .country-selector-wrapper,
body.nh-page-rate .rate-list-container {
  border: 1px solid var(--nh-line) !important;
  border-radius: 8px !important;
  background: var(--nh-surface) !important;
  box-shadow: none !important;
}

body.nh-page-rate .rate-card {
  padding: 18px;
  text-align: left;
}

body.nh-page-rate .rate-card.optimized {
  border-top: 3px solid var(--nh-primary) !important;
}

body.nh-page-rate .rate-card.normal {
  border-top: 3px solid var(--nh-warning) !important;
}

body.nh-page-rate .rate-card-header,
body.nh-page-rate .rate-area,
body.nh-page-rate .dest-sub {
  color: var(--nh-muted);
}

body.nh-page-rate .rate-price {
  color: var(--nh-ink);
  font-size: 24px;
}

body.nh-page-rate .info-section {
  max-width: 880px;
  padding: 14px 16px;
  color: var(--nh-muted);
}

body.nh-page-rate .table-container {
  max-width: 100%;
  padding: 0;
}

body.nh-page-rate .data-table th {
  background: var(--nh-surface-subtle);
  color: var(--nh-muted);
  font-size: 12px;
  text-transform: uppercase;
}

body.nh-page-rate .data-table td,
body.nh-page-rate .data-table th {
  padding: 13px 16px;
  border-color: var(--nh-line);
}

body.nh-page-rate .search-wrapper {
  max-width: 640px;
}

body.nh-page-rate .country-selector-wrapper {
  max-width: 640px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 8px 14px;
  color: var(--nh-ink);
  text-align: left;
  cursor: pointer;
}

body.nh-page-rate .country-selector-wrapper .country-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--nh-ink);
}

body.nh-page-rate .country-selector-wrapper #selectedCountryText {
  overflow: hidden;
  color: var(--nh-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nh-page-rate .country-selector-wrapper .dropdown-icon {
  margin-left: auto;
  color: var(--nh-muted);
}

body.nh-page-rate .country-selector-wrapper:hover,
body.nh-page-rate .country-selector-wrapper:focus {
  border-color: var(--nh-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh-primary) 18%, transparent) !important;
  outline: 0;
}

body.nh-page-rate .rate-table-header {
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--nh-line);
  border-bottom: 0;
  background: var(--nh-surface-subtle);
  color: var(--nh-muted);
  font-size: 12px;
}

body.nh-page-rate .rate-list-container {
  border-radius: 0 0 8px 8px !important;
}

body.nh-page-rate .rate-item {
  padding: 14px 16px;
  border-color: var(--nh-line);
}

body.nh-page-rate .pagination-container {
  min-height: 60px;
  padding: 10px 14px;
  border-top: 1px solid var(--nh-line);
  border-radius: 0 !important;
  background: var(--nh-surface-subtle);
}

body.nh-page-rate .pagination-info {
  color: var(--nh-muted);
  font-size: 12px;
}

body.nh-page-rate .pagination-controls {
  gap: 8px;
}

body.nh-page-rate .page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-ink);
}

body.nh-page-rate .page-btn:not(:disabled):hover,
body.nh-page-rate .page-btn:not(:disabled):focus {
  border-color: var(--nh-primary);
  background: var(--nh-primary);
  color: #ffffff;
}

body.nh-page-rate .page-current {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-ink);
}

/* CDR and history */
body.nh-page-cdr .cdr-workspace {
  max-width: 960px;
}

body.nh-page-cdr .query-section {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr) 172px 96px;
  align-items: end;
  gap: 12px;
}

body.nh-page-cdr .cdr-query-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.nh-page-cdr .cdr-query-copy label {
  color: var(--nh-ink);
  font-size: 14px;
  font-weight: 720;
}

body.nh-page-cdr .cdr-query-copy span {
  color: var(--nh-muted);
  font-size: 12px;
}

body.nh-page-cdr .query-section .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

body.nh-page-cdr .result-section > .error-message,
body.nh-page-cdr .result-section > .no-results {
  margin: 0;
  padding: 26px 18px;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  color: var(--nh-muted);
  text-align: center;
}
body.nh-page-cdr .query-section {
  width: min(100%, 640px);
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  box-shadow: none;
}

body.nh-page-cdr .query-section label {
  color: var(--nh-muted);
  font-weight: 600;
}

body.nh-page-cdr .query-section .action-button {
  min-width: 88px;
}

body.nh-page-cdr .result-section {
  width: min(100%, 860px);
}

body.nh-page-cdr .cdr-card {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  box-shadow: none;
}

body.nh-page-cdr .cdr-number,
body.nh-page-cdr .cdr-fee {
  color: var(--nh-ink);
  font-size: 16px;
}

body.nh-page-cdr .cdr-fee {
  color: var(--nh-primary-dark);
}

body.nh-page-cdr .cdr-row-middle,
body.nh-page-cdr .cdr-row-status,
body.nh-page-cdr .cdr-time {
  color: var(--nh-muted);
}

body.nh-page-cdr .cdr-duration {
  border-radius: 5px;
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  font-weight: 700;
}

body.nh-page-history .container {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0;
}

body.nh-page-history #history {
  padding: 0;
}

body.nh-page-history #history h3 {
  margin: 0 0 16px;
  color: var(--nh-ink);
  font-size: 18px;
  font-weight: 700;
}

body.nh-page-history #history-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
}

body.nh-page-history #history-list li {
  border-color: var(--nh-line);
}

body.nh-page-history #clear-history {
  min-height: 38px;
  margin-top: 14px !important;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--nh-danger) 26%, var(--nh-line));
  background: color-mix(in srgb, var(--nh-danger) 7%, var(--nh-surface));
  color: var(--nh-danger);
}

/* Dial workspace */
body.nh-page-dial > .container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0;
}

body.nh-page-dial #details {
  display: none !important;
}

body.nh-page-dial #sipcall {
  width: 100%;
  min-height: calc(100vh - 124px);
  padding: 0;
}

body.nh-page-dial #sipcall > .row,
body.nh-page-dial #sipcall .col-md-12 {
  margin: 0;
  padding: 0;
}

body.nh-page-dial #login {
  max-width: 420px;
  margin: 64px auto 0;
  padding: 24px;
  float: none;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
}

body.nh-page-dial #phone {
  width: 400px;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 24px;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  box-shadow: var(--nh-shadow);
}

body.nh-page-dial #shurukuang {
  width: 100%;
  height: 54px;
  margin: 0 0 10px;
  padding: 0 7px;
  border: 1px solid var(--nh-line);
  border-radius: 7px;
  background: var(--nh-surface-subtle);
}

body.nh-page-dial #shurukuang:focus-within {
  border-color: var(--nh-primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 120, 0.12);
}

body.nh-page-dial #shurukuang .phone-input {
  height: 52px;
  padding: 0 8px;
  background: transparent;
  color: var(--nh-ink);
  font-size: 24px;
  text-align: left;
}

body.nh-page-dial #shurukuang .phone-input::placeholder {
  color: #a2aeab;
}

body.nh-page-dial .dial-code-trigger,
body.nh-page-dial #toggle-contacts-btn {
  color: var(--nh-primary) !important;
}

body.nh-page-dial #country-info-display,
body.nh-page-dial #country-info-display-above {
  margin-bottom: 6px;
  color: var(--nh-muted);
}

body.nh-page-dial .rate-info-container {
  min-height: 24px !important;
  margin: 0 0 10px !important;
  color: var(--nh-muted) !important;
  font-size: 12px !important;
}

body.nh-page-dial #dialpad {
  width: 100%;
  max-width: none;
  gap: 10px;
}

body.nh-page-dial .dial-button,
body.nh-page-dial .btn-success-choicecall {
  width: 100%;
  height: 72px;
  border: 1px solid var(--nh-line);
  border-radius: 7px;
  background: var(--nh-surface-subtle);
  color: var(--nh-ink);
  font-size: 24px;
}

body.nh-page-dial .dial-button:hover,
body.nh-page-dial .dial-button:focus {
  border-color: color-mix(in srgb, var(--nh-primary) 34%, var(--nh-line));
  background: var(--nh-primary-soft);
}

body.nh-page-dial #choicecall,
body.nh-page-dial #call {
  border-color: var(--nh-primary);
  background: var(--nh-primary);
  color: #ffffff;
}

body.nh-page-dial #choicecall:hover,
body.nh-page-dial #choicecall:focus,
body.nh-page-dial #call:hover,
body.nh-page-dial #call:focus {
  border-color: var(--nh-primary-dark);
  background: var(--nh-primary-dark);
}

body.nh-page-dial .button-no-background,
body.nh-page-dial #language-btn-dialpad {
  min-width: 0;
  height: 72px;
  border: 1px solid var(--nh-line) !important;
  border-radius: 7px;
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-muted) !important;
}

body.nh-page-dial .dial-status-chip {
  position: relative;
  display: grid !important;
  width: min(100%, 54px) !important;
  min-width: 0;
  height: 48px !important;
  align-self: center;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 4px 5px !important;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--nh-primary) 28%, var(--nh-line)) !important;
  background: linear-gradient(180deg, var(--nh-surface), var(--nh-surface-subtle)) !important;
  color: var(--nh-ink) !important;
  font-size: 10px;
  line-height: 1.12;
  text-align: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 8%, transparent);
}

body.nh-page-dial .dial-status-chip::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nh-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  opacity: .92;
}

body.nh-page-dial .dial-status-label,
body.nh-page-dial .dial-status-balance,
body.nh-page-dial .dial-status-connection {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nh-page-dial .dial-status-label {
  color: var(--nh-muted) !important;
  font-size: 6px;
  font-weight: 750;
  text-transform: uppercase;
}

body.nh-page-dial .dial-status-balance {
  min-height: 12px;
  color: var(--nh-ink) !important;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.nh-page-dial .dial-status-connection {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.nh-page-dial #balance-label,
body.nh-page-dial #sip-status-text,
body.nh-page-dial #language-btn-dialpad span {
  color: var(--nh-muted) !important;
}

body.nh-page-dial #balance {
  color: var(--nh-ink);
  font-size: 10px;
}

body.nh-page-dial #language-btn-dialpad i {
  color: var(--nh-primary) !important;
  font-size: 28px !important;
}

body.nh-page-dial .dial-status-connection.nh-sip-connected {
  color: var(--nh-primary) !important;
}

body.nh-page-dial #custom-toast {
  border-radius: 6px;
  background: var(--nh-primary-dark);
}

/* Secondary information pages */
body.nh-product-app .intro-text,
body.nh-product-app .settings-group,
body.nh-product-app .share-section,
body.nh-product-app .referred-list,
body.nh-product-app .payment-history-list,
body.nh-product-app .recharge-card {
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  box-shadow: none;
}

body.nh-product-app .intro-text {
  max-width: 900px;
  padding: 16px;
  color: var(--nh-muted);
}

body.nh-product-app .settings-group {
  max-width: 900px;
}

body.nh-product-app .setting-header {
  min-height: 56px;
  padding: 14px 16px;
}

body.nh-product-app .setting-header:hover {
  background: var(--nh-surface-subtle);
}

body.nh-product-app .setting-title {
  color: var(--nh-ink);
  font-size: 15px;
}

body.nh-product-app .setting-content {
  color: var(--nh-muted);
}

body.nh-product-app .info-item {
  border-color: var(--nh-line);
}

body.nh-product-app .copy-button {
  border-radius: 5px;
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
}

body.nh-product-app .share-section,
body.nh-product-app .referred-list,
body.nh-product-app .payment-history-list,
body.nh-product-app .recharge-card {
  max-width: 860px;
  padding: 20px;
}

body.nh-product-app .share-link-container #copyButton,
body.nh-product-app .paste-button {
  border-radius: 6px;
  background: var(--nh-primary);
  color: #ffffff;
}

body.nh-page-help .main-content iframe {
  display: block;
  min-height: 620px;
  height: calc(100vh - 130px) !important;
  border: 1px solid var(--nh-line) !important;
  border-radius: 8px;
  background: var(--nh-surface);
}

/* Query workspace refinements must follow the legacy page rules. */
body.nh-page-rate .rate-workspace {
  max-width: 980px;
}

body.nh-page-rate .rate-search-field {
  position: relative;
  width: min(100%, 640px);
  max-width: none;
  margin: 0 0 14px;
}

body.nh-page-rate .rate-search-field .search-input {
  padding-right: 50px;
}

body.nh-page-rate .rate-search-field .search-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--nh-primary-dark);
  cursor: pointer;
}

body.nh-page-rate .rate-results-frame {
  width: min(100%, 920px);
  margin-top: 6px;
}

body.nh-page-cdr .cdr-workspace {
  max-width: 960px;
}

body.nh-page-cdr .query-section {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr) 172px 96px;
  align-items: end;
  gap: 12px;
}

body.nh-page-cdr .cdr-query-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.nh-page-cdr .cdr-query-copy label {
  color: var(--nh-ink);
  font-size: 14px;
  font-weight: 720;
}

body.nh-page-cdr .cdr-query-copy span {
  color: var(--nh-muted);
  font-size: 12px;
}
@media (max-width: 959px) {
  body.nh-page-cdr .query-section {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  body.nh-page-cdr .cdr-query-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 959px) {
  body.nh-product-app {
    padding: calc(62px + env(safe-area-inset-top)) 16px calc(82px + env(safe-area-inset-bottom));
    background: var(--nh-page-bg, var(--nh-bg));
    font-size: 14px;
  }

  .nh-desktop-nav,
  .nh-topbar {
    display: none;
  }

  .nh-mobile-topbar {
    position: fixed;
    z-index: 1200;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: calc(56px + env(safe-area-inset-top));
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--nh-line);
    background: var(--nh-surface);
    background: color-mix(in srgb, var(--nh-surface) 88%, var(--nh-page-bg));
    backdrop-filter: blur(14px);
  }

  .nh-mobile-page-title {
    overflow: hidden;
    color: var(--nh-ink);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nh-mobile-state {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--nh-muted);
    font-size: 11px;
  }

  .nh-mobile-state .nh-state-dot {
    width: 6px;
    height: 6px;
  }

  .nh-mobile-nav {
    position: fixed;
    z-index: 1600;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--nh-line);
    background: var(--nh-surface);
    background: color-mix(in srgb, var(--nh-surface) 90%, var(--nh-page-bg));
    backdrop-filter: blur(14px);
  }

  .nh-mobile-nav-link {
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 6px;
    color: var(--nh-muted);
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
  }

  .nh-mobile-nav-link i {
    font-size: 18px;
  }

  .nh-mobile-nav-link.active {
    background: var(--nh-primary-soft);
    color: var(--nh-primary-dark);
    font-weight: 700;
  }

  body.nh-product-app .main-content,
  body.nh-product-app .main-content.container {
    width: 100%;
    max-width: none;
  }

  body.nh-page-account .balance-card {
    min-height: 152px;
    margin-bottom: 26px;
    padding: 22px 20px;
  }

  body.nh-page-account .balance-amount {
    font-size: 32px;
  }

  body.nh-page-account .recharge-btn {
    min-width: 78px;
    min-height: 38px;
    padding: 0 12px;
  }

  body.nh-page-account .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.nh-page-account .feature-item {
    min-height: 112px;
    padding: 14px;
  }

  body.nh-page-account .feature-icon-container {
    width: 34px;
    height: 34px;
  }

  body.nh-page-account .feature-name {
    font-size: 13px;
  }

  body.nh-page-account .account-secondary {
    margin-top: 24px !important;
  }

  body.nh-page-account .account-exit {
    justify-content: flex-start;
    margin-top: 20px;
    padding: 16px 0 calc(86px + env(safe-area-inset-bottom));
  }

  body.nh-page-account .account-exit-link {
    width: 100%;
    min-height: 48px;
  }

  body.nh-page-rate .rate-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.nh-page-rate .rate-tab {
    min-width: 0;
    padding: 9px 4px;
    font-size: 12px;
  }

  body.nh-page-rate .input-group-container {
    margin-bottom: 14px;
  }

  body.nh-page-rate .input-group-container .action-button {
    min-width: 76px;
  }

  body.nh-page-rate .rate-cards-container {
    gap: 8px;
  }

  body.nh-page-rate .rate-card {
    min-width: 0;
    padding: 13px;
  }

  body.nh-page-rate .rate-price {
    font-size: 18px;
  }

  body.nh-page-rate .rate-table-header,
  body.nh-page-rate .rate-item {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }

  body.nh-page-rate .col-dest {
    min-width: 0;
  }

  body.nh-page-rate .dest-name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.nh-page-rate .col-prefix,
  body.nh-page-rate .col-rate {
    font-size: 10px;
  }

  body.nh-page-rate .pagination-container {
    padding: 10px;
  }

  body.nh-page-rate .pagination-info {
    max-width: 40%;
  }

  body.nh-page-cdr .query-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0;
    border: 0;
  }

  body.nh-page-cdr .query-section label {
    grid-column: 1 / -1;
  }

  body.nh-page-cdr .query-section .date-input {
    width: 100%;
  }

  body.nh-page-cdr .cdr-card {
    padding: 14px;
  }

  body.nh-page-dial {
    padding-right: 12px;
    padding-left: 12px;
    background: var(--nh-page-bg, var(--nh-bg));
  }

  body.nh-page-dial > .container {
    width: 100%;
  }

  body.nh-page-dial #sipcall {
    min-height: auto;
  }

  body.nh-page-dial #phone {
    width: min(100%, 430px);
    margin: 10px auto 0;
    padding: 12px 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.nh-page-dial #login {
    margin-top: 18px;
    border-radius: 7px;
  }

  body.nh-page-dial #shurukuang {
    height: 56px;
    margin-bottom: 9px;
  }

  body.nh-page-dial #shurukuang .phone-input {
    height: 54px;
    font-size: 23px;
  }

  body.nh-page-dial #dialpad {
    gap: 8px;
  }

  body.nh-page-dial .dial-button,
  body.nh-page-dial .btn-success-choicecall,
  body.nh-page-dial .button-no-background,
  body.nh-page-dial #language-btn-dialpad {
    height: 62px;
  }

  body.nh-page-dial .dial-button,
  body.nh-page-dial .btn-success-choicecall {
    font-size: 21px;
  }

  body.nh-product-app .intro-text,
  body.nh-product-app .settings-group,
  body.nh-product-app .share-section,
  body.nh-product-app .referred-list,
  body.nh-product-app .payment-history-list,
  body.nh-product-app .recharge-card {
    padding: 14px;
  }

  body.nh-page-help .main-content iframe {
    min-height: 540px;
    height: calc(100vh - 150px) !important;
    border-radius: 6px;
  }
}

@media (max-width: 359px) {
  body.nh-product-app {
    padding-right: 11px;
    padding-left: 11px;
  }

  body.nh-page-dial .dial-button,
  body.nh-page-dial .btn-success-choicecall,
  body.nh-page-dial .button-no-background,
  body.nh-page-dial #language-btn-dialpad {
    height: 56px;
  }

  body.nh-page-rate .rate-tab {
    font-size: 11px;
  }
}

@media (max-width: 959px) {
  body.nh-page-cdr .query-section {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--nh-line);
    border-radius: 8px;
    background: var(--nh-surface);
  }

  body.nh-page-cdr .cdr-query-copy {
    grid-column: 1 / -1;
  }

  body.nh-page-cdr .query-section label {
    grid-column: auto;
  }
}

/* Dialer workspace */
@media (min-width: 960px) {
  body.nh-page-dial {
    background: var(--nh-page-bg, #eef3f1);
  }

  body.nh-page-dial #sipcall {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 0 42px;
  }

  body.nh-page-dial #phone {
    width: 440px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--nh-line);
    background: var(--nh-surface);
    box-shadow: var(--nh-shadow);
  }

  body.nh-page-dial #shurukuang {
    height: 60px;
    margin-bottom: 12px;
    border-color: var(--nh-line);
  }

  body.nh-page-dial #shurukuang .phone-input {
    height: 58px;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
  }

  body.nh-page-dial .rate-info-container {
    min-height: 28px !important;
    margin-bottom: 14px !important;
    padding: 5px 0;
    border-bottom: 1px solid var(--nh-line);
  }

  body.nh-page-dial #dialpad {
    gap: 9px;
  }

  body.nh-page-dial .dial-button,
  body.nh-page-dial .btn-success-choicecall {
    height: 76px;
    border-color: var(--nh-line);
    font-size: 25px;
    font-weight: 620;
  }

  body.nh-page-dial .button-no-background,
  body.nh-page-dial #language-btn-dialpad {
    height: 76px;
    border-color: var(--nh-line) !important;
  }

  body.nh-page-dial .dial-status-chip {
    width: 58px !important;
    height: 50px !important;
  }
}

@media (max-width: 959px) {
  body.nh-page-dial #phone {
    padding-top: 8px;
  }

  body.nh-page-dial #shurukuang {
    border-color: var(--nh-line);
    background: var(--nh-surface-subtle);
  }
}

/* Appearance preferences */
html[data-nh-theme="cobalt"] {
  --nh-bg: #f3f6fb;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #f5f8fd;
  --nh-ink: #16233b;
  --nh-muted: #63718a;
  --nh-line: #d9e1ef;
  --nh-rail: #17233b;
  --nh-rail-muted: #b4bfd3;
  --nh-primary: #1769d1;
  --nh-primary-dark: #0f55ae;
  --nh-primary-soft: #e7f0ff;
  --nh-warning: #a86610;
  --nh-danger: #bd3c55;
  --nh-shadow: 0 10px 28px rgba(22, 35, 59, 0.08);
}

html[data-nh-theme="coral"] {
  --nh-bg: #fbf5f3;
  --nh-surface: #ffffff;
  --nh-surface-subtle: #fff9f7;
  --nh-ink: #33221f;
  --nh-muted: #796660;
  --nh-line: #eadbd5;
  --nh-rail: #30211e;
  --nh-rail-muted: #d0b8ae;
  --nh-primary: #c94e40;
  --nh-primary-dark: #a83c31;
  --nh-primary-soft: #fbe9e5;
  --nh-warning: #a66b14;
  --nh-danger: #b42e35;
  --nh-shadow: 0 10px 28px rgba(51, 34, 31, 0.08);
}

.nh-appearance-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: transparent;
  color: var(--nh-rail-muted);
  cursor: pointer;
}

.nh-appearance-toggle:hover,
.nh-appearance-toggle:focus {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.nh-desktop-appearance {
  margin: 0 4px 10px;
}

.nh-mobile-appearance {
  border-color: var(--nh-line);
  background: var(--nh-surface);
  color: var(--nh-primary-dark);
}

.nh-mobile-appearance:hover,
.nh-mobile-appearance:focus {
  border-color: var(--nh-primary);
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
}

.nh-appearance-panel {
  position: fixed;
  z-index: 2400;
  bottom: 72px;
  left: 268px;
  width: 262px;
  padding: 14px;
  border: 1px solid var(--nh-line);
  border-radius: 8px;
  background: var(--nh-surface);
  box-shadow: var(--nh-shadow);
}

.nh-appearance-panel[hidden] {
  display: none;
}

.nh-appearance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nh-line);
  color: var(--nh-ink);
  font-size: 14px;
}

.nh-appearance-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--nh-muted);
  cursor: pointer;
}

.nh-appearance-close:hover,
.nh-appearance-close:focus {
  background: var(--nh-surface-subtle);
  color: var(--nh-ink);
}

.nh-appearance-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 13px;
}

.nh-appearance-group > span {
  color: var(--nh-muted);
  font-size: 12px;
  font-weight: 650;
}

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

.nh-theme-choice {
  display: grid;
  min-width: 0;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-muted);
  font-size: 11px;
  cursor: pointer;
}

.nh-theme-choice i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.nh-theme-choice b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-theme-jade i { background: #007f78; }
.nh-theme-cobalt i { background: #1769d1; }
.nh-theme-coral i { background: #c94e40; }

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

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

.nh-density-options button {
  min-height: 34px;
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  background: var(--nh-surface);
  color: var(--nh-muted);
  font-size: 12px;
  cursor: pointer;
}

.nh-density-options button.active,
.nh-density-options button:hover,
.nh-density-options button:focus {
  border-color: var(--nh-primary);
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  font-weight: 700;
}

body.nh-density-compact .nh-nav-link {
  min-height: 38px;
}

body.nh-density-compact .nh-topbar {
  height: 52px;
}

body.nh-density-compact {
  padding-top: 76px;
}

body.nh-density-compact.nh-page-history .history-entry {
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 959px) {
  .nh-mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .nh-appearance-panel {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }

  body.nh-density-compact {
    padding-top: calc(58px + env(safe-area-inset-top));
  }

  body.nh-density-compact .nh-mobile-topbar {
    height: calc(52px + env(safe-area-inset-top));
  }
}

/* Final dialer polish: balance/status tile, language icon, logo clipping, and call quality. */
.nh-brand-mark {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nh-brand-mark img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit;
}

body.nh-product-app.nh-page-dial .dial-status-chip {
  position: relative;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 72px !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "balance"
    "connection";
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 9px 10px !important;
  overflow: hidden;
  border-color: var(--nh-line) !important;
  border-radius: 7px !important;
  background: var(--nh-surface-subtle) !important;
  box-shadow: none !important;
  color: var(--nh-ink) !important;
  text-align: center;
}

body.nh-product-app.nh-page-dial .dial-status-chip::after {
  top: 7px !important;
  right: 7px !important;
  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  border-radius: 999px;
  background: var(--nh-warning, #a86610) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh-warning, #a86610) 18%, transparent) !important;
}

body.nh-product-app.nh-page-dial .dial-status-chip:has(.nh-sip-connected)::after {
  background: var(--nh-primary, #007f78) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh-primary, #007f78) 18%, transparent) !important;
}

body.nh-product-app.nh-page-dial .dial-status-label {
  grid-area: label;
  justify-self: center;
  color: var(--nh-muted) !important;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1;
  text-transform: none;
}

body.nh-product-app.nh-page-dial .dial-status-balance {
  grid-area: balance;
  justify-self: center;
  min-height: 16px;
  color: var(--nh-ink) !important;
  font-size: 14px !important;
  font-weight: 820;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

body.nh-product-app.nh-page-dial .dial-status-connection {
  position: static !important;
  grid-area: connection;
  justify-self: center;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: auto !important;
  border: 0 !important;
  color: var(--nh-muted) !important;
  font-size: 11px !important;
  font-weight: 720;
  line-height: 1.1;
  white-space: nowrap;
}

body.nh-product-app.nh-page-dial .dial-status-connection.nh-sip-connected {
  color: var(--nh-primary-dark, #00655f) !important;
}

body.nh-product-app.nh-page-dial #language-btn-dialpad,
body.nh-product-app.nh-page-dial #language-btn-dialpad.nh-language-button {
  width: 100% !important;
  min-width: 0 !important;
  height: 62.7px !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  gap: 4px;
  border: 1px solid var(--nh-line) !important;
  border-radius: 7px !important;
  background: var(--nh-surface-subtle) !important;
  color: var(--nh-ink) !important;
}

body.nh-product-app.nh-page-dial #language-btn-dialpad i {
  color: var(--nh-primary) !important;
  font-size: 28px !important;
  line-height: 1;
}

body.nh-product-app.nh-page-dial #language-btn-dialpad span {
  color: var(--nh-muted) !important;
  font-size: 10px !important;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

body.nh-product-app.nh-page-dial #call-quality-slot {
  display: flex !important;
  justify-content: center;
  width: min(260px, 90vw) !important;
  margin: 0 auto 22px !important;
}

body.nh-product-app.nh-page-dial #rtp-stats-display {
  width: min(260px, 90vw) !important;
  margin: 0 auto !important;
  padding: 16px 20px !important;
  border: 1px solid color-mix(in srgb, var(--nh-line) 78%, transparent) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--nh-surface) 88%, transparent) !important;
  color: var(--nh-ink) !important;
  box-shadow: 0 10px 30px rgba(21, 35, 33, 0.16) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

body.nh-product-app.nh-page-dial #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-dial #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-dial #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-dial #rtp-stats-display.simple-mode {
  width: auto !important;
  min-width: 96px;
  padding: 8px 16px !important;
}

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

@media (min-width: 960px) {
  body.nh-product-app.nh-page-dial .dial-status-chip {
    height: 76px !important;
  }

  body.nh-product-app.nh-page-dial #language-btn-dialpad {
    height: 66.5px !important;
  }
}

@media (max-width: 600px) {
  body.nh-product-app.nh-page-dial .dial-status-chip {
    height: 62px !important;
    padding: 7px 8px !important;
  }

  body.nh-product-app.nh-page-dial #language-btn-dialpad {
    height: 54.15px !important;
    padding: 6px 8px !important;
  }

  body.nh-product-app.nh-page-dial .dial-status-label,
  body.nh-product-app.nh-page-dial .dial-status-connection {
    font-size: 9px !important;
  }

  body.nh-product-app.nh-page-dial .dial-status-balance {
    font-size: 12px !important;
  }
}

@media (max-width: 359px) {
  body.nh-product-app.nh-page-dial #language-btn-dialpad {
    height: 49.4px !important;
    padding: 5px 6px !important;
  }
}
