/* Строгое выравнивание для 3 колонок (разрешение, длительность, соотношение) */
.ms-row--triple > .ms-field {
  width: 100%;
  max-width: 100%;
  flex: 1 1 33.333%;
  box-sizing: border-box;
}
/* Full-width standalone field (e.g. Veo seed row) */
.ms-field--full {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Seed всегда 1/2 ширины окна (даже если один в строке) */
.ms-row--double > .ms-field {
  width: 100%;
  max-width: 100%;
  flex: 1 1 50%;
  box-sizing: border-box;
  gap: 4px;
}
/* Seed control = как обычный input, но с кнопкой справа */
.ms-seed-control{
  display:flex;
  align-items:stretch;
  width:100%;
  min-height: var(--ms-control-h);      /* 34px */
  border-radius: 12px;                  /* как у .ms-input */
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  overflow:hidden;
}

.ms-seed-input{
  flex:1 1 auto;
  /* gap: 6px; */
  padding: 7px 10px;                    /* как у .ms-input */
  font-size:13px;
  color:#f3f6ff;
  background:transparent;
  border:0;
  outline:none;
  min-width:0;
}

.ms-seed-random{
    gap: 6px;
    margin-top: 0 !important;
  border:0;
  background:transparent;
  color:#f3f6ff;
  font-size:13px;
  cursor:pointer;
  border-left:1px solid rgba(255,255,255,0.10);
  white-space:nowrap;
}

.ms-seed-random:hover{ background: rgba(255,255,255,0.06); }
.ms-seed-random:disabled{ cursor:not-allowed; opacity:0.65; }
.ms-seed-control.is-disabled{ opacity:0.65; }
/* убрать спиннеры */
.ms-seed-input::-webkit-outer-spin-button,
.ms-seed-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.ms-seed-input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}
.ms-module-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ms-module-root > .aidc-scroll-host {
  flex: 1 1 auto;
  min-height: 0;
}

.ms-panel-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ms-panel-block > .ms-module-root {
  flex: 1 1 auto;
  min-height: 0;
}

.page-video .module-stack > .ms-module-root,
.page-video .module-stack > .ms-module-root:last-child {
  flex: 1 1 auto;
  min-height: 0;
}

.ms-shell {
  --ms-control-h: 34px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #1a1b1e;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.ms-body, .ms-empty {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ms-body::-webkit-scrollbar,
.ms-empty::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ms-shell.aidc-scroll {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ms-shell.aidc-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ms-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #f2f2fa;
}

.ms-badge {
  display: none;
}

.ms-tabs {
  display: none;
}

.ms-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-select-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ms-label {
  font-size: 12px;
  color: #9094b6;
  letter-spacing: 0.04em;
}

.ms-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ms-tip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #f2f2fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.ms-tip:hover {
  background: rgba(255,255,255,0.16);
}

.ms-tip-bubble {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #232426;
  color: #dfe3ff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  min-width: 220px;
  max-width: 320px;
  z-index: 10010;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.ms-tip:hover .ms-tip-bubble {
  display: block;
}

.ms-select,
.ms-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f3f6ff;
  padding: 7px 10px;
  font-size: 13px;
  min-height: var(--ms-control-h);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.ms-select {
  appearance: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  padding-right: 40px;
  cursor: pointer;
}

.ms-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff7de9, #7ae2ff);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.5 9l5.5 6 5.5-6z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.5 9l5.5 6 5.5-6z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  pointer-events: none;
}

.ms-shell .aidc-select__btn{
  padding: 7px 10px;
  font-size: 13px;
  min-height: var(--ms-control-h);
}
.ms-shell .aidc-select__option{
  padding: 7px 10px;
  font-size: 13px;
}

.ms-select option {
  background: #1a1b1e;
  color: #f3f6ff;
}
.ms-select option:checked,
.ms-select option:hover {
  background: linear-gradient(135deg, #ff3cac, #c644fc) !important;
  color: #fff;
}
/* Override browser's default blue highlight in open dropdown */
.ms-select:focus option:checked {
  background: linear-gradient(135deg, #ff3cac, #c644fc) !important;
  color: #fff;
}

.ms-select:focus,
.ms-input:focus {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}

.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.ms-row--triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
  align-items: stretch;
}

.ms-field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Allow a field inside a triple-row to span 2 columns (2/3 width) */
.ms-row--triple > .ms-field--span2 {
  grid-column: span 2;
}

/* Allow a field inside a triple-row to span all 3 columns (full width) */
.ms-row--triple > .ms-field--span3 {
  grid-column: span 3;
}

.ms-wide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  grid-column: 1 / -1;
}

