:root {
  --ink: #101217;
  --muted: #667085;
  --line: #eceff3;
  --soft: #f7f8fb;
  --gold: #c9a45c;
  --shadow: 0 24px 70px rgba(16, 18, 23, 0.08);

  /*
   * Remove Chrome / Edge default blue focus ring and muted autofill tint site-wide.
   * Custom shells (e.g. .topup-money-field:focus-within) keep their own affordance on parents.
   */
  --ua-autofill-mask: #fff;

  --scrollbar-track: #eef0f3;
  --scrollbar-thumb: rgba(201, 164, 92, 0.48);
  --scrollbar-thumb-hover: rgba(201, 164, 92, 0.72);
}

/* Custom scrollbars site-wide (Firefox + Chromium/WebKit) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.form-check-input:focus,
.form-check-input:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: 0 0 0 1000px var(--ua-autofill-mask) inset !important;
  caret-color: var(--ink);
  transition: background-color 99999s ease-out 0s;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 164, 92, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(61, 91, 255, 0.08), transparent 24rem),
    #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.navbar {
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(16, 18, 23, 0.03);
}

.navbar .nav-link {
  border-radius: 999px;
  padding: 0.42rem 0.95rem !important;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.navbar .nav-link.active {
  background: rgba(201, 164, 92, 0.22);
  color: var(--ink) !important;
  font-weight: 650;
}

.navbar .navbar-nav .nav-link:hover:not(.active) {
  color: var(--gold);
}

.site-navbar .site-navbar-toggler {
  border: 1px solid rgba(16, 18, 23, 0.12);
  border-radius: 14px;
  padding: 0.45rem 0.55rem;
}

.site-navbar .site-navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.28);
}

.site-navbar .site-navbar-collapse .dropdown-divider.site-navbar-split {
  border-color: rgba(16, 18, 23, 0.1);
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse.site-navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-bottom: 0.875rem;
    padding-top: 1rem;
  }

  .site-navbar .site-navbar-collapse .navbar-nav.site-navbar-nav {
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
  }

  .site-navbar .site-navbar-collapse .nav-item:not([role='presentation']) {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link {
    align-items: center;
    border-radius: 14px;
    box-sizing: border-box;
    color: var(--ink);
    display: flex;
    font-size: 1.02rem;
    font-weight: 520;
    line-height: 1.35;
    min-height: 2.875rem;
    padding: 0.65rem 1rem !important;
    width: 100%;
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link:not(.active) {
    color: var(--muted);
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link.active {
    background: rgba(201, 164, 92, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 6px 20px rgba(201, 164, 92, 0.12);
    color: var(--ink) !important;
    font-weight: 650;
  }

  .site-navbar .site-navbar-actions {
    align-self: stretch;
    margin-top: 0.15rem;
  }

  .site-navbar .site-navbar-logout-form,
  .site-navbar .site-navbar-login-btn {
    width: 100%;
  }

  .site-navbar .site-navbar-login-btn {
    border-radius: 14px !important;
    font-weight: 600;
    min-height: 2.875rem;
    padding: 0.7rem 1rem;
  }

  .site-navbar .site-navbar-logout-btn {
    border-radius: 14px !important;
    font-weight: 600;
    min-height: 2.875rem;
    padding: 0.65rem 1rem;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-navbar .site-navbar-logout-btn {
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 0;
    padding: 0.36rem 0.92rem !important;
    width: auto;
  }

  .site-navbar .site-navbar-login-btn {
    border-radius: 999px !important;
    min-height: 0;
    padding: 0.45rem 1.35rem !important;
    width: auto;
  }

  .site-navbar .site-navbar-logout-form {
    width: auto;
  }

  .site-navbar .site-navbar-actions {
    width: auto;
  }
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #111, #444);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.flash-toast-strip {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

@keyframes flash-banner-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-banner {
  animation: flash-banner-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  align-items: flex-start;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(16, 18, 23, 0.04),
    0 16px 48px rgba(16, 18, 23, 0.07);
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-bottom: 0;
  padding: 0.9rem 1rem 0.95rem;
}

.flash-banner__icon {
  align-items: center;
  align-self: flex-start;
  border-radius: 14px;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.08rem;
  height: 2.5rem;
  justify-content: center;
  margin-top: 2px;
  width: 2.5rem;
}

.flash-banner__text {
  color: var(--ink);
  flex: 1 1 auto;
  font-size: 0.935rem;
  font-weight: 550;
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.flash-banner__dismiss {
  align-items: center;
  align-self: flex-start;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: inherit;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  margin-top: 2px;
  opacity: 0.62;
  padding: 0;
  width: 2rem;
}

.flash-banner__text + .flash-banner__dismiss {
  margin-left: auto;
}

.flash-banner__dismiss:hover {
  background: rgba(16, 18, 23, 0.06);
  opacity: 1;
}

.flash-banner__dismiss:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.35);
  outline: none;
}

.flash-banner--danger {
  background: linear-gradient(160deg, #fffbfb 0%, #fff5f6 52%, #ffebee 100%);
  border: 1px solid rgba(192, 80, 80, 0.28);
}

.flash-banner--danger .flash-banner__icon {
  background: rgba(176, 64, 64, 0.12);
  color: #9b2d2f;
}

.flash-banner--success {
  background: linear-gradient(160deg, #f7fdf9 0%, #eef8f2 52%, #e8f5ec 100%);
  border: 1px solid rgba(74, 140, 90, 0.32);
}

.flash-banner--success .flash-banner__icon {
  background: rgba(62, 120, 74, 0.14);
  color: #2d6840;
}

.flash-banner--warning {
  background: linear-gradient(160deg, rgba(255, 252, 245, 1) 0%, rgba(252, 246, 232, 1) 50%, rgba(248, 238, 216, 0.98) 100%);
  border: 1px solid rgba(201, 164, 92, 0.45);
}

.flash-banner--warning .flash-banner__icon {
  background: rgba(201, 164, 92, 0.2);
  color: #7a622c;
}

.flash-banner--info {
  background: linear-gradient(160deg, #f8faff 0%, #f0f5fc 52%, #e8eef8 100%);
  border: 1px solid rgba(90, 112, 180, 0.28);
}

.flash-banner--info .flash-banner__icon {
  background: rgba(90, 112, 180, 0.14);
  color: #3d4f8f;
}

@media (prefers-reduced-motion: reduce) {
  .flash-banner {
    animation: none;
  }

  .flash-toast-strip {
    transition: none;
  }
}

.account-page,
.auth-page {
  padding: 88px 0;
}

.hero-section,
.page-hero {
  padding: clamp(44px, 6vw, 72px) 0;
}

.hero-section {
  min-height: 0;
}

.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7a622c;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.glass-card,
.service-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.92)),
    #fff;
}

.hero-card-header,
.hero-stats {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.prompt-box {
  background: #111;
  border-radius: 24px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 24px 0;
  padding: 28px;
}

.model-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.model-list div {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 12px 14px;
}

.model-list i,
.feature-list i {
  color: var(--gold);
}

.hero-stats {
  border-top: 1px solid var(--line);
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
}

.hero-stats div {
  display: grid;
}

.hero-stats strong {
  font-size: 1.6rem;
}

.hero-stats span,
.service-card p,
.step-card p,
.sandbox-card small {
  color: var(--muted);
}

.section {
  padding: clamp(28px, 3.5vw, 48px) 0;
}

.section-heading {
  margin: 0 auto clamp(24px, 4vw, 34px);
  max-width: 760px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  font-weight: 800;
  margin-top: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
}

.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 30px 90px rgba(16, 18, 23, 0.12);
  transform: translateY(-6px);
}

.home-page .service-card--landing {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 252, 254, 0.99) 42%, rgba(247, 248, 252, 1) 100%);
  border: 1px solid rgba(16, 18, 23, 0.07);
  display: flex;
  flex-direction: column;
}

.home-page .service-card--landing:hover {
  border-color: rgba(201, 164, 92, 0.42);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.12),
    0 28px 76px rgba(16, 18, 23, 0.1);
  transform: translateY(-5px);
}

.home-page .service-card-landing-head {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.home-page .service-card--landing .service-icon {
  margin-bottom: 0;
}

.home-page .service-card-landing-cat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.2;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.home-page .service-card-landing-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.65rem 0 0.5rem;
}

.home-page .service-card-landing-desc {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  min-height: 0;
}

.home-page .service-card-landing-foot {
  align-items: center;
  border-top: 1px dashed rgba(16, 18, 23, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.05rem;
}

.home-page .service-card-landing-price {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 999px;
  color: #6b5424;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.75rem 0.42rem 0.85rem;
}

.home-page .service-card-landing-cta {
  align-items: center;
  background: linear-gradient(180deg, #15171c 0%, #101217 100%);
  border: 1px solid rgba(16, 18, 23, 0.6);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(16, 18, 23, 0.15);
  color: #fff;
  column-gap: 0.42rem;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.48rem 1rem 0.48rem 1.08rem;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-page .service-card-landing-cta:hover {
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(201, 164, 92, 0.15),
    0 14px 32px rgba(16, 18, 23, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.home-page .service-card-landing-cta:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(201, 164, 92, 0.35);
  outline: none;
}

.home-page .service-card-landing-cta i {
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.home-page .service-card-landing-cta:hover i {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .home-page .service-card--landing:hover {
    transform: none;
  }

  .home-page .service-card-landing-cta,
  .home-page .service-card-landing-cta:hover,
  .home-page .service-card-landing-cta i,
  .home-page .service-card-landing-cta:hover i {
    transform: none !important;
  }
}

.service-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 22px;
  display: inline-flex;
  font-size: 1.25rem;
  height: 54px;
  justify-content: center;
  margin-bottom: 22px;
  width: 54px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.price-pill {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
}

.soft-panel {
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.65), rgba(255, 255, 255, 0.9));
}

.step-card,
.sandbox-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  height: 100%;
  padding: 24px;
}

.step-card span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.pricing-card {
  display: grid;
  gap: 18px;
  min-height: 280px;
}

.pricing-card strong {
  font-size: 2rem;
}

.pricing-card.featured {
  background: #111;
  color: #fff;
  transform: translateY(-12px);
}

.pricing-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 240px);
}

.auth-card {
  max-width: 520px;
  width: min(100% - 32px, 520px);
}

.balance-card {
  background: linear-gradient(135deg, #111, #3b3324);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 32px;
}

.balance-card span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
}

.balance-card strong {
  display: block;
  font-size: 2.5rem;
}

/* История операций — /account/balance */
.balance-history-page .balance-history-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.balance-history-page .balance-history-card {
  overflow: visible;
}

