.vx-native-account {
  --vx-ink: #0f172a;
  --vx-muted: #62738f;
  --vx-muted-2: #6f7e97;
  --vx-border: rgba(15, 23, 42, 0.08);
  --vx-border-strong: #d9e2ef;
  --vx-surface: #ffffff;
  --vx-surface-soft: #fbfdff;
  --vx-surface-muted: #f6f8fc;
  --vx-shadow-soft: 0 18px 48px rgba(11, 23, 54, 0.06);
  --vx-shadow-card: 0 12px 28px rgba(11, 23, 54, 0.045);
  --vx-primary: #111b44;
  --vx-primary-hover: #1a2861;
  --vx-success-bg: #edf9f0;
  --vx-success-border: #cbeed6;
  --vx-success-ink: #2f7c4f;
  --vx-danger-bg: #fff6f7;
  --vx-danger-border: #f1d8dc;
  --vx-danger-ink: #9f1239;
  --vx-title-size: clamp(1.85rem, 5.4vw, 3rem);
  --vx-subtitle-size: clamp(0.96rem, 2.2vw, 1.05rem);
  --vx-section-title-size: 1.14rem;
  width: 100%;
  color: var(--vx-ink);
  position: relative;
  overflow-x: clip;
}

.vx-native-account,
.vx-native-account * {
  box-sizing: border-box;
}

.vx-native-account a,
.vx-native-account button,
.vx-native-account input,
.vx-native-account select {
  font: inherit;
}

.vx-account-app__shell {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: clip;
}

.vx-account-app__shell > * {
  min-width: 0;
}

.vx-native-account__skeleton,
.vx-account-hero,
.vx-section-card,
.vx-auth-card,
.vx-config-view {
  border: 1px solid var(--vx-border);
  border-radius: 28px;
  background: var(--vx-surface);
  box-shadow: var(--vx-shadow-soft);
}

.vx-native-account__skeleton {
  padding: 20px;
}

.vx-native-account__hero {
  display: grid;
  gap: 14px;
}

.vx-native-account__line,
.vx-native-account__chip,
.vx-native-account__card,
.vx-native-account__panel {
  background:
    linear-gradient(
      110deg,
      rgba(238, 243, 250, 0.92) 8%,
      rgba(255, 255, 255, 0.98) 18%,
      rgba(238, 243, 250, 0.92) 33%
    )
    0 0 / 220% 100%;
  animation: vxNativeSkeleton 1.15s linear infinite;
}

.vx-native-account__line {
  height: 14px;
  border-radius: 999px;
}

.vx-native-account__line-title {
  width: 48%;
  height: 26px;
}

.vx-native-account__line-subtitle {
  width: 72%;
}

.vx-native-account__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vx-native-account__chip {
  width: 130px;
  height: 42px;
  border-radius: 16px;
}

.vx-native-account__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.vx-native-account__card {
  min-height: 124px;
  border-radius: 20px;
}

.vx-native-account__panel {
  margin-top: 16px;
  min-height: 240px;
  border-radius: 24px;
}

.vx-account-hero {
  padding: clamp(16px, 2.6vw, 28px);
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(241, 245, 252, 0.9), transparent 34%),
    var(--vx-surface);
}

.vx-account-hero__head {
  display: grid;
  gap: 12px;
  align-items: start;
}

.vx-account-title {
  margin: 0;
  font-size: var(--vx-title-size);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--vx-ink);
}

.vx-account-subtitle {
  margin: 8px 0 0;
  max-width: 54ch;
  font-size: var(--vx-subtitle-size);
  line-height: 1.5;
  color: var(--vx-muted);
}

.vx-account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vx-account-actions--footer {
  padding: 0 2px 2px;
}

.vx-button,
.vx-button:visited {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  border-radius: 17px;
  border: 1px solid var(--vx-border-strong);
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.vx-button[disabled],
.vx-icon-button[disabled] {
  opacity: 0.64;
  pointer-events: none;
}

.vx-button.is-copied {
  border-color: var(--vx-success-border);
  background: var(--vx-success-bg);
  color: var(--vx-success-ink);
  box-shadow: none;
}

.vx-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(17, 27, 68, 0.08);
}

.vx-button--primary {
  background: var(--vx-primary);
  color: #fff;
  border-color: var(--vx-primary);
}

.vx-button--primary:hover {
  color: #fff;
  background: var(--vx-primary-hover);
  border-color: var(--vx-primary-hover);
}

.vx-button--ghost {
  background: #fff;
  color: var(--vx-primary);
  border-color: var(--vx-border-strong);
}

.vx-button--danger {
  background: var(--vx-danger-bg);
  color: var(--vx-danger-ink);
  border-color: var(--vx-danger-border);
}

.vx-button--danger:hover {
  color: var(--vx-danger-ink);
  background: #ffecef;
  border-color: #ebc0ca;
}