.ms-wide-row .ms-field {
  height: 100%;
}

.ms-seed-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: var(--ms-control-h);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  overflow: hidden;
}

.ms-seed-row .ms-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  border-radius: 0;
  min-height: unset;
  padding: 7px 10px;
}

.ms-seed-row .ms-input:focus {
  box-shadow: none;
}

.ms-seed-row .ms-chip-inline {
  flex: 0 0 auto;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  min-height: unset;
  padding: 7px 14px;
  width: auto;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #b0b4d0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ms-seed-row .ms-chip-inline:hover {
  background: rgba(255,255,255,0.08);
  color: #f3f6ff;
}

.ms-chip-inline {
  padding: 7px 12px;
  min-height: var(--ms-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ms-seed-row .ms-input {
  min-height: var(--ms-control-h);
  padding: 7px 10px;
}

@media (max-width: 680px) {
  .ms-wide-row {
    grid-template-columns: 1fr;
  }
}

.ms-wide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  grid-column: 1 / -1;
}

.ms-wide-row .ms-field {
  height: 100%;
}

@media (max-width: 680px) {
  .ms-wide-row {
    grid-template-columns: 1fr;
  }
}

.ms-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ms-chip {
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #cfd3f0;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ms-chip.is-active {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #f7f7ff;
}

.ms-subtext {
  font-size: 12px;
  color: #8c91b1;
}

.ms-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #dfe3ff;
  padding: 7px 10px;
  min-height: var(--ms-control-h);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.ms-toggle.is-on {
  border-color: rgba(255,255,255,0.25);
  background: linear-gradient(120deg, rgba(255,98,197,0.18), rgba(122,226,255,0.12));
}

.ms-toggle.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ms-toggle-knob {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  position: relative;
  transition: background 0.18s;
}

.ms-toggle-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f5f5ff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45);
  transition: transform 0.18s, background 0.18s;
}

.ms-toggle.is-on .ms-toggle-knob {
  background: linear-gradient(120deg, #ff62c5, #7ae2ff);
}

.ms-toggle.is-on .ms-toggle-knob::after {
  transform: translateX(16px);
  background: #05050c;
}

.ms-toggle-text {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.ms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--ms-control-h);
}

.ms-value {
  font-size: 13px;
  color: #d8dcff;
  min-width: 48px;
  text-align: right;
}

.ms-slider {
  flex: 1;
  min-width: 180px;
  padding: 0;
  height: 3px;
  min-height: unset;
  background: linear-gradient(90deg, rgba(90,140,255,0.35), rgba(255,120,200,0.32));
  appearance: none;
  border-radius: 999px;
  border: none;
}

.ms-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4ff6a;
  border: 1.5px solid #0b0b14;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
  cursor: pointer;
}

.ms-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4ff6a;
  border: 1.5px solid #0b0b14;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
  cursor: pointer;
}

.ms-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.14);
  color: #a7acc7;
  text-align: center;
}

/* When ms-empty contains a styled placeholder-card, reset the wrapper
   so the card's own styles are not overridden by the dashed border/bg. */
.ms-empty:has(.placeholder-card) {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.ms-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ms-cta {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #0a0a12;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(120deg, #d40175, #ec0283);
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.5),
    0 0 26px rgba(255,105,210,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.12s, box-shadow 0.18s, filter 0.18s;
  position: relative;
  overflow: hidden;
}

.ms-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px rgba(0,0,0,0.55),
    0 0 32px rgba(255,140,230,0.7),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

.ms-cta:disabled {
  filter: grayscale(0.4);
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 10px 16px rgba(0,0,0,0.3);
}

.ms-cta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ms-cta-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ff7de9, #7ae2ff);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.2 2.5a1 1 0 0 1 .8.98v5.77h5.08a1 1 0 0 1 .82 1.58l-8.4 11.93a1 1 0 0 1-1.8-.58v-5.77H4.82a1 1 0 0 1-.82-1.58l8.4-11.93a1 1 0 0 1 .8-.4z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.2 2.5a1 1 0 0 1 .8.98v5.77h5.08a1 1 0 0 1 .82 1.58l-8.4 11.93a1 1 0 0 1-1.8-.58v-5.77H4.82a1 1 0 0 1-.82-1.58l8.4-11.93a1 1 0 0 1 .8-.4z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.ms-cta-tokens {
  font-weight: 900;
  color: #0a0a12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ms-academy {
  font-size: 12px;
  color: #c7cffc;
  text-decoration: none;
  opacity: 0.85;
  line-height: 1.5;
}