.balance-history-page .balance-history-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.balance-history-page .tabular-nums {
  font-variant-numeric: tabular-nums;
}

.balance-history-page .balance-history-empty {
  padding: 0.75rem 0 0;
}

.balance-history-page .balance-tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.balance-history-page .balance-tx {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1rem 1.12rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.balance-history-page .balance-tx:hover {
  border-color: rgba(15, 23, 42, 0.13);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.balance-history-page .balance-tx--debit:hover {
  border-color: rgba(185, 28, 28, 0.2);
}

.balance-history-page .balance-tx--credit:hover {
  border-color: rgba(22, 101, 52, 0.2);
}

.balance-history-page .balance-tx__icon {
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.38);
  display: flex;
  flex-shrink: 0;
  font-size: 0.92rem;
  height: 2.35rem;
  justify-content: center;
  margin-top: 0.06rem;
  width: 2.35rem;
}

.balance-history-page .balance-tx--debit .balance-tx__icon {
  background: rgba(185, 28, 28, 0.08);
  color: rgba(153, 27, 27, 0.65);
}

.balance-history-page .balance-tx--credit .balance-tx__icon {
  background: rgba(22, 101, 52, 0.08);
  color: rgba(22, 101, 52, 0.6);
}

.balance-history-page .balance-tx__body {
  margin: 0;
  min-width: 0;
}

.balance-history-page .balance-tx__title {
  font-size: 0.938rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.42;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.balance-history-page .balance-tx__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.25rem;
  margin: 0;
}

.balance-history-page .balance-tx__type-badge {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
}

.balance-history-page .balance-tx--debit .balance-tx__type-badge {
  background: rgba(185, 28, 28, 0.07);
  color: rgb(153, 27, 27);
}

.balance-history-page .balance-tx--credit .balance-tx__type-badge {
  background: rgba(22, 101, 52, 0.07);
  color: rgb(22, 101, 52);
}

.balance-history-page .balance-tx__sep {
  color: rgba(15, 23, 42, 0.2);
}

.balance-history-page .balance-tx__amount {
  align-self: center;
}

.balance-history-page .balance-tx__pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  padding: 0.38rem 0.82rem;
  white-space: nowrap;
}

.balance-history-page .balance-tx__pill--minus {
  background: rgba(185, 28, 28, 0.1);
  color: rgb(127, 29, 29);
}

.balance-history-page .balance-tx__pill--plus {
  background: rgba(22, 101, 52, 0.12);
  color: rgb(20, 83, 45);
}

.balance-history-page .balance-tx__pill--plain {
  background: rgba(15, 23, 42, 0.07);
}

.balance-history-page .balance-history-pagination .balance-page-link {
  border-radius: 999px;
  min-width: 2.4rem;
  padding-inline: 0.75rem;
}

.balance-history-page .balance-history-pagination .page-item:not(.disabled) .balance-page-link {
  cursor: pointer;
}

.balance-history-page .balance-history-pagination .page-item.active .balance-page-link {
  background: var(--bs-dark);
  border-color: var(--bs-dark);
  color: #fff;
}

@media (max-width: 575.98px) {
  .balance-history-page .balance-tx {
    grid-template-columns: auto 1fr;
  }

  .balance-history-page .balance-tx__amount {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .balance-history-page .balance-tx__pill {
    text-align: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .balance-history-page .balance-tx {
    transition: none;
  }

  .balance-history-page .balance-tx:hover {
    box-shadow: none;
  }
}

.sandbox-card {
  display: grid;
  gap: 12px;
}

.sandbox-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.sandbox-card-head-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sandbox-card-head-text strong {
  line-height: 1.25;
}

.sandbox-card-logo,
.sandbox-card-logo-ph {
  border-radius: 14px;
  flex-shrink: 0;
  height: 52px;
  overflow: hidden;
  width: 52px;
}

.sandbox-card-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sandbox-card-logo-ph {
  align-items: center;
  background: linear-gradient(135deg, var(--soft), #e8ecf5);
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-flex;
  font-size: 1.35rem;
  justify-content: center;
}

.account-services-intro-body {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .account-services-intro-body {
    align-items: start;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  }
}

.account-services-intro-hint {
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.65rem;
  line-height: 1.45;
  padding: 0.9rem 1rem;
}

.account-services-intro-hint i {
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 0.08rem;
  flex-shrink: 0;
}

.account-services-category-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.65rem;
}

.account-services-category-title i {
  color: var(--gold);
}

.sandbox-card--link {
  box-shadow: 0 12px 36px rgba(16, 18, 23, 0.06);
  color: inherit;
  outline: none;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sandbox-card--link:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 20px 48px rgba(16, 18, 23, 0.1);
  transform: translateY(-4px);
}

.sandbox-card--link:focus-visible {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.28),
    0 20px 48px rgba(16, 18, 23, 0.08);
}

.sandbox-card-logo--catalog,
.sandbox-card-logo-ph--catalog {
  height: 58px;
  width: 58px;
}

.sandbox-card-logo-ph--catalog {
  font-size: 1.45rem;
}

.sandbox-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.sandbox-card-link-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 14px;
}