.vx-button--block {
  width: 100%;
}

.vx-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vx-account-summary {
  border: 1px solid var(--vx-border);
  border-radius: 24px;
  background: var(--vx-surface);
  box-shadow: var(--vx-shadow-card);
  padding: 10px;
}

.vx-account-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e8eef7;
  background: linear-gradient(180deg, #fbfcff, #f7f9fd);
}

.vx-account-summary__item {
  min-width: 0;
  padding: 12px 14px;
  min-height: 88px;
  background: transparent;
  border-right: 1px solid #e8eef7;
  border-bottom: 1px solid #e8eef7;
}

.vx-account-summary__item:nth-child(2n) {
  border-right: 0;
}

.vx-account-summary__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.vx-account-summary__label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--vx-muted-2);
}

.vx-account-summary__value {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--vx-ink);
}

.vx-account-summary__value .vx-status-pill,
.vx-account-summary__value .vx-stat-code,
.vx-account-summary__value .vx-inline-link {
  margin-top: 0;
}

.vx-profile-form {
  display: grid;
  gap: 16px;
  padding: 0 14px 16px;
}

.vx-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vx-profile-field {
  display: grid;
  gap: 8px;
}

.vx-profile-field span {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--vx-muted-2);
}

.vx-profile-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--vx-border-strong);
  background: #fff;
  color: var(--vx-ink);
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.vx-profile-field input:focus {
  border-color: rgba(17, 27, 68, 0.28);
  box-shadow: 0 0 0 4px rgba(17, 27, 68, 0.08);
}

.vx-profile-actions {
  display: flex;
}

.vx-profile-errors {
  margin-bottom: 0;
}

.vx-inline-link--button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.vx-link-body {
  display: grid;
  gap: 16px;
  padding: 0 14px 16px;
}

.vx-link-code {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.vx-link-code code {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: var(--vx-primary);
  letter-spacing: 0.08em;
}

.vx-status-banner {
  border: 1px solid var(--vx-success-border);
  border-radius: 18px;
  background: var(--vx-success-bg);
  color: var(--vx-success-ink);
  padding: 14px 16px;
  font-weight: 700;
}

.vx-stat-card,
.vx-info-card,
.vx-field-card {
  min-width: 0;
  border: 1px solid var(--vx-border);
  border-radius: 22px;
  background: var(--vx-surface);
  box-shadow: var(--vx-shadow-card);
  padding: 16px;
}

.vx-stat-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--vx-muted-2);
}

.vx-stat-value {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--vx-ink);
}

.vx-stat-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.vx-stat-code,
.vx-code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid #e6eaf2;
  color: #d9468f;
  font-size: 14px;
  font-weight: 700;
}

.vx-inline-link {
  color: #b91c1c;
  font-weight: 700;
}

.vx-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.vx-status-pill.is-success {
  background: var(--vx-success-bg);
  border-color: var(--vx-success-border);
  color: var(--vx-success-ink);
}

.vx-status-pill.is-muted {
  background: #f4f7fc;
  border-color: #e1e8f4;
  color: #53627c;
}

.vx-section-card {
  overflow: hidden;
}

.vx-section-card__head {
  display: grid;
  gap: 6px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #edf1f7;
}

.vx-section-card__head h2 {
  margin: 0;
  font-size: var(--vx-section-title-size);
  font-weight: 800;
  color: var(--vx-ink);
}

.vx-section-card__head span {
  color: var(--vx-muted);
  font-size: 14px;
  font-weight: 600;
}

.vx-config-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.vx-config-list > * {
  width: 100%;
  min-width: 0;
}

.vx-config-card {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5ebf4;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.vx-config-card__head {
  display: grid;
  gap: 8px;
}

.vx-config-card__header-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vx-config-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.vx-config-card__name-group {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  padding: 9px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vx-config-card__title {
  margin: 0;
  display: block;
  width: auto !important;
  min-width: 0;
  font-size: 1.24rem;
  line-height: 1.1;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-config-card__title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-account-subtitle--config-name {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-weight: 700;
  color: var(--vx-ink);
}

.vx-account-subtitle--config-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-config-card__sub {
  color: var(--vx-muted);
  font-size: 14px;
  font-weight: 600;
}

.vx-config-card__title-row .vx-status-pill {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 13px;
  flex: 0 0 auto;
  margin-left: auto;
}

.vx-rename-panel {
  margin-top: 10px;
}

.vx-rename-panel[hidden] {
  display: none !important;
}

.vx-rename-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.vx-config-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vx-config-card__meta--single {
  grid-template-columns: 1fr;
}

.vx-config-meta {
  min-width: 0;
  border: 1px solid #e7edf7;
  border-radius: 18px;
  background: var(--vx-surface);
  padding: 12px 14px;
}

.vx-config-meta span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vx-muted-2);
}

.vx-config-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--vx-ink);
}