.ms-academy:hover {
  opacity: 1;
  text-decoration: underline;
}

.ms-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.ms-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-presets .ms-chip {
  width: 100%;
  text-align: center;
}

/* ── Plan-locked model / variant / option ── */

/* Inline SVG lock icon */
.ms-lock-icon {
  display: inline-block;
  vertical-align: -1px;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════
   Custom dropdown — used on all platforms (site + TG)
   ═══════════════════════════════════════════════════════ */
.ms-dropdown {
  position: relative;
  width: 100%;
}
.ms-dropdown__toggle {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: #e8ebff;
  padding: 10px 36px 10px 12px;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}
/* chevron arrow */
.ms-dropdown__toggle::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.45);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.5 9l5.5 6 5.5-6z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.5 9l5.5 6 5.5-6z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
  transition: transform 0.18s;
}
.ms-dropdown__toggle:hover {
  border-color: rgba(255,255,255,0.22);
}
.ms-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: rgba(9,9,16,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.02);
  display: none;
  z-index: 1200;
}
.ms-dropdown__menu.is-open { display: block; }
.ms-dropdown__item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e8ebff;
  padding: 10px;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}
.ms-dropdown__item:hover,
.ms-dropdown__item:focus-visible {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* Model or variant locked for current plan (shown but not selectable) */
.ms-locked-model {
  opacity: 0.5;
  position: relative;
}

/* Dropdown item locked (custom dropdown) */
.ms-dropdown__item.ms-plan-locked {
  opacity: 0.45;
  pointer-events: none;
  position: relative;
  color: #888;
}

/* Native <select> <option> locked — browsers don't support rich styling,
   so we use disabled + a text hint */

/* Field option locked inside custom dropdown */
.ms-dropdown__item.ms-option-locked {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
  text-decoration: line-through;
  color: #888;
}

/* Variant restricted by current mode (e.g. Relaxed blocked when mode ≠ Text to Image) */
.ms-dropdown__item.ms-mode-restricted {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
  color: #888;
  cursor: not-allowed;
}
.ms-restricted-hint {
  font-size: 0.82em;
  opacity: 0.65;
  font-style: italic;
}

/* Upgrade banner shown when locked model is selected */
.ms-upgrade-banner {
  background: linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,60,60,0.10));
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ffc880;
  line-height: 1.4;
}
.ms-upgrade-banner .ms-upgrade-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ms-upgrade-banner .ms-upgrade-icon .ms-lock-icon {
  width: 18px;
  height: 18px;
  stroke: #ffc880;
}
.ms-upgrade-banner .ms-upgrade-text {
  flex: 1;
}
.ms-upgrade-banner .ms-upgrade-link {
  color: #ffb347;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.ms-upgrade-banner .ms-upgrade-link:hover {
  color: #ffe0a0;
}

/* CTA button locked state (model not available on plan) */
.ms-cta.ms-cta-locked {
  background: linear-gradient(135deg, #444, #333) !important;
  cursor: not-allowed;
  opacity: 0.7;
}
.ms-cta.ms-cta-locked .ms-lock-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.ms-cta.ms-cta-locked:hover {
  filter: none;
  transform: none;
}

/* ═══════════════════════════════════════════════════════
   Unified field cell style — all controls inside ms-field
   (select dropdowns, readonly inputs, seed) must look the same
   ═══════════════════════════════════════════════════════ */

/* Dropdown toggle inside field cells: match ms-input style */
.ms-field .ms-dropdown__toggle {
  padding: 7px 10px;
  font-size: 13px;
  min-height: var(--ms-control-h, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
}

/* Readonly (disabled) inputs inside field cells */
.ms-field .ms-input:disabled,
.ms-field .ms-input[disabled] {
  padding: 7px 10px;
  font-size: 13px;
  min-height: var(--ms-control-h, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  color: #e8ebff;
  opacity: 1;
  cursor: default;
}

/* ── Текстовый input (type: "text") ── */
.ms-text-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.ms-text-input:focus {
  border-color: rgba(99, 102, 241, 0.6);
}
.ms-text-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.ms-text-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Разделитель секций (type: "divider") ── */
.ms-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px 0;
  padding: 0;
}
.ms-divider::before,
.ms-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.ms-divider__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

