textarea {
  height: auto;
  min-height: 88px;
  overflow: hidden;
  resize: none;
}
.operator-stock {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-eye {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 38px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.password-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.captcha-line button {
  border: 0;
  background: transparent;
  padding: 0;
}
.captcha-line img {
  width: 110px;
  height: 46px;
  display: block;
}
.form-error[hidden] {
  display: none;
}
.form-error {
  white-space: normal;
}
.description {
  white-space: normal;
  overflow-wrap: anywhere;
}
.customer-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.customer-secret {
  overflow-wrap: anywhere;
}
.button-row {
  flex-wrap: wrap;
}
.readonly-social {
  cursor: default;
}
.body-copy p {
  overflow-wrap: anywhere;
}
.error-banner {
  padding: 20px;
  color: #af5249;
}
.order-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 160px;
  max-width: 320px;
}
.api-unavailable {
  margin-top: 16px;
}
.membership-hero h1 {
  margin-top: 18px;
}

.description-toggle[hidden] {
  display: none;
}
.market-tools .body-copy {
  margin-top: 14px;
}
/* Every SMS remains visible; long text wraps and expands the number panel. */
.sms-message + .sms-message {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #dce6ea);
}
.sms-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sms-message .hint {
  overflow-wrap: anywhere;
}
.market-delivery {
  min-width: 220px;
}
.market-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.market-delivery pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  margin: 12px 0 0;
}

#number-countries [data-country] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.country-min-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.picker-heading label {
  margin-bottom: 0;
}
.mobile-picker-toggle {
  display: none;
}
@media (max-width: 700px) {
  .market-grid > .market-tools {
    order: -1;
  }
  .account .balance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 6ch;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.2;
  }
  .account .balance b {
    font-size: 14px;
    margin: 0;
  }
  .top .account {
    gap: 6px;
  }
  .top .brand {
    font-size: 16px;
  }
  .top .brand img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }
  .top .language-button,
  .top .mobile-menu {
    padding: 8px;
  }
  .virtual-picker-panel .inline-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .virtual-picker-panel .field {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
  .mobile-picker-toggle {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
  }
  .virtual-picker-panel .picker-list {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  #number-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #number-services button {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 700px) {
  .virtual-workspace > .virtual-picker-panel {
    height: auto;
    overflow: visible;
  }
  .virtual-picker-panel > .inline-fields {
    height: auto;
  }
  .virtual-picker-panel #number-services,
  .virtual-picker-panel #number-countries,
  .virtual-picker-panel #number-operators {
    flex: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

.mobile-nav-backdrop {
  display: none;
}
@media (max-width: 700px) {
  .balance-label,
  .balance-unit {
    display: none;
  }
  .top.wrap {
    gap: 6px;
  }
  .top .brand {
    margin-right: auto;
    font-size: 14px;
    white-space: nowrap;
  }
  .top .brand img {
    width: 22px;
    height: 22px;
    margin-right: 4px;
  }
  .top .account {
    gap: 7px;
  }
  #theme-toggle {
    padding: 8px;
  }
  #theme-toggle > span {
    display: inline;
  }
  #site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  #mobile-menu {
    flex-shrink: 0;
  }
  #mobile-nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 66px 0 0;
    border: 0;
    border-radius: 0;
    background: #0006;
    z-index: 100;
    padding: 0;
  }
  #header-nav.open {
    display: flex;
    position: fixed;
    top: 76px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 48px);
    max-width: 340px;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-wrap: nowrap;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px #0003;
    z-index: 101;
  }
  #header-nav > a {
    flex-shrink: 0;
    border-radius: 10px;
    min-height: 44px;
  }
  body:has(#header-nav.open) {
    overflow: hidden;
  }
  .invite-layout > .invite-summary,
  .invite-layout > .card,
  .invite-summary > .card,
  .invite-stat-grid {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
}

@media (max-width: 700px) {
  #theme-toggle .nav-icon {
    display: block;
    width: 23px;
    height: 23px;
    stroke-width: 2;
    color: var(--ink);
  }
  #theme-toggle > span {
    display: none;
  }
  #mobile-menu,
  #language-toggle {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  #mobile-menu:hover,
  #language-toggle:hover {
    background: var(--action-hover, #ffffff0d);
  }
}
#language-toggle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#language-toggle:hover {
  background: var(--action-hover, #ffffff0d);
}

@media(max-width:700px){
 #funds-form > .choice-grid { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 #funds-form > .choice-grid > .choice { width:100%; min-width:0; max-width:none; }
}

#funds-method-note { display:flex; align-items:center; gap:24px; margin-bottom:26px; }
#funds-method-note > div:first-child { flex:1; min-width:0; }
.funds-contact { display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.funds-contact a { color:var(--action-ink); }
.virtual-workspace > #current-number { overscroll-behavior:auto; }
@media(max-width:900px) {
 .virtual-workspace > #current-number {
  overflow:visible;
  overscroll-behavior:auto;
  height:auto;
  max-height:none;
 }
}
body #number-region-step #country-sort {
 display:block;
 width:110px;
 max-width:100%;
 min-width:0;
 margin:10px 0 8px;
 padding:8px 28px 8px 12px;
 background-color:transparent;
 border-color:transparent;
 box-shadow:none;
 color:var(--ink);
}
@media(max-width:700px) { #funds-method-note { align-items:flex-start; flex-direction:column; gap:14px; } }