.vx-config-card__field,
.vx-field-card {
  min-width: 0;
}

.vx-field-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vx-config-card__field label,
.vx-field-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vx-muted-2);
}

.vx-field-card__head label {
  margin-bottom: 0;
}

.vx-field-value {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--vx-ink);
}

.vx-field-value-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vx-field-card .vx-field-value-row {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vx-field-card .vx-field-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.vx-copy-row > * {
  min-width: 0;
}

.vx-copy-row input,
.vx-rename-input,
.vx-auth-form input,
.vx-select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--vx-border-strong);
  background: #fff;
  padding: 12px 14px;
  color: var(--vx-ink);
}

.vx-copy-row input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.vx-rename-input {
  font-size: 14px;
}

.vx-icon-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 22px;
  border: 1px solid #d6dfef;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  color: #10213f;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.vx-icon-button svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.vx-icon-button svg rect,
.vx-icon-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vx-icon-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  border-color: #c8d4e7;
}

.vx-icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 27, 68, 0.12);
}

.vx-button--compact {
  width: auto;
  min-width: 112px;
  min-height: 48px;
  padding: 12px 16px;
  white-space: nowrap;
}

.vx-title-edit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  margin: 0 !important;
  border: 1px solid #d9e2ef !important;
  outline: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  color: #4e5f7c;
  cursor: pointer;
  vertical-align: middle;
  flex: 0 0 auto;
  align-self: center;
  line-height: 1;
}

.vx-title-edit svg {
  display: block;
  width: 14px !important;
  height: 14px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.vx-title-edit:hover {
  color: #10213f;
  border-color: #c9d4e7 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fc 100%) !important;
}

.vx-title-edit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 27, 68, 0.12);
  border-radius: 999px;
}

.vx-icon-button.is-copied {
  border-color: var(--vx-success-border);
  background: var(--vx-success-bg);
  color: var(--vx-success-ink);
  font-weight: 800;
}

.vx-config-card__actions,
.vx-config-view__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vx-account-empty,
.vx-account-error {
  border: 1px solid var(--vx-danger-border);
  border-radius: 20px;
  background: var(--vx-danger-bg);
  color: var(--vx-danger-ink);
  padding: 16px 18px;
  font-weight: 600;
}

.vx-auth-card {
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
}

.vx-auth-card__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  background: var(--vx-surface-muted);
  border-bottom: 1px solid #edf1f7;
}