.sandbox-card--link .price-pill {
  flex-shrink: 0;
}

.sandbox-card-link-arrow {
  align-items: center;
  background: linear-gradient(180deg, #fff, var(--soft));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.82rem;
  height: 2.35rem;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  width: 2.35rem;
}

.sandbox-card--link:hover .sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

.model-stats--sandbox-link {
  border-top: 1px dashed rgba(16, 18, 23, 0.08);
  margin-top: 2px;
  padding-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .sandbox-card--link,
  .sandbox-card-link-arrow {
    transition: none;
  }

  .sandbox-card--link:hover,
  .sandbox-card--link:focus-visible {
    transform: none;
  }

  .sandbox-card--link:hover .sandbox-card-link-arrow {
    transform: none;
  }
}

.playground-service-logo {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 18, 23, 0.06);
  flex-shrink: 0;
  height: 76px;
  overflow: hidden;
  width: 76px;
}

.playground-service-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-desc-fluid {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-desc-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-desc-clamp--2 {
  -webkit-line-clamp: 2;
}

.service-desc-clamp--3 {
  -webkit-line-clamp: 3;
}

.service-desc-clamp--4 {
  -webkit-line-clamp: 4;
}

.service-desc-clamp--5 {
  -webkit-line-clamp: 5;
}

.playground-service-banner {
  align-items: start;
  column-gap: 1rem;
  display: grid;
  row-gap: 0.55rem;
}

.playground-service-banner:not(.playground-service-banner--no-logo) {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-logo {
  align-self: start;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-banner__head {
  grid-column: 2;
  grid-row: 1;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-banner__desc {
  grid-column: 2;
  grid-row: 2;
}

.playground-service-banner--no-logo {
  grid-template-columns: minmax(0, 1fr);
}

.playground-service-banner--no-logo .playground-service-banner__head {
  grid-column: 1;
}

.playground-service-banner--no-logo .playground-service-banner__desc {
  grid-column: 1;
}

.playground-service-banner__head {
  min-width: 0;
}

.playground-service-banner__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.playground-service-banner__title {
  line-height: 1.18;
  margin: 0;
  min-width: 0;
}

.playground-run-price {
  align-items: center;
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.08),
    0 6px 18px rgba(201, 164, 92, 0.08);
  column-gap: 0.5rem;
  display: inline-flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  margin-top: 0.22rem;
  max-width: 100%;
  padding: 0.26rem 0.8rem 0.26rem 0.82rem;
  row-gap: 0.05rem;
}

.playground-run-price__label {
  color: rgba(122, 98, 44, 0.88);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.playground-run-price__value {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.service-icon--logo {
  overflow: hidden;
  padding: 0;
}

.service-icon--logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pricing-model-logo {
  border-radius: 12px;
  border: 1px solid var(--line);
  height: 44px;
  overflow: hidden;
  width: 44px;
}

.pricing-model-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pricing-table {
  table-layout: fixed;
  width: 100%;
}

.pricing-table col.pricing-col-logo {
  width: 3.75rem;
}

.pricing-table col.pricing-col-cat {
  width: 8.5rem;
}

.pricing-table col.pricing-col-out {
  width: 7rem;
}

.pricing-table col.pricing-col-price {
  width: 7.25rem;
}

.pricing-table .pricing-col-heading {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-table tbody td.pricing-td-pill,
.pricing-table tbody td.pricing-td-meta {
  vertical-align: middle;
}

.pricing-table .pricing-model-cell {
  min-width: 0;
  padding-right: 0.75rem;
  vertical-align: middle;
}

.pricing-model-title {
  font-size: 1rem;
  line-height: 1.35;
}

.pricing-model-desc {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 0.8125rem;
  hyphens: auto;
  line-height: 1.45;
  margin-top: 0.35rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Pricing — карточки моделей (страница /pricing) */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-cards-group--spaced {
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
}

.pricing-cards-group-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.pricing-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-model-card {
  align-items: flex-start;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 250, 0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 1rem 1.2rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1.18rem 1.28rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.pricing-model-card:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.pricing-model-card__logo {
  flex-shrink: 0;
}

.pricing-model-card__body {
  min-width: 0;
}

.pricing-model-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.pricing-model-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.pricing-model-card__meta:empty {
  display: none;
}

.pricing-model-card__meta + .pricing-model-card__desc {
  margin-top: 0;
}

.pricing-model-card__desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.58;
  margin: 0;
}

.pricing-model-chip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 0.35rem;
  letter-spacing: 0.045em;
  line-height: 1.2;
  padding: 0.22rem 0.52rem;
  text-transform: uppercase;
}

.pricing-model-chip--muted {
  background: rgba(15, 23, 42, 0.035);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.pricing-model-chip__icon {
  font-size: 0.62rem;
  opacity: 0.72;
}

.pricing-model-card__price {
  align-self: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.05;
  padding: 0.55rem 0.82rem;
  text-align: center;
  white-space: nowrap;
}

.pricing-model-card__price-main {
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.pricing-model-card__price-hint {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.pricing-model-logo--card {
  border-radius: 14px;
  height: 52px;
  width: 52px;
}

.pricing-model-logo--card img {
  object-fit: cover;
}

.pricing-model-logo--fallback {
  align-items: center;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0.02));
  color: rgba(15, 23, 42, 0.45);
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
}

.pricing-cards-group:first-child .pricing-cards-group-label {
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .pricing-model-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-model-card__price {
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .pricing-model-card__price-main {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-model-card {
    transition: none;
  }

  .pricing-model-card:hover {
    transform: none;
  }
}

.model-list-logo-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
}

.model-list-logo {
  border-radius: 9px;
  display: block;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.admin-service-logo-preview {
  height: 120px;
  width: 120px;
}

.admin-service-logo-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-service-logo-empty {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 120px;
  padding: 8px;
  text-align: center;
}

.admin-table-service-logo {
  height: 40px;
  width: 40px;
}

.admin-table-service-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sandbox-edit-form {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.sandbox-edit-form:first-of-type {
  padding-top: 0;
}

.sandbox-edit-form:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sandbox-fields {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 22px;
  padding: 18px;
}

.field-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.field-row small {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.field-help {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.85rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.playground-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.playground-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.playground-response-panel .playground-response-body {
  display: grid;
  gap: 14px;
  padding: 14px 22px 22px;
}

.playground-response-hint {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.playground-response-hint a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.playground-response-hint a:hover {
  color: var(--gold);
}

.playground-json-shell {
  border-radius: 18px;
  overflow: hidden;
  outline: 1px solid rgba(16, 18, 23, 0.08);
}

.playground-json-preview.api-code {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 42px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  line-height: 1.58;
  margin: 0;
  max-height: min(42vh, 380px);
  overflow: auto;
  padding: 16px 18px;
  scrollbar-color: rgba(201, 164, 92, 0.45) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.playground-json-preview.api-code::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.playground-json-preview.api-code::-webkit-scrollbar-thumb {
  background: rgba(201, 164, 92, 0.42);
  border-radius: 999px;
}

.playground-form {
  padding: 22px;
}

.playground-field {
  margin-bottom: 22px;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-option input {
  display: none;
}

.chip-option span {
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  min-height: 40px;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.chip-option span:hover {
  border-color: rgba(201, 164, 92, 0.38);
}

.chip-option input:checked + span {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.96), rgba(250, 243, 228, 0.99));
  border-color: rgba(201, 164, 92, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(201, 164, 92, 0.12);
  color: var(--ink);
  font-weight: 650;
}

.chip-option input:checked + span:hover {
  border-color: rgba(201, 164, 92, 0.85);
}

.output-placeholder {
  align-items: center;
  background: #f7f8fb;
  border: 2px dashed #d8dde8;
  border-radius: 22px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.output-placeholder i {
  color: var(--gold);
  font-size: 2rem;
}

.file-upload-zone {
  --fu-border: rgba(59, 108, 255, 0.35);
  --fu-soft: rgba(59, 108, 255, 0.06);
  background: linear-gradient(180deg, #fff 0%, #fafbfd 52%, #f4f6fa 100%);
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 18px 55px rgba(16, 18, 23, 0.06);
  overflow: hidden;
  padding: 0;
  position: relative;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.file-upload-zone.is-drag-over {
  border-color: #3b6cff;
  box-shadow:
    0 0 0 3px rgba(59, 108, 255, 0.15),
    0 26px 64px rgba(59, 108, 255, 0.12);
}

.file-upload-zone.has-files {
  border-color: rgba(16, 18, 23, 0.1);
}

.file-upload-zone.is-drag-over .file-upload-drop-area {
  background: rgba(59, 108, 255, 0.04);
}

.file-upload-drop-area {
  cursor: pointer;
  outline: none;
  padding: 26px 20px 24px;
  text-align: center;
  transition: background 0.2s ease;
}

.file-upload-drop-area:hover .file-upload-icon-wrap {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(201, 164, 92, 0.22),
    0 0 0 1px rgba(201, 164, 92, 0.12);
}

.file-upload-drop-area:focus-visible .file-upload-icon-wrap {
  box-shadow: 0 0 0 3px var(--fu-border);
}

.file-upload-icon-wrap {
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 244, 0.95) 100%);
  border-radius: 20px;
  box-shadow:
    0 10px 24px rgba(201, 164, 92, 0.18),
    0 0 0 1px rgba(201, 164, 92, 0.12);
  color: var(--gold);
  display: inline-flex;
  height: 68px;
  justify-content: center;
  margin: 0 auto 12px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  width: 68px;
}

.file-upload-icon-wrap i {
  font-size: 1.9rem;
}

.file-upload-title {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.file-upload-sub {
  font-size: 0.9rem;
  line-height: 1.35;
}

.file-upload-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.file-upload-pill {
  background: rgba(16, 18, 23, 0.04);
  border: 1px solid rgba(16, 18, 23, 0.07);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  padding: 0.38rem 0.75rem;
}

.file-upload-pill.muted {
  font-weight: 500;
  max-width: 100%;
  text-align: left;
  word-break: break-word;
}

.file-upload-list-wrap {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.file-upload-list-heading {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.file-upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(16, 18, 23, 0.05);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 10px 10px 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.file-upload-chip:hover {
  border-color: rgba(59, 108, 255, 0.18);
  box-shadow: 0 8px 28px rgba(16, 18, 23, 0.07);
}

.file-upload-chip-thumb {
  border-radius: 14px;
  flex-shrink: 0;
  height: 48px;
  overflow: hidden;
  width: 48px;
}

.file-upload-chip-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.file-upload-chip-thumb--doc {
  align-items: center;
  background: linear-gradient(135deg, var(--soft) 0%, #ebeff7 100%);
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-flex;
  font-size: 1.25rem;
  justify-content: center;
}

.file-upload-chip-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-upload-chip-name {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-chip-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.file-upload-chip-remove {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 18, 23, 0.04);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  height: 38px;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
  width: 38px;
}

.file-upload-chip-remove:hover {
  background: #fef3f2;
  border-color: rgba(180, 35, 24, 0.25);
  color: #b42318;
}

.file-upload-chip-remove:active {
  transform: scale(0.96);
}

.file-upload-hint {
  line-height: 1.35;
}

.file-upload-hint.is-error {
  color: #b42318;
  font-weight: 600;
}

.file-upload-footnote {
  line-height: 1.45;
  padding-top: 2px;
}

.result-preview {
  border: 1px solid var(--line);
  border-radius: 22px;
  display: block;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.result-preview--video {
  background: #0b0d12;
  border-radius: 22px;
  max-height: 480px;
}

.result-carousel-viewport {
  position: relative;
}

.result-carousel-media {
  background: #0b0d12;
  max-height: min(70vh, 560px);
  object-fit: contain;
}

.result-carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(16, 18, 23, 0.12);
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 3;
}

.result-carousel-arrow:hover {
  background: #fff;
  color: var(--ink);
}

.result-carousel-arrow--prev {
  left: 10px;
}

.result-carousel-arrow--next {
  right: 10px;
}

.result-carousel-thumb {
  aspect-ratio: 1;
  border: 2px solid rgba(16, 18, 23, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  height: auto;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  width: 88px;
}

.result-carousel-thumb:hover {
  border-color: rgba(16, 18, 23, 0.28);
}

.result-carousel-thumb.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(16, 18, 23, 0.08);
}

.result-carousel-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Срок хранения файлов генерации */
.generation-retention-notice {
  align-items: flex-start;
  border-radius: 20px;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.15rem 1.35rem;
}

.generation-retention-notice__icon {
  align-items: center;
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.2), rgba(201, 164, 92, 0.08));
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 14px;
  color: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.generation-retention-notice__content {
  flex: 1;
  min-width: 0;
}

.generation-retention-notice__title {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.generation-retention-notice__lead {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.generation-retention-notice__accent {
  color: #7a622c;
  font-weight: 600;
}

.generation-retention-notice__deadline {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.generation-retention-notice__date {
  color: var(--gold);
  font-weight: 700;
}

.generation-retention-notice__hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.generation-retention-notice--stored {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.99) 0%, rgba(252, 246, 232, 1) 42%, rgba(248, 237, 212, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.1),
    0 14px 38px rgba(201, 164, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.generation-retention-notice--stored .generation-retention-notice__title {
  color: #6b5424;
}

.generation-retention-notice--purged {
  background: linear-gradient(180deg, rgba(255, 250, 246, 1), rgba(252, 239, 236, 0.98));
  border: 1px solid rgba(220, 120, 100, 0.28);
  box-shadow: 0 10px 28px rgba(180, 72, 54, 0.08);
}

.generation-retention-notice--purged .generation-retention-notice__icon {
  background: rgba(220, 100, 80, 0.12);
  border-color: rgba(220, 100, 80, 0.28);
  color: #c45c48;
}

.generation-retention-notice--purged .generation-retention-notice__title {
  color: #8b3f32;
}

/* Модалка просмотра результата — светлая premium */
.result-lightbox-modal--premium .modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
  border-radius: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(18, 21, 28, 0.05),
    0 28px 72px rgba(16, 18, 23, 0.14);
}

.result-lightbox-modal--premium .modal-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .modal-title {
  color: #12151c;
  letter-spacing: -0.02em;
}

.result-lightbox-modal--premium .result-lightbox-zoom-bar {
  background: #f4f2ee !important;
  border-bottom: 1px solid rgba(18, 21, 28, 0.07) !important;
}

.result-lightbox-modal--premium .result-lightbox-zoom-range {
  accent-color: var(--gold);
}

.result-lightbox-modal--premium .result-lightbox-meta {
  background: linear-gradient(180deg, #fafaf8, #f6f5f2) !important;
  border-color: rgba(18, 21, 28, 0.07) !important;
  color: #5a606c;
}

.result-lightbox-modal--premium .modal-footer {
  background: #ffffff;
  border-top-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .result-lightbox-download-this {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, var(--gold) 55%, #b8934a 100%);
  border: 1px solid rgba(201, 164, 92, 0.45);
  color: #1a1408;
  font-weight: 600;
}

.result-lightbox-modal--premium .result-lightbox-download-this:hover {
  filter: brightness(1.04);
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap {
  background: #faf9f7 !important;
  border-top-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap .result-lightbox-thumb {
  border-color: rgba(18, 21, 28, 0.1) !important;
  background: #fff;
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap .result-lightbox-thumb.is-active {
  box-shadow:
    0 0 0 2px rgba(201, 164, 92, 0.65),
    0 6px 18px rgba(201, 164, 92, 0.12);
}

.result-lightbox-modal--premium .result-lightbox-viewport {
  background: linear-gradient(180deg, #eceae6 0%, #e5e3df 100%);
}

.result-preview--open-lightbox,
.result-carousel-pane .result-preview--open-lightbox {
  cursor: zoom-in;
  outline: none;
}

.result-preview--open-lightbox:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.45);
}

.result-lightbox-error {
  max-width: 28rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.result-lightbox-modal .result-lightbox-dialog {
  margin: 1rem auto;
  max-width: min(92vw, 640px);
  width: 100%;
}

.result-lightbox-modal .result-lightbox-thumbs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-height: 118px;
}

.result-lightbox-modal .result-lightbox-zoom-bar .form-range {
  height: 0.65rem;
  max-width: 11rem;
  min-width: 5rem;
}

.result-lightbox-modal .result-lightbox-viewport {
  align-items: center;
  background: #ebe9e6;
  display: flex;
  justify-content: center;
  max-height: min(38vh, 360px);
  min-height: 200px;
  overflow: auto;
  padding: 0.85rem;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom {
  align-items: flex-start;
  justify-content: flex-start;
  max-height: min(62vh, 520px);
  min-height: min(38vh, 360px);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom:active {
  cursor: grabbing !important;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom .result-lightbox-zoom-wrap {
  flex-shrink: 0;
  justify-content: flex-start;
  align-items: flex-start;
  transition: none;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom .result-lightbox-media {
  max-height: min(72vh, 960px);
  max-width: min(96vw, 1280px);
}

.result-lightbox-modal .result-lightbox-zoom-wrap {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.06s ease-out;
}

.result-lightbox-modal .result-lightbox-meta {
  line-height: 1.35;
}

.result-lightbox-modal .result-lightbox-media {
  display: block;
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.result-lightbox-thumbs-wrap .result-lightbox-thumb {
  flex-shrink: 0;
  height: 72px;
  width: 72px;
}

.result-lightbox-thumb--av {
  align-items: center;
  color: #6c757d;
  display: inline-flex;
  font-size: 0.85rem;
  justify-content: center;
}

.playground-batch-field .form-select {
  max-width: 14rem;
}

.playground-batch-field .ts-wrapper {
  max-width: 14rem;
}

/* ---------- Premium selects (Tom Select + native fallback) ---------- */

.ts-wrapper {
  min-width: min(100%, 9rem);
  position: relative;
  width: 100%;
}

/* Открытый список поверх соседних блоков / строк таблицы */
.ts-wrapper.dropdown-active {
  z-index: 40;
}

.account-page .glass-card:has(.ts-wrapper.dropdown-active) {
  position: relative;
  z-index: 30;
}

.table-responsive:has(.ts-wrapper.dropdown-active) {
  overflow: visible;
}

.account-page table .ts-wrapper {
  min-width: 7rem;
}

.ts-wrapper.single .ts-control {
  align-items: center;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 3 8 8 8-8'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  background-position:
    right 1rem center,
    0 0;
  background-repeat: no-repeat;
  background-size: 0.82rem auto, 100% 100%;
  border: 1px solid rgba(16, 18, 23, 0.11);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(16, 18, 23, 0.05);
  color: var(--ink);
  font-weight: 500;
  gap: 0;
  min-height: 3rem;
  padding: 0.62rem 2.85rem 0.62rem 1.05rem;
  position: relative;
  transition:
    border-color 0.15s ease,
    box-shadow 0.18s ease;
}

/* одна строка текста без «таблетки» — поверх служебного input, клики проходят к полю ввода */
.ts-wrapper.single .ts-control .item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  flex: 1 1 auto;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

/* Служебный input Tom Select: без видимого набора текста и мигающего каретки */
.ts-wrapper.single .ts-control > input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  caret-color: transparent !important;
  color: transparent !important;
  cursor: pointer;
  inset: 0;
  line-height: inherit !important;
  margin: 0 !important;
  min-height: 0 !important;
  opacity: 1;
  padding: 0 2.75rem 0 1.05rem !important;
  position: absolute;
  text-shadow: none !important;
  width: 100% !important;
  z-index: 1;
}

.ts-wrapper.single .ts-control .items-placeholder {
  color: var(--muted);
  flex: 1 1 auto;
  font-weight: 500;
  min-width: 0;
  opacity: 0.85;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.ts-wrapper:has(select.form-select-sm) .ts-control > input,
.ts-wrapper:has(select.form-control-sm) .ts-control > input {
  padding: 0 2.2rem 0 0.78rem !important;
}

.ts-wrapper.single .ts-control > input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.ts-wrapper.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
  border-color: rgba(201, 164, 92, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(201, 164, 92, 0.15);
}

.ts-wrapper.disabled .ts-control {
  background-image: none;
  background: rgba(247, 248, 251, 0.9);
  opacity: 0.65;
}

.ts-wrapper.disabled .ts-control .item {
  color: var(--muted) !important;
}

.ts-wrapper:has(select.form-select-sm) .ts-control,
.ts-wrapper:has(select.form-control-sm) .ts-control {
  background-position:
    right 0.65rem center,
    0 0;
  background-size: 0.72rem auto, 100% 100%;
  border-radius: 12px;
  font-size: 0.875rem;
  min-height: 2rem;
  padding: 0.36rem 2.35rem 0.36rem 0.78rem;
}

/* Запасно: если на обёртке остался Bootstrap .form-select */
.ts-wrapper.form-select,
.ts-wrapper.form-select-sm {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ts-dropdown {
  background: rgba(254, 254, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 18px !important;
  box-shadow:
    0 4px 12px rgba(16, 18, 23, 0.06),
    0 24px 52px rgba(16, 18, 23, 0.14);
  margin-top: 6px !important;
  overflow: hidden;
  z-index: 3;
}

.ts-dropdown .ts-dropdown-content {
  max-height: min(320px, 55vh);
  padding: 0.55rem 0 1rem;
  scrollbar-color: rgba(16, 18, 23, 0.22) transparent;
  scrollbar-width: thin;
}

.ts-dropdown .option,
.ts-dropdown .create {
  border-radius: 10px;
  color: var(--ink);
  margin: 0 0.38rem;
  padding: 0.55rem 0.92rem;
  transition: background-color 0.12s ease, color 0.12s ease;
}

/* Сброс дефолта Tom Select (.active = серо-голубой #f5fafd) */
.ts-dropdown .option.active,
.ts-dropdown .create.active {
  background: rgba(201, 164, 92, 0.18) !important;
  color: var(--ink) !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .create:hover {
  background: rgba(201, 164, 92, 0.14) !important;
  color: var(--ink) !important;
}

/* Выбранное значение в списке — нейтральная «вкладка», без холодного серого */
.ts-dropdown .option.selected {
  background: rgba(201, 164, 92, 0.08) !important;
  color: var(--ink) !important;
  font-weight: 650;
}

.ts-dropdown .option.selected.active,
.ts-dropdown .option.selected:hover {
  background: rgba(201, 164, 92, 0.22) !important;
}

.ts-dropdown .optgroup-header,
.ts-dropdown .no-results {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ts-dropdown [data-selectable] .highlight {
  background: rgba(201, 164, 92, 0.32) !important;
  border-radius: 3px;
}

/* Первый пункт «Выбрать» / placeholder */
.ts-dropdown .option[data-value=""] {
  color: var(--muted);
  font-weight: 500;
}

.ts-dropdown .option[data-value=""]:hover,
.ts-dropdown .option[data-value=""].active {
  color: var(--ink) !important;
}

.ts-wrapper .ts-control,
.ts-dropdown {
  font-size: 1rem;
  line-height: 1.5;
}

.ts-wrapper:has(select.form-select-sm) .ts-dropdown,
.ts-wrapper:has(select.form-control-sm) .ts-dropdown {
  font-size: 0.875rem;
}

/* Админ-центр: длинные названия провайдера в «Основные настройки» */
.admin-service-settings .ts-wrapper {
  min-width: 0;
  width: 100%;
}

.admin-service-settings .ts-wrapper.single .ts-control {
  align-items: center;
  min-height: 3rem;
}

.admin-service-settings .ts-wrapper.single .ts-control .item {
  flex: 1 1 auto;
  flex-shrink: 0;
  min-width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

select.form-select:not(.ts-hidden-accessible),
select.form-control:not(.ts-hidden-accessible) {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 3 8 8 8-8'/%3E%3C/svg%3E");

  appearance: none;
  background-color: #fff;
  background-image: var(--select-chevron), linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  background-position:
    right 1rem center,
    0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: 0.82rem auto, 100% 100%;
  border: 1px solid rgba(16, 18, 23, 0.11);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(16, 18, 23, 0.05);
  padding-right: 2.85rem;
}

select.form-select-sm:not(.ts-hidden-accessible),
select.form-control-sm:not(.ts-hidden-accessible) {
  background-position:
    right 0.65rem center,
    0 0;
  background-size: 0.72rem auto, 100% 100%;
  border-radius: 12px;
  padding-right: 2.1rem;
}

select.form-select:not(.ts-hidden-accessible):focus,
select.form-control:not(.ts-hidden-accessible):focus {
  border-color: rgba(201, 164, 92, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(201, 164, 92, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .ts-wrapper.single .ts-control,
  .ts-dropdown .option {
    transition: none;
  }
}

.premium-modal .modal-content {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 40px 120px rgba(16, 18, 23, 0.22);
}

.premium-modal .modal-icon {
  align-items: center;
  background: #111;
  border-radius: 22px;
  color: #fff;
  display: inline-flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.playground-run-modal .modal-body {
  text-align: center;
}

.playground-run-modal__title {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.playground-run-modal__lead {
  line-height: 1.5;
  max-width: 26rem;
}

.playground-run-modal__link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.playground-run-modal__link:hover {
  color: var(--gold);
}

.playground-run-modal__price-stack {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 42%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.08),
    0 14px 38px rgba(201, 164, 92, 0.12);
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  margin-inline: auto;
  max-width: 18rem;
  padding: 1.1rem 1.35rem 1rem;
}

.playground-run-modal__price-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.playground-run-modal__price-caption {
  color: rgba(122, 98, 44, 0.9);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.playground-run-modal__price-total {
  color: var(--gold);
  display: block;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.playground-run-modal__price-breakdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.35;
  min-height: 1.35em;
  opacity: 0.92;
}

.playground-run-modal__price-breakdown:empty {
  display: none;
}

.playground-run-modal__price-breakdown:not(:empty) {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201, 164, 92, 0.35);
  width: 100%;
}

.empty-icon {
  align-items: center;
  background: #111;
  border-radius: 22px;
  color: #fff;
  display: inline-flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.playground-actions {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 24px -22px -22px;
  padding: 16px 22px;
  position: sticky;
}

.docs-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.side-menu {
  display: grid;
  gap: 8px;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.side-menu-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 12px 4px;
  text-transform: uppercase;
}

.side-menu a {
  align-items: center;
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.side-menu a:hover,
.side-menu a.active {
  background: #111;
  color: #fff;
}

.mini-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(16, 18, 23, 0.05);
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 22px;
}

.mini-stat i {
  color: var(--gold);
  font-size: 1.25rem;
}

.mini-stat strong {
  font-size: 1.25rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-dashboard-page .dashboard-stats-row,
.account-dashboard-page .dashboard-category-row {
  justify-content: center;
  margin-inline: auto;
  max-width: 960px;
}

.account-dashboard-page .dashboard-category-row {
  max-width: 1080px;
}

.account-dashboard-page .dashboard-stat-mini,
.account-dashboard-page .dashboard-category-mini {
  justify-items: center;
  text-align: center;
}

.account-dashboard-page .dashboard-category-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.account-dashboard-page .dashboard-popular-title {
  justify-self: stretch;
  text-align: center;
}

.account-dashboard-page .dashboard-panel-more {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.account-dashboard-page .dashboard-panel-more:hover {
  color: var(--gold);
}

.account-dashboard-page .dashboard-panels {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-inline: auto;
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .account-dashboard-page .dashboard-panels {
    align-items: start;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  }
}

.sandbox-card--dashboard {
  padding: 18px 20px;
}

.sandbox-card-logo--dashboard,
.sandbox-card-logo-ph--dashboard {
  height: 48px;
  width: 48px;
}

.sandbox-card-logo-ph--dashboard {
  font-size: 1.2rem;
}

.sandbox-card-title--dashboard {
  font-size: 1rem;
}

.dashboard-panel-sandboxes .model-stats--sandbox-link {
  border-top-style: solid;
  border-top-color: rgba(16, 18, 23, 0.06);
  padding-top: 8px;
}

.dashboard-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-recent-item {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 252, 254, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  outline: none;
  padding: 14px 16px;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-recent-item:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 12px 32px rgba(16, 18, 23, 0.07);
  transform: translateY(-1px);
}

.dashboard-recent-item:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.25);
}

.dashboard-recent-item__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dashboard-recent-item__id {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-recent-item__label {
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-recent-item__badge {
  align-self: center;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-recent-item {
    transition: none;
  }

  .dashboard-recent-item:hover {
    transform: none;
  }
}

.generation-detail-page .generation-detail-metrics {
  width: 100%;
}

.generation-detail-page .generation-detail-hero-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
}

.generation-detail-page .generation-detail-hero-title {
  flex: 1 1 12rem;
  line-height: 1.22;
  min-width: 0;
}

.generation-detail-page .generation-detail-hero-head .generation-detail-status {
  flex-shrink: 0;
  margin: 0;
  max-width: min(320px, 100%);
  text-align: center;
  width: auto;
}

@media (max-width: 575.98px) {
  .generation-detail-page .generation-detail-hero-head .generation-detail-status {
    flex-basis: auto;
    width: min(320px, 100%);
    margin-inline: auto;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
  }
}

.generation-detail-page .generation-detail-mini-stat {
  justify-items: center;
  text-align: center;
  width: min(100%, 300px);
}

/* Страница «Мои задачи»: сводка по центру, карточки списка */
.generations-list-page .generations-stat-mini {
  justify-items: center;
  text-align: center;
}

.generations-list-page .generations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.generations-list-page .generation-list-item {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 252, 254, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  padding: 18px 20px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.generations-list-page .generation-list-item:hover {
  border-color: rgba(201, 164, 92, 0.38);
  box-shadow: 0 14px 40px rgba(16, 18, 23, 0.07);
  transform: translateY(-1px);
}

.generations-list-page .generation-list-item__body {
  flex: 1 1 220px;
  min-width: 0;
}

.generations-list-page .generation-list-item__title {
  align-items: baseline;
  color: #12151c;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 1.08rem;
  font-weight: 700;
  gap: 0.35rem 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.generations-list-page .generation-list-item__title:hover {
  color: var(--gold);
}

.generations-list-page .generation-list-item__title:hover .generation-list-item__middot {
  color: rgba(201, 164, 92, 0.55);
}

.generations-list-page .generation-list-item__id {
  color: rgba(18, 21, 28, 0.88);
  font-variant-numeric: tabular-nums;
}

.generations-list-page .generation-list-item__middot {
  color: rgba(18, 21, 28, 0.38);
  font-weight: 600;
  user-select: none;
}

.generations-list-page .generation-list-item__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.35rem 0.25rem;
  line-height: 1.45;
}

.generations-list-page .generation-list-item__meta-dot {
  color: rgba(120, 125, 138, 0.58);
  user-select: none;
}

.generations-list-page .generation-list-item__meta-cost {
  color: rgba(18, 21, 28, 0.74);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.generations-list-page .generation-list-item__aside {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 575.98px) {
  .generations-list-page .generation-list-item__aside {
    justify-content: space-between;
    width: 100%;
  }

  .generations-list-page .generation-list-item__aside .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }
}

.generations-list-page .generation-status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.95rem;
  white-space: nowrap;
}

.generations-list-page .generation-status-pill--completed {
  background: linear-gradient(
    165deg,
    rgba(255, 252, 245, 0.98) 0%,
    rgba(252, 246, 232, 1) 45%,
    rgba(248, 238, 216, 0.97) 100%
  );
  border-color: rgba(201, 164, 92, 0.42);
  color: rgba(90, 72, 28, 0.92);
}

.generations-list-page .generation-status-pill--failed {
  background: #fff6f6;
  border-color: rgba(220, 53, 69, 0.35);
  color: #a62937;
}

.generations-list-page .generation-status-pill--active {
  background: rgba(248, 249, 252, 0.96);
  border-color: rgba(110, 118, 135, 0.28);
  color: rgba(55, 60, 72, 0.92);
}

.generations-list-page .generations-list-empty {
  margin: 0;
  text-align: center;
}

.model-stats {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 10px;
}

.table-card {
  padding: 20px;
}

.admin-topup-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr) auto;
}

.admin-inline-form {
  min-width: 120px;
}

.api-secret,
.api-code {
  white-space: pre-wrap;
  word-break: break-word;
}

.api-code {
  background: #101217;
  border-radius: 22px;
  color: #fff;
  margin: 16px 0 0;
  padding: 22px;
}

.docs-category {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.docs-category:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.docs-category h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.docs-service {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
}

.docs-service-main {
  flex: 1;
  min-width: 0;
}

.docs-service-slug {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.docs-service-title {
  color: var(--ink);
  display: block;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.docs-service-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.docs-service-meta {
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1.35;
  max-width: 100%;
  text-align: right;
  white-space: normal;
}

@media (min-width: 576px) {
  .docs-service-meta {
    white-space: nowrap;
  }
}

.provider-credit {
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 220px;
  padding: 16px 18px;
}

.provider-credit span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.provider-credit strong {
  display: block;
  font-size: 1.1rem;
}

.provider-credit.ok {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border-color: rgba(201, 164, 92, 0.42);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.1),
    0 12px 32px rgba(201, 164, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.provider-credit.ok span {
  color: rgba(122, 98, 44, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.provider-credit.ok strong {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.provider-credit.bad {
  background: #fff6f6;
}

.history-row {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

.history-row > :first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-row:last-child {
  border-bottom: 0;
}

/* API keys — /account/api-keys */
.api-keys-page .api-keys-hero__top {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.api-keys-page .api-keys-hero__icon-wrap {
  align-items: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  border-radius: 14px;
  color: rgba(15, 23, 42, 0.5);
  display: flex;
  font-size: 1.18rem;
  height: 48px;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
}

.api-keys-page .api-keys-hero__tips {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.72rem;
  list-style: none;
  margin: 0;
  padding: 1.35rem 0 0;
}

.api-keys-page .api-keys-hero__tips li {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.875rem;
  gap: 0.65rem;
  line-height: 1.5;
}

.api-keys-page .api-keys-hero__tips li i {
  color: rgba(15, 23, 42, 0.32);
  flex-shrink: 0;
  margin-top: 0.12rem;
  width: 1.15rem;
}

.api-keys-page .api-key-reveal {
  background: linear-gradient(162deg, rgba(254, 252, 232, 0.97), rgba(255, 255, 255, 1));
  border: 1px solid rgba(234, 179, 8, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 16px 48px rgba(202, 138, 4, 0.1);
}

.api-keys-page .api-key-reveal__head {
  border-bottom: 1px dashed rgba(202, 138, 4, 0.28);
  margin-bottom: 1.15rem;
  padding-bottom: 1.05rem;
}

.api-keys-page .api-key-reveal__badge {
  align-items: center;
  background: rgba(202, 138, 4, 0.15);
  border-radius: 999px;
  color: rgb(146, 64, 14);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.72rem;
  text-transform: uppercase;
}

.api-keys-page .api-key-reveal__title {
  display: block;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.api-keys-page .api-key-reveal__lead {
  color: rgb(113, 63, 18);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52rem;
}

.api-keys-page .api-key-token-wrap {
  background: #14161c;
  border-radius: 14px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1.1rem;
  max-height: 9.25rem;
  overflow: auto;
  padding: 1rem 1.15rem;
}

.api-keys-page .api-key-token {
  background: transparent;
  color: #eef1f9;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-keys-page .api-key-reveal__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.api-keys-page .api-key-reveal__hint {
  flex: 1;
  min-width: min(22rem, 100%);
}

.api-keys-inline-code {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 6px;
  font-size: 0.74em;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
}

.api-keys-create {
  overflow: visible;
}

.api-keys-limit-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.03), rgba(254, 252, 232, 0.45));
  border: 1px dashed rgba(15, 23, 42, 0.18);
  overflow: visible;
}

.api-keys-list-card {
  overflow: visible;
}

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.api-keys-page .api-key-item {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  padding: 1.05rem 1.15rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.api-keys-page .api-key-item:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.api-keys-page .api-key-item--revoked {
  background: rgba(15, 23, 42, 0.02);
  opacity: 0.78;
}

.api-keys-page .api-key-item--revoked:hover {
  box-shadow: none;
}

.api-keys-page .api-key-item__main {
  flex: 1;
  min-width: 0;
}

.api-keys-page .api-key-item__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.api-keys-page .api-key-item__name {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.api-keys-page .api-key-item__meta {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.api-keys-page .api-key-prefix {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.38rem;
}

.api-keys-page .api-key-item__dot {
  margin: 0 0.2rem;
}

.api-keys-page .api-key-item__usage {
  line-height: 1.4;
}

.api-keys-page .api-key-item__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

@media (max-width: 575.98px) {
  .api-keys-page .api-key-reveal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .api-keys-page .api-key-reveal__actions .btn {
    width: 100%;
  }

  .api-keys-page .api-key-item__actions {
    width: 100%;
  }

  .api-keys-page .api-key-item__actions .btn {
    width: 100%;
  }
}

.footer a {
  color: var(--muted);
  display: block;
  margin-top: 0.55rem;
}

.topup-shell.glass-card {
  margin-inline: auto;
  max-width: 38rem;
  overflow: visible;
  padding: clamp(1.5rem, 3.8vw, 2.125rem);
}

.topup-split .topup-shell.glass-card {
  margin-inline: 0;
  max-width: none;
}

.topup-aside {
  padding: clamp(1.5rem, 3.8vw, 2rem);
}

.topup-aside-kicker {
  letter-spacing: 0.07em;
}

.topup-aside-list {
  line-height: 1.55;
  margin: 0;
  padding-left: 1.15rem;
}

.topup-aside-list li {
  margin-bottom: 0.55rem;
}

.topup-aside-list li:last-child {
  margin-bottom: 0;
}

.topup-aside-links a {
  text-decoration: none;
}

.topup-aside-balance-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.topup-shell__intro {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.35rem, 3vw, 1.85rem);
  padding-bottom: clamp(1.2rem, 2.8vw, 1.55rem);
}

.topup-shell__title {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.55rem;
}

.topup-shell__lead {
  font-size: 0.935rem;
  line-height: 1.52;
  max-width: 32rem;
}

.topup-range-pill {
  align-items: center;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.12), rgba(201, 164, 92, 0.04));
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 999px;
  color: rgb(107, 80, 32);
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.98rem;
}

.topup-range-pill i {
  font-size: 0.76rem;
  opacity: 0.85;
}

.topup-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.8vw, 1.55rem);
}

.topup-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.topup-block__label {
  color: rgb(54, 60, 69);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.topup-presets {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr));
}

.topup-preset-chip {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 670;
  line-height: 1.35;
  min-height: 2.75rem;
  padding: 0.62rem 0.92rem;
  text-align: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

.topup-preset-chip__cur {
  color: rgba(54, 60, 69, 0.55);
  font-size: 0.74em;
  font-weight: 650;
  margin-left: 0.12rem;
}

.topup-preset-chip:hover {
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: 0 10px 28px rgba(201, 164, 92, 0.12);
}

.topup-preset-chip:focus-visible {
  border-color: rgba(201, 164, 92, 0.75);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.18),
    0 12px 32px rgba(201, 164, 92, 0.12);
  outline: none;
}

.topup-preset-chip.is-active {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.98), rgba(252, 248, 236, 0.99));
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(201, 164, 92, 0.1),
    0 8px 24px rgba(201, 164, 92, 0.15);
}

.topup-preset-chip:active:not(:disabled) {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .topup-preset-chip {
    transition: none;
  }

  .topup-preset-chip:active:not(:disabled) {
    transform: none;
  }
}

.topup-money-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 4px rgba(16, 18, 23, 0.04),
    0 1px 2px rgba(16, 18, 23, 0.04);
  display: flex;
  gap: 0.65rem;
  max-width: 100%;
  min-height: 3.5rem;
  padding-inline: clamp(1.15rem, 3vw, 1.55rem);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.topup-money-field:focus-within {
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 2px 4px rgba(16, 18, 23, 0.04),
    0 0 0 3px rgba(201, 164, 92, 0.16);
}

.topup-money-input {
  appearance: none;
  -moz-appearance: textfield;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: clamp(1.35rem, 3.8vw, 1.72rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-width: 0;
  outline: none;
  padding-block: 0;
  padding-inline: 0;
}

.topup-money-input::-webkit-inner-spin-button,
.topup-money-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.topup-money-input::placeholder {
  color: rgba(102, 112, 133, 0.55);
  font-weight: 600;
}

.topup-money-currency {
  color: rgba(54, 60, 69, 0.38);
  flex-shrink: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.22rem);
  font-weight: 750;
  line-height: 1;
}

.topup-submit {
  font-weight: 650;
  letter-spacing: 0.015em;
}

.topup-dev-hint {
  background: rgba(16, 18, 23, 0.03);
  border-left: 3px solid rgba(201, 164, 92, 0.45);
  border-radius: 0 14px 14px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.52;
  margin: 0.35rem 0 0;
  padding: 0.75rem 0.92rem;
}

.topup-dev-hint code {
  background: rgba(16, 18, 23, 0.06);
  border-radius: 6px;
  color: rgb(139, 90, 90);
  font-size: 0.77rem;
  padding: 0.12rem 0.35rem;
  word-break: break-word;
}

.letter-spacing-wide {
  letter-spacing: 0.08em;
}

.topup-disabled-panel {
  padding: clamp(26px, 4vw, 40px);
}

@media (max-width: 767px) {
  .hero-section,
  .page-hero {
    padding: 40px 0;
  }

  .account-page,
  .auth-page {
    padding: 56px 0;
  }

  .section {
    padding: 26px 0;
  }

  .display-3 {
    font-size: 2.8rem;
  }

  .hero-stats {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-card.featured {
    transform: none;
  }

  .side-menu {
    position: static;
  }

  .admin-topup-form {
    grid-template-columns: 1fr;
  }

  .docs-service {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-service-meta {
    align-self: flex-start;
    text-align: left;
    width: 100%;
    white-space: normal;
  }
}

/* ---------- Articles ---------- */
.container-narrow-article {
  max-width: 52rem;
}

.article-card {
  overflow: hidden;
}

.article-card-cover {
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.06);
}

.article-card-cover img {
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-cover-img {
  max-height: 22rem;
  object-fit: cover;
}

.article-body {
  line-height: 1.68;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.article-body blockquote {
  border-left: 3px solid rgba(15, 23, 42, 0.2);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgba(15, 23, 42, 0.75);
}

.article-body img,
.article-body video {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.article-body pre,
.article-body .ql-syntax {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-quill-editor {
  min-height: 22rem;
}

.article-quill-editor .ql-editor {
  min-height: 21rem;
  font-size: 1rem;
}