.vx-auth-tab {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--vx-muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.vx-auth-tab.is-active {
  color: var(--vx-ink);
  background: #fff;
  border-color: #e3e9f4;
  box-shadow: 0 8px 20px rgba(11, 23, 54, 0.05);
}

.vx-auth-card__body {
  padding: clamp(18px, 3vw, 28px);
}

.vx-auth-form {
  display: grid;
  gap: 14px;
}

.vx-auth-form label {
  display: grid;
  gap: 6px;
  color: #3d4d68;
  font-size: 14px;
  font-weight: 700;
}

.vx-auth-errors {
  display: none;
  margin-bottom: 14px;
}

.vx-auth-telegram {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.vx-auth-telegram__eyebrow {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vx-muted-2);
}

.vx-auth-telegram__copy {
  margin: 0;
  color: var(--vx-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vx-auth-telegram__widget {
  min-height: 50px;
}

.vx-auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vx-auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid #dfe7f3;
}

.vx-auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: #f8fbff;
  color: var(--vx-muted-2);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vx-auth-error {
  border-radius: 14px;
  background: #fff4f6;
  border: 1px solid #f4d6de;
  color: #be123c;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.vx-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.vx-auth-links a {
  color: var(--vx-muted);
  font-weight: 700;
}

.vx-config-view {
  padding: clamp(16px, 2.6vw, 24px);
  display: grid;
  gap: 14px;
}

.vx-config-view__main,
.vx-config-view__side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.vx-config-view__head {
  display: grid;
  gap: 10px;
}

.vx-config-qr {
  min-width: 0;
  border: 1px solid #e5ebf4;
  border-radius: 24px;
  background: var(--vx-surface-soft);
  padding: 12px;
  overflow: hidden;
}

.vx-config-qr img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
}

.vx-config-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vx-info-card--wide {
  grid-column: 1 / -1;
}

.vx-field-card {
  display: grid;
  gap: 10px;
}

.vx-field-hint {
  margin: 0;
  color: var(--vx-muted);
  font-size: 13px;
  line-height: 1.5;
}

.vx-account-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 18px);
  max-width: min(420px, calc(100vw - 28px));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.vx-account-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@keyframes vxNativeSkeleton {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 479px) {
  .vx-native-account {
    --vx-title-size: 1.6rem;
    --vx-subtitle-size: 0.95rem;
    --vx-section-title-size: 1.08rem;
    padding-top: 2px;
  }

  .vx-account-app__shell {
    gap: 10px;
  }

  .vx-account-hero {
    padding: 12px;
    gap: 10px;
    border-radius: 22px;
  }

  .vx-account-title {
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  .vx-account-subtitle {
    max-width: none;
    line-height: 1.45;
  }

  .vx-account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7f9fd, #f3f6fb);
    border: 1px solid #e7edf7;
  }

  .vx-account-actions .vx-button {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
    border-radius: 16px;
    box-shadow: none;
  }

  .vx-stats-grid {
    gap: 8px;
  }

  .vx-account-summary {
    padding: 8px;
    border-radius: 20px;
  }

  .vx-account-summary__grid {
    border-radius: 16px;
  }

  .vx-account-summary__item {
    padding: 10px 12px;
    min-height: 78px;
  }

  .vx-account-summary__label {
    font-size: 11px;
  }

  .vx-account-summary__value {
    margin-top: 6px;
    font-size: 14px;
  }

  .vx-account-summary__value .vx-status-pill {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 13px;
  }

  .vx-profile-form {
    padding: 0 12px 14px;
    gap: 12px;
  }

  .vx-profile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vx-profile-field input {
    min-height: 46px;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .vx-link-body {
    padding: 0 12px 14px;
    gap: 12px;
  }

  .vx-link-code {
    min-height: 50px;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .vx-stat-card,
  .vx-info-card,
  .vx-field-card {
    padding: 12px;
    border-radius: 16px;
  }

  .vx-stat-value {
    font-size: 14px;
  }

  .vx-section-card {
    border-radius: 22px;
  }

  .vx-section-card__head {
    padding: 12px 12px 8px;
  }

  .vx-config-list {
    gap: 8px;
    padding: 8px;
  }

  .vx-config-card {
    padding: 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .vx-config-card__meta,
  .vx-config-info-grid {
    grid-template-columns: 1fr;
  }

  .vx-config-card__title {
    font-size: 1.08rem;
  }

  .vx-config-card__sub {
    font-size: 13px;
    line-height: 1.35;
  }

  .vx-config-card__name-group {
    gap: 4px;
    padding: 8px 11px;
  }

  .vx-field-card .vx-field-value-row {
    padding: 8px 11px;
  }

  .vx-config-card__title-row {
    gap: 8px;
  }

  .vx-account-subtitle--config-name {
    margin-top: 8px;
    padding: 8px 12px;
  }

  .vx-config-card__title-row .vx-status-pill {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .vx-copy-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .vx-rename-row {
    grid-template-columns: 1fr;
  }

  .vx-icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 18px;
  }

  .vx-title-edit {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
  }

  .vx-config-card__title-row,
  .vx-field-card__head {
    align-items: flex-start;
  }

  .vx-button--compact {
    width: 100%;
    min-width: 0;
  }

  .vx-account-toast {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .vx-config-view {
    padding: 14px;
    gap: 12px;
    border-radius: 24px;
  }

  .vx-config-view__main,
  .vx-config-view__side {
    gap: 10px;
  }

  .vx-config-view__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .vx-config-view__side {
    order: 2;
  }

  .vx-config-view__main {
    order: 1;
  }

  .vx-config-view__actions {
    order: 2;
    grid-template-columns: 1fr;
  }

  .vx-config-qr {
    order: 3;
    padding: 10px;
    border-radius: 20px;
  }

  .vx-config-qr img {
    max-width: 240px;
  }

  .vx-field-card {
    padding: 11px;
    gap: 7px;
  }

  .vx-field-card label,
  .vx-config-card__field label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .vx-field-hint {
    font-size: 12px;
  }

  .vx-config-view__actions {
    gap: 8px;
  }

  .vx-config-view__actions .vx-button,
  .vx-config-card .vx-button {
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .vx-auth-card {
    border-radius: 24px;
  }

  .vx-auth-card__tabs {
    padding: 10px;
  }

  .vx-auth-card__body {
    padding: 16px;
  }
}

@media (min-width: 700px) {
  .vx-account-hero__head,
  .vx-section-card__head,
  .vx-config-view__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .vx-account-actions,
  .vx-config-view__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vx-account-actions > :first-child {
    grid-column: auto;
  }

  .vx-config-view__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vx-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vx-account-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vx-account-summary__item {
    min-height: 96px;
  }

  .vx-account-summary__item:nth-child(2n) {
    border-right: 1px solid #e8eef7;
  }

  .vx-account-summary__item:nth-child(4n) {
    border-right: 0;
  }

  .vx-account-summary__item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e8eef7;
  }

  .vx-account-summary__item:nth-last-child(-n + 4) {
    border-bottom: 0;
  }

  .vx-config-view {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: start;
  }
}
