/* === Reels Maker CSS ===
   Single-file stylesheet kept intentionally: tokens, base layout, shared components,
   generator, landing/dashboard, modals and responsive rules live here in order.
   Do not rename classes without checking PHP views and reels.js data hooks.
*/

:root {
  --rm-bg: #090d14;
  --rm-bg2: #0d1220;
  --rm-card: rgba(20, 27, 41, .94);
  --rm-card2: rgba(14, 20, 32, .94);
  --rm-line: rgba(255,255,255,.11);
  --rm-line2: rgba(255,255,255,.18);
  --rm-text: #f4f7ff;
  --rm-muted: #9ba7bd;
  --rm-soft: #c9d4ea;
  --rm-accent: #7c5cff;
  --rm-blue: #3ca7ff;
  --rm-green: #18c37d;
  --rm-orange: #ffbd4a;
  --rm-danger: #ff5b6e;
  --rm-shadow: 0 24px 70px rgba(0,0,0,.34);
}

body.rm-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -6%, rgba(124,92,255,.34), transparent 32%),
    radial-gradient(circle at 88% 3%, rgba(60,167,255,.18), transparent 30%),
    radial-gradient(circle at 70% 98%, rgba(24,195,125,.10), transparent 32%),
    linear-gradient(180deg, var(--rm-bg), var(--rm-bg2) 58%, #080b11);
  color: var(--rm-text);
  font-family: 'Nunito', Inter, Arial, sans-serif;
  letter-spacing: .006em;
}

/* === Typography === */
body.rm-body h1,
body.rm-body h2 {
  letter-spacing: -.002em;
}

html[lang="en"] body.rm-body {
  letter-spacing: .010em;
}

html[lang="en"] body.rm-body h1,
html[lang="en"] body.rm-body h2 {
  letter-spacing: .002em;
}

.rm-top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: auto;
  display: block;
  background: rgba(8, 12, 19, .78);
  border-bottom: 1px solid var(--rm-line);
  backdrop-filter: blur(14px);
}

.rm-top-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.rm-logo::before {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-green));
  box-shadow: 0 12px 30px rgba(124,92,255,.35);
}

.rm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.rm-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--rm-soft);
  font-size: 14px;
  font-weight: 850;
}

.rm-logout-form {
  display: inline-flex;
  margin: 0;
}

.rm-nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--rm-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.rm-nav a:hover {
  color: #fff;
  border-color: var(--rm-line2);
  background: rgba(255,255,255,.06);
}

.rm-nav-button:hover {
  color: #fff;
  border-color: var(--rm-line2);
  background: rgba(255,255,255,.06);
}

.rm-wrap {
  display: block;
  flex: 1 0 auto;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 70px;
}

.rm-flash {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(24,195,125,.13);
  border: 1px solid rgba(24,195,125,.32);
  color: #baffd8;
  white-space: pre-wrap;
}

.rm-flash.err {
  background: rgba(255,91,110,.13);
  border-color: rgba(255,91,110,.32);
  color: #ffd1d8;
}

.rm-hero,
.rm-card,
.rm-panel,
.rm-feature,
.rm-option,
.rm-row,
.rm-login-box {
  background: linear-gradient(180deg, var(--rm-card), var(--rm-card2));
  border: 1px solid var(--rm-line);
  box-shadow: var(--rm-shadow);
}

.rm-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 26px;
  align-items: center;
  min-height: 560px;
  padding: 34px;
  border-radius: 30px;
}

.rm-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(124,92,255,.18);
  filter: blur(8px);
  pointer-events: none;
}

.rm-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(124,92,255,.17);
  border: 1px solid rgba(124,92,255,.28);
  color: #e3dcff;
  font-size: 13px;
  font-weight: 950;
}

.rm-hero h1,
.rm-card h1 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: .98;
}

.rm-hero h2,
.rm-card h2,
.rm-panel h2,
.rm-feature h3 {
  margin: 0;
  color: #fff;
}

.rm-hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--rm-soft);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 650;
}

.rm-muted {
  color: var(--rm-muted);
  line-height: 1.55;
}

.rm-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rm-btn,
button.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 15px;
  border: 0;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-blue));
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(60,167,255,.16);
}

.rm-btn:hover,
button.rm-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.rm-btn:disabled,
button.rm-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  filter: none;
}

.rm-btn.rm-btn-locked,
button.rm-btn.rm-btn-locked {
  cursor: pointer;
  opacity: .68;
  filter: grayscale(.2);
}

.rm-btn.rm-btn-locked:hover,
button.rm-btn.rm-btn-locked:hover {
  transform: none;
  filter: grayscale(.2) brightness(1.04);
}

.rm-btn.secondary,
button.rm-btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--rm-line2);
  box-shadow: none;
}

.rm-btn.green,
button.rm-btn.green {
  background: linear-gradient(135deg, var(--rm-green), #10a666);
  box-shadow: 0 14px 34px rgba(24,195,125,.18);
}

.rm-btn.orange,
button.rm-btn.orange {
  background: linear-gradient(135deg, var(--rm-orange), #ff7c4a);
  color: #171009;
}

.rm-demo-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  justify-self: end;
  border-radius: 28px;
  padding: 18px;
  background: rgba(7, 10, 16, .82);
  border: 1px solid var(--rm-line2);
  box-shadow: 0 26px 90px rgba(0,0,0,.46);
}

.rm-phone {
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 24%),
    radial-gradient(circle at 50% 22%, rgba(124,92,255,.32), transparent 28%),
    linear-gradient(180deg, #121a2a, #06080d);
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.rm-phone-scene {
  height: 55%;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 35%, rgba(60,167,255,.55), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(24,195,125,.32), transparent 24%),
    linear-gradient(135deg, rgba(124,92,255,.36), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
}

.rm-caption-line {
  margin-top: 13px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.44);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
  line-height: 1.15;
}

.rm-phone-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.rm-phone-meta span {
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: var(--rm-soft);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.rm-section-title {
  margin: 28px 0 12px;
}

.rm-section-title h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 30px;
}

.rm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rm-feature {
  border-radius: 22px;
  padding: 20px;
}

.rm-feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(124,92,255,.18);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  margin-bottom: 12px;
}

.rm-card,
.rm-panel,
.rm-login-box {
  border-radius: 24px;
  padding: 22px;
  margin: 16px 0;
}

.rm-card > h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
}

.rm-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rm-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}


.rm-option,
.rm-row {
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
  background: rgba(9, 14, 24, .72);
  border: 1px solid var(--rm-line);
  box-shadow: none;
}

.rm-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: center;
}

.rm-panel label,
.rm-card label,
.rm-login-box label {
  display: block;
  margin: 13px 0 7px;
  color: #eef3ff;
  font-weight: 900;
}

.rm-field-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 7px;
}

.rm-field-head label {
  margin: 0;
}

.rm-char-count {
  flex: 0 0 auto;
  color: rgba(201, 212, 234, .56);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.rm-char-count.is-warning {
  color: rgba(255, 189, 74, .82);
}

.rm-char-count.is-full {
  color: rgba(255, 91, 110, .88);
}

.rm-panel input,
.rm-panel select,
.rm-panel textarea,
.rm-card input,
.rm-card select,
.rm-card textarea,
.rm-login-box input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--rm-line2);
  background: #0a101b;
  color: var(--rm-text);
  outline: none;
}

.rm-panel textarea,
.rm-card textarea {
  resize: vertical;
  min-height: 96px;
}

.rm-panel input:focus,
.rm-panel select:focus,
.rm-panel textarea:focus,
.rm-card input:focus,
.rm-card select:focus,
.rm-card textarea:focus {
  border-color: rgba(124,92,255,.84);
  box-shadow: 0 0 0 3px rgba(124,92,255,.16);
}

.rm-cost {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(124,92,255,.11);
  border: 1px solid rgba(124,92,255,.24);
  border-radius: 18px;
  padding: 14px;
  margin: 14px 0;
}

.rm-price {
  font-size: 25px;
  font-weight: 950;
}

.rm-mini {
  font-size: 13px;
  color: var(--rm-muted);
}

@media (max-width: 900px) {
  .rm-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }
  .rm-demo-card {
    justify-self: start;
    width: 100%;
    max-width: 390px;
  }
  .rm-feature-grid,
  .rm-grid3,
  .rm-progress,
  .rm-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rm-top-inner,
  .rm-wrap {
    width: min(100% - 20px, 1120px);
  }
  .rm-top-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .rm-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .rm-hero,
  .rm-card,
  .rm-panel,
  .rm-login-box {
    border-radius: 20px;
    padding: 18px;
  }
  .rm-actions {
    flex-direction: column;
  }
  .rm-btn,
  button.rm-btn {
    width: 100%;
  }
  .rm-feature-grid,
  .rm-grid2 {
    grid-template-columns: 1fr;
  }
}

.rm-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.rm-dashboard-hero > div:first-child,
.rm-start-box {
  background: linear-gradient(180deg, var(--rm-card), var(--rm-card2));
  border: 1px solid var(--rm-line);
  border-radius: 28px;
  box-shadow: var(--rm-shadow);
  padding: 24px;
}

.rm-dashboard-hero h1 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
}

.rm-start-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rm-start-box strong {
  color: #fff;
  font-size: 22px;
}

.rm-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rm-section-head h2 {
  margin: 0 0 6px;
}

.rm-empty-state {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed var(--rm-line2);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: var(--rm-soft);
}

.rm-empty-state strong {
  color: #fff;
}

.rm-project-list {
  display: grid;
  gap: 10px;
}

.rm-project-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(9, 14, 24, .72);
  color: var(--rm-text);
}

.rm-project-item:hover {
  border-color: rgba(124,92,255,.54);
  background: rgba(124,92,255,.10);
}

.rm-project-item strong,
.rm-project-item span {
  display: block;
}

.rm-project-item span,
.rm-project-meta {
  color: var(--rm-muted);
  font-size: 13px;
}

.rm-project-meta {
  text-align: right;
  white-space: nowrap;
}

.rm-warning-panel {
  border-color: rgba(255,189,74,.35);
  background: rgba(255,189,74,.08);
}

.rm-project-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.rm-project-head h1 {
  margin: 8px 0 4px;
}

.rm-back-link {
  display: inline-flex;
  color: var(--rm-soft);
  font-weight: 850;
  margin-bottom: 4px;
}

.rm-project-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24,195,125,.13);
  border: 1px solid rgba(24,195,125,.28);
  color: #baffd8;
  font-size: 13px;
  font-weight: 950;
}

@media (max-width: 900px) {
  .rm-dashboard-hero,
  .rm-project-head,
  .rm-project-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .rm-project-meta {
    text-align: left;
  }
}

.rm-step-form label,
.rm-option label {
  display: block;
  margin: 14px 0 6px;
  color: #e7edff;
  font-weight: 900;
}

.rm-step-form input,
.rm-step-form textarea,
.rm-step-form select,
.rm-option textarea {
  width: 100%;
  border: 1px solid var(--rm-line);
  background: rgba(8, 12, 19, .72);
  color: var(--rm-text);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

.rm-step-form input:focus,
.rm-step-form textarea:focus,
.rm-step-form select:focus,
.rm-option textarea:focus {
  border-color: rgba(124, 92, 255, .72);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .14);
}

.rm-topic-bank {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(124, 92, 255, .24);
  background: rgba(124, 92, 255, .08);
  border-radius: 18px;
}

.rm-topic-bank strong {
  display: block;
  margin-bottom: 10px;
}

.rm-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rm-chip {
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--rm-line);
  border-radius: 13px;
  background: rgba(20, 29, 44, .92);
  color: #eef3ff;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.rm-chip:hover {
  border-color: rgba(124, 92, 255, .65);
  background: rgba(27, 37, 64, .96);
}

.rm-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.rm-panel label.rm-check,
.rm-card label.rm-check,
.rm-login-box label.rm-check,
.rm-check {
  width: auto;
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  margin: 0;
  line-height: 1.15;
  cursor: pointer;
}

.rm-check input,
.rm-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--rm-green);
}

.rm-script-list {
  display: grid;
  gap: 14px;
}

.rm-option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.rm-option-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124, 92, 255, .18);
  color: #e5ddff;
  font-weight: 950;
}

@media (max-width: 900px) {
  .rm-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rm-topic-grid {
    grid-template-columns: 1fr;
  }
}

.rm-project-ref {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 800;
}

.rm-actions-split {
  justify-content: space-between;
  align-items: center;
}

.rm-actions-top {
  margin-top: 0;
  margin-bottom: 12px;
}


.rm-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 14, .78);
  backdrop-filter: blur(14px);
}

.rm-loading[hidden] {
  display: none !important;
}

.rm-loading-box {
  width: min(420px, 100%);
  text-align: center;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20,27,41,.98), rgba(10,16,27,.98));
  border: 1px solid var(--rm-line2);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.rm-loader {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,.12);
  border-top-color: var(--rm-green);
  animation: rm-spin .9s linear infinite;
}

.rm-loading-box h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.rm-loading-box p {
  margin: 0;
  color: var(--rm-muted);
  line-height: 1.55;
}

.rm-is-loading {
  cursor: wait;
}

@keyframes rm-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .rm-actions-split {
    justify-content: stretch;
  }

  .rm-check-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rm-panel label.rm-check,
  .rm-card label.rm-check,
  .rm-login-box label.rm-check,
  .rm-check {
    width: 100%;
  }
}

/* === Generator: step choices === */
.rm-choice-box {
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(124, 92, 255, .24);
  background: rgba(124, 92, 255, .075);
  border-radius: 20px;
}

.rm-choice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.rm-choice-head strong {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.rm-choice-head span {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 850;
}

.rm-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.rm-choice-grid.format-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rm-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 11px 12px;
}

.rm-chip span {
  color: #f5f7ff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.rm-chip small {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.rm-chip.active {
  border-color: rgba(24, 195, 125, .72);
  background: linear-gradient(135deg, rgba(24,195,125,.20), rgba(124,92,255,.14));
  box-shadow: 0 12px 30px rgba(24,195,125,.12), inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(1px);
}

.rm-chip.active small {
  color: #c7f8df;
}

.rm-advanced {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.rm-advanced summary {
  color: #eef3ff;
  font-weight: 950;
  cursor: pointer;
}

.rm-advanced[open] summary {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .rm-choice-grid,
  .rm-choice-grid.format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rm-choice-head {
    display: block;
  }

  .rm-choice-head span {
    display: block;
    margin-top: 4px;
  }

  .rm-choice-grid,
  .rm-choice-grid.format-grid {
    grid-template-columns: 1fr;
  }
}

.rm-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  height: 14px;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-1px);
}

.rm-back-link .rm-arrow {
  margin-right: 4px;
}

.rm-boosters {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.rm-choice-head.compact {
  margin-bottom: 10px;
}

.rm-choice-head.compact strong {
  font-size: 15px;
}

.rm-choice-head.compact span {
  font-size: 12px;
}

.rm-chip {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rm-chip span,
.rm-chip small {
  display: block;
  width: 100%;
  text-align: center;
}

.rm-arrow {
  width: 13px;
  min-width: 13px;
  height: 1em;
  font-size: 17px;
  line-height: 1;
  transform: none;
  vertical-align: middle;
}

.rm-btn .rm-arrow,
.rm-back-link .rm-arrow {
  position: relative;
  top: 0;
}

.rm-panel select,
.rm-card select,
.rm-step-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #cfd7ea 50%),
    linear-gradient(135deg, #cfd7ea 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}


.rm-project-head h1 {
  max-width: 780px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
}

.rm-project-head .rm-muted {
  max-width: 760px;
  font-size: 14px;
}

.rm-project-item strong {
  font-size: 15px;
  line-height: 1.25;
}

.rm-audio-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(9,14,24,.72);
}

.rm-audio-box > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.rm-audio-box strong,
.rm-audio-box span {
  display: block;
}

.rm-audio-box span {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.rm-audio-box audio {
  display: block;
  width: 100%;
  margin: 6px 0 10px;
}

@media (max-width: 640px) {
  .rm-audio-box > div:first-child {
    display: block;
  }

  .rm-audio-box span {
    margin-top: 4px;
    text-align: left;
  }
}

.rm-audio-status {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 12px;
}

.rm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.rm-pill.ok {
  color: #8ff5bf;
  border: 1px solid rgba(25, 195, 125, .35);
  background: rgba(25, 195, 125, .12);
}

.rm-pill.warn {
  color: #ffd38a;
  border: 1px solid rgba(255, 189, 74, .35);
  background: rgba(255, 189, 74, .12);
}

.rm-scene-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.rm-scene-card {
  padding: 16px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(9, 14, 24, .72);
}

.rm-scene-num {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, .14);
  color: #d9d1ff;
  font-size: 12px;
  font-weight: 900;
}

.rm-empty-mini,
.rm-media-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 750;
}

.rm-preset-grid,
.rm-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.rm-check-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: rgba(9, 14, 24, .72);
  cursor: pointer;
  font-weight: 850;
}

.rm-check-card input {
  width: auto;
  min-width: 16px;
}

.rm-check-card:has(input:checked) {
  border-color: rgba(124, 92, 255, .72);
  background: rgba(124, 92, 255, .16);
}

.rm-scenes-edit {
  margin-top: 18px;
}

.rm-img-card {
  padding: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(9, 14, 24, .72);
}

.rm-img-card img,
.rm-img-card video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  background: #02040a;
  margin: 12px 0;
}

.rm-empty-asset {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--rm-muted);
  background: rgba(255,255,255,.035);
  font-weight: 800;
}

.rm-actions.compact {
  gap: 8px;
}

.rm-btn.danger {
  background: linear-gradient(135deg, #ff5b6e, #b9314c);
}

.rm-modal[hidden] {
  display: none;
}

.rm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  background: rgba(3, 5, 10, .76);
  backdrop-filter: blur(8px);
}

.rm-modal-card {
  width: min(820px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #171d2a, #10151f);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.rm-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rm-modal-head .rm-muted {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.rm-drop-zone {
  display: block;
  padding: 12px 14px;
  margin: 8px 0 12px;
  border: 2px dashed rgba(124,92,255,.55);
  border-radius: 20px;
  background: rgba(124,92,255,.08);
  text-align: center;
  cursor: pointer;
}

.rm-drop-zone::before {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #d9d1ff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.rm-drop-zone:hover {
  border-color: rgba(124,92,255,.82);
  background: rgba(124,92,255,.12);
}

.rm-drop-zone input {
  display: none;
}

.rm-drop-zone strong,
.rm-drop-zone span {
  display: block;
}

.rm-drop-zone span {
  margin-top: 4px;
  color: var(--rm-muted);
  font-size: 13px;
}

.rm-animation-modal-card {
  width: min(520px, 100%);
}

.rm-image-prompt-modal-card {
  width: min(620px, 100%);
}

.rm-animation-modal-card textarea,
.rm-image-prompt-modal-card textarea {
  min-height: 92px;
  resize: vertical;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.64) rgba(8,12,19,.72);
}

.rm-image-prompt-modal-card textarea {
  min-height: 180px;
}

.rm-animation-modal-card textarea::-webkit-scrollbar,
.rm-image-prompt-modal-card textarea::-webkit-scrollbar {
  width: 7px;
}

.rm-animation-modal-card textarea::-webkit-scrollbar-track,
.rm-image-prompt-modal-card textarea::-webkit-scrollbar-track {
  background: rgba(8,12,19,.72);
  border-radius: 999px;
}

.rm-animation-modal-card textarea::-webkit-scrollbar-thumb,
.rm-image-prompt-modal-card textarea::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,.64);
  border-radius: 999px;
  border: 1px solid rgba(8,12,19,.72);
}

.rm-animation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 14px;
}

.rm-animation-options label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.rm-animation-options input {
  margin: 0;
  accent-color: #18c37d;
}

.rm-animation-options span {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.rm-animation-options small {
  color: var(--rm-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.rm-crop-work {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  align-items: start;
}

.rm-cropper-box {
  width: min(300px, 100%);
  height: 533px;
  max-height: min(58dvh, 533px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: #05070d;
}

.rm-cropper-box img {
  display: block;
  max-width: 100%;
}

.rm-cropper-box video {
  position: absolute;
  width: 240px;
  right: 26px;
  bottom: 24px;
  opacity: .18;
  border-radius: 14px;
  pointer-events: none;
}

.rm-crop-work > div:last-child {
  min-width: 0;
}

.rm-motion-custom {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(9, 14, 24, .52);
}

.rm-motion-custom[hidden] {
  display: none;
}

.rm-render-block {
  margin-top: 18px;
}

.rm-render-block .rm-section-head-small {
  margin: 0 0 10px;
}

.rm-render-block .rm-section-head-small p {
  margin: 4px 0 0;
}

.rm-render-style-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rm-panel label.rm-render-style-card {
  display: grid;
  min-height: 74px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 12px;
  background: rgba(9,14,24,.66);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.rm-panel label.rm-render-style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}

.rm-panel label.rm-render-style-card.is-selected,
.rm-panel label.rm-render-style-card:has(input:checked) {
  border-color: rgba(25,195,125,.58);
  background: rgba(25,195,125,.075);
  box-shadow: inset 0 0 0 1px rgba(25,195,125,.08);
}

.rm-render-style-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rm-render-style-card span {
  display: grid;
  gap: 5px;
}

.rm-render-style-card strong {
  color: #fff;
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 950;
}

.rm-render-style-card em {
  color: var(--rm-muted);
  font-size: 11.5px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 800;
}

.rm-video-preview {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.rm-video-preview video {
  width: 360px;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 22px;
  background: #000;
}

@media (max-width: 860px) {
  .rm-crop-work {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rm-modal {
    align-items: center;
    padding: 8px;
  }

  .rm-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
  }

  .rm-modal-head {
    align-items: center;
  }

  .rm-modal-head .rm-muted {
    display: none;
  }

  .rm-drop-zone {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 8px 0;
    text-align: left;
  }

  .rm-drop-zone::before {
    margin: 0;
  }

  .rm-drop-zone span {
    margin-top: 2px;
    font-size: 11px;
  }

  .rm-cropper-box {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: 35dvh;
    margin: 0 auto;
  }

  .rm-crop-work > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    align-items: center;
  }

  .rm-crop-work > div:last-child .rm-media-line {
    grid-column: 1 / -1;
    min-height: 0;
    margin-top: 0;
    padding: 8px 10px;
  }

  .rm-crop-work > div:last-child .rm-muted {
    display: none;
  }

  .rm-crop-work > div:last-child label {
    grid-column: 1;
    margin: 0;
    font-size: 12px;
  }

  .rm-crop-work > div:last-child input {
    grid-column: 2;
    min-height: 38px;
    padding: 8px 10px;
  }

  .rm-crop-work [data-crop-reset] {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 8px 12px;
  }

  .rm-modal-card .rm-actions-split {
    gap: 8px;
    margin-top: 10px;
  }

  .rm-modal-card .rm-actions-split .rm-btn {
    min-height: 40px;
    padding: 9px 12px;
  }
}

/* === Generator: visual presets and media cards === */
.rm-visual-preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.rm-visual-preset-grid .rm-check-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 6px 10px;
  gap: 8px;
  line-height: 1;
}

.rm-visual-preset-grid .rm-check-card input[type="checkbox"] {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  align-self: center;
}

.rm-visual-preset-grid .rm-check-card span {
  display: block;
  align-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eef3ff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.rm-img-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border-radius: 14px;
}

.rm-scene-title {
  display: -webkit-box;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  margin: 8px 2px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.rm-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  background: #02040a;
}

.rm-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.rm-img-card img,
.rm-img-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: 100%;
  max-height: none;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.rm-img-card .rm-media-line {
  position: absolute;
  left: 8px;
  right: auto;
  bottom: 8px;
  max-width: calc(100% - 124px);
  min-height: 28px;
  margin-top: 0;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: rgba(3,5,10,.72);
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.rm-img-card .rm-actions.compact {
  margin-top: auto;
}

.rm-media-animate {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.rm-media-animate small {
  padding: 4px 7px;
  border: 1px solid rgba(24,195,125,.24);
  border-radius: 999px;
  background: rgba(24,195,125,.13);
  color: #aaf5cf;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  backdrop-filter: blur(6px);
}

.rm-animate-btn {
  width: 100%;
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.rm-media-frame .rm-scene-num {
  position: absolute;
  left: auto;
  right: 8px;
  top: 8px;
  z-index: 3;
  margin: 0;
  background: rgba(9,14,24,.72);
  backdrop-filter: blur(6px);
}

.rm-media-frame form {
  margin: 0;
}

.rm-media-icon {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(9,14,24,.78);
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.rm-media-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.30);
}

.rm-media-delete {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 10px;
}

.rm-empty-asset {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(124,92,255,.42);
  border-radius: 0;
  color: #eef3ff;
  background: rgba(124,92,255,.08);
}

.rm-empty-asset::before {
  content: "+";
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #d9d1ff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.rm-empty-asset strong,
.rm-empty-asset span {
  display: block;
}

.rm-empty-asset strong {
  font-size: 14px;
  font-weight: 950;
}

.rm-empty-asset span {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 800;
}

.rm-empty-asset:hover {
  border-color: rgba(124,92,255,.72);
  background: rgba(124,92,255,.14);
}

.rm-empty-asset form {
  width: min(180px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.rm-empty-asset-title {
  margin-bottom: 4px;
}

.rm-empty-asset-btn {
  width: min(180px, 100%);
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.rm-empty-asset-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
}

.rm-empty-asset-ai {
  border-color: rgba(24,195,125,.30);
  background: rgba(24,195,125,.14);
}

.rm-empty-asset-ai:hover:not(:disabled) {
  border-color: rgba(24,195,125,.48);
  background: rgba(24,195,125,.20);
}

.rm-empty-asset-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.rm-empty-asset small {
  color: var(--rm-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.rm-cropper-box {
  position: relative;
}

.rm-cropper-box img {
  user-select: none;
}

.rm-crop-frame {
  position: absolute;
  z-index: 3;
  border: 2px solid #18c37d;
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.45), 0 14px 40px rgba(0,0,0,.35);
  cursor: move;
  touch-action: none;
}

.rm-crop-frame::before,
.rm-crop-frame::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto;
  height: 1px;
  background: rgba(255,255,255,.45);
}

.rm-crop-frame::after {
  inset: 66.666% 0 auto;
}

.rm-crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #18c37d;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

.rm-crop-handle[data-handle="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.rm-crop-handle[data-handle="ne"] { right: -8px; top: -8px; cursor: nesw-resize; }
.rm-crop-handle[data-handle="sw"] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.rm-crop-handle[data-handle="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }

@media (max-width: 920px) {
  .rm-visual-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rm-visual-preset-grid {
    grid-template-columns: 1fr;
  }
}

/* === Generator: progress === */
.rm-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.rm-progress .rm-step {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  color: var(--rm-muted);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.rm-progress .rm-step b {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
}

.rm-progress .rm-step span {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.rm-progress .rm-step.done {
  color: #dfffee;
  border-color: rgba(24,195,125,.48);
  background: linear-gradient(180deg, rgba(24,195,125,.17), rgba(24,195,125,.06));
}

.rm-progress .rm-step.done b {
  background: rgba(24,195,125,.24);
}

.rm-progress .rm-step.active {
  color: #fff;
  border-color: rgba(124,92,255,.86);
  background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(60,167,255,.16));
  box-shadow: 0 18px 48px rgba(124,92,255,.22), inset 0 0 0 1px rgba(255,255,255,.08);
}

.rm-progress .rm-step.active b {
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-blue));
}

.rm-progress .rm-step.disabled {
  opacity: .48;
  cursor: default;
}

.rm-progress a.rm-step:hover {
  transform: translateY(-1px);
  border-color: var(--rm-line2);
}

@media (max-width: 900px) {
  .rm-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rm-progress {
    grid-template-columns: 1fr;
  }
}

.rm-direction-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rm-selected-direction {
  align-items: flex-start;
  margin-bottom: 16px;
  text-align: left;
}

/* === Generator: direction flow === */
.rm-label-muted {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 800;
}

.rm-directions-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0;
}

.rm-directions-block h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.rm-direction-list {
  display: grid;
  gap: 12px;
}

.rm-direction-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--rm-line);
  background: rgba(255,255,255,.055);
  color: var(--rm-text);
  text-align: left;
  cursor: pointer;
}

.rm-direction-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(24,195,125,.5);
  background: rgba(24,195,125,.09);
}

.rm-direction-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(24,195,125,.16);
  color: #baffd8;
  font-weight: 950;
}

.rm-direction-body {
  display: grid;
  gap: 6px;
}

.rm-direction-body strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.rm-direction-body em {
  color: var(--rm-soft);
  font-style: normal;
  line-height: 1.45;
}

.rm-direction-body small,
.rm-direction-meta {
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.4;
}

.rm-script-editor {
  display: grid;
  gap: 12px;
}

.rm-script-editor textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.64) rgba(8,12,19,.72);
}

.rm-script-editor textarea::-webkit-scrollbar {
  width: 7px;
}

.rm-script-editor textarea::-webkit-scrollbar-track {
  background: rgba(8,12,19,.72);
  border-radius: 999px;
}

.rm-script-editor textarea::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,.64);
  border-radius: 999px;
  border: 1px solid rgba(8,12,19,.72);
}

.rm-selected-direction {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 14px 15px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.rm-selected-direction span,
.rm-improve-box > span {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.rm-selected-direction strong {
  color: #fff;
  font-size: 17px;
}

.rm-selected-direction em {
  color: var(--rm-soft);
  font-style: normal;
}

.rm-improve-box {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--rm-line);
}

.rm-media-generate-row {
  margin-bottom: 18px;
}

.rm-idea-details {
  display: block;
}

.rm-idea-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  list-style: none;
}

.rm-idea-summary::-webkit-details-marker {
  display: none;
}

.rm-idea-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rm-idea-summary strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.rm-idea-summary em {
  overflow: hidden;
  color: var(--rm-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-idea-summary b {
  flex: 0 0 auto;
  color: #baffd8;
  font-size: 13px;
  font-weight: 900;
}

.rm-field-help,
.rm-muted.compact {
  margin: 6px 0 0;
  color: var(--rm-muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.rm-idea-extra {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.rm-idea-extra > summary {
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.rm-tight-head {
  margin-top: 18px;
  margin-bottom: 8px;
}

.rm-tight-head h3 {
  margin-bottom: 4px;
}

.rm-tight-head .rm-muted {
  margin: 0;
  line-height: 1.3;
}

.rm-ready-box {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 92, 255, .48);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .20), rgba(60, 167, 255, .10));
  box-shadow: 0 14px 34px rgba(124, 92, 255, .12);
}

.rm-ready-box strong {
  color: #f1edff;
  font-size: 15px;
  font-weight: 950;
}

.rm-ready-box span {
  color: var(--rm-soft);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.rm-setup-details {
  margin-bottom: 18px;
}

.rm-setup-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  list-style: none;
}

.rm-setup-summary::-webkit-details-marker {
  display: none;
}

.rm-setup-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rm-setup-summary strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.rm-setup-summary em {
  overflow: hidden;
  color: var(--rm-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-setup-summary b {
  flex: 0 0 auto;
  color: #baffd8;
  font-size: 13px;
  font-weight: 900;
}

.rm-flow-block {
  position: relative;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.12), transparent 34%),
    rgba(9,14,24,.52);
  box-shadow: 0 16px 44px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

.rm-flow-block-setup {
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.11), transparent 36%),
    rgba(255,255,255,.035);
}

.rm-flow-block-result {
  background:
    radial-gradient(circle at top left, rgba(24,195,125,.13), transparent 38%),
    rgba(8,17,19,.55);
  border-color: rgba(24,195,125,.22);
}


.rm-scenes-edit.rm-flow-block {
  margin-top: 20px;
}

.rm-flow-block > .rm-idea-summary,
.rm-flow-block > .rm-setup-summary {
  margin: -2px -2px 0;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.105);
}

.rm-flow-block[open] > .rm-idea-summary,
.rm-flow-block[open] > .rm-setup-summary {
  margin-bottom: 16px;
}

.rm-flow-block:not([open]) > .rm-idea-summary,
.rm-flow-block:not([open]) > .rm-setup-summary {
  margin-bottom: 0;
}

.rm-tight-head .rm-muted {
  max-width: 680px;
  color: #aeb9cc;
  font-size: 13px;
  font-weight: 750;
}

.rm-style-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
  align-items: stretch;
}

.rm-style-card {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 17px;
  background: rgba(9,14,24,.72);
  color: var(--rm-text);
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.rm-style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(124,92,255,.42);
  background: rgba(124,92,255,.105);
}

.rm-style-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rm-style-card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
}

.rm-style-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-style-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--rm-muted);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.22;
}

.rm-style-card:has(input:checked) {
  border-color: rgba(24,195,125,.68);
  background: linear-gradient(135deg, rgba(24,195,125,.19), rgba(124,92,255,.12));
  box-shadow: inset 0 0 0 1px rgba(24,195,125,.13), 0 12px 30px rgba(24,195,125,.10);
}

.rm-style-card:has(input:checked) small {
  color: #c9f8df;
}

@media (max-width: 1180px) {
  .rm-style-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rm-style-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .rm-flow-block {
    padding: 12px;
    border-radius: 20px;
  }

  .rm-style-preset-grid {
    grid-template-columns: 1fr;
  }
}

.rm-credit-pill {
  gap: 6px;
  background: rgba(24,195,125,.12);
  border-color: rgba(24,195,125,.30);
  color: #d8ffe9;
}

.rm-credit-pill b {
  color: #fff;
}

.rm-storage-note {
  display: inline-flex;
  width: fit-content;
  margin: 14px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,189,74,.32);
  background: rgba(255,189,74,.11);
  color: #ffd38a;
  font-size: 12px;
  font-weight: 850;
}

.rm-storage-note-top {
  margin: 0 0 14px;
}

.rm-project-item-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.rm-project-item-wrap .rm-project-item {
  min-width: 0;
}

.rm-trash-btn {
  width: 50px;
  min-height: 100%;
  position: relative;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,91,110,.22);
  border-radius: 18px;
  background: rgba(255,91,110,.08);
  color: #ffd1d8;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  appearance: none;
}

.rm-trash-btn img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}

.rm-trash-btn:hover {
  background: rgba(255,91,110,.16);
  border-color: rgba(255,91,110,.42);
}

.rm-trash-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,143,160,.24);
}

.rm-media-frame .rm-media-delete {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(18,22,32,.82);
  border-color: rgba(255,143,160,.42);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.rm-media-frame .rm-media-delete:hover {
  background: rgba(28,32,44,.90);
  border-color: rgba(255,143,160,.62);
}

.rm-readonly-banner,
.rm-billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,189,74,.30);
  background: linear-gradient(135deg, rgba(255,189,74,.10), rgba(124,92,255,.08));
  box-shadow: var(--rm-shadow);
}

.rm-readonly-banner strong,
.rm-readonly-banner span,
.rm-readonly-banner small {
  display: block;
}

.rm-readonly-banner strong {
  color: #fff;
  font-size: 22px;
}

.rm-readonly-banner span {
  margin-top: 4px;
  color: var(--rm-soft);
  font-weight: 750;
}

.rm-readonly-banner small {
  margin-top: 8px;
  color: #ffcf96;
  font-weight: 850;
}


.rm-billing-hero {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
}

.rm-billing-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 5vw, 64px);
}

.rm-balance-card,
.rm-package-card,
.rm-price-chip {
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(9,14,24,.72);
}

.rm-balance-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px;
}

.rm-balance-card span,
.rm-package-card span,
.rm-usage-row span {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 800;
}

.rm-balance-card strong {
  color: #fff;
  font-size: 26px;
}

.rm-price-grid,
.rm-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rm-price-chip {
  padding: 14px;
}

.rm-price-chip strong,
.rm-price-chip span,
.rm-package-card span,
.rm-package-card strong,
.rm-package-card em {
  display: block;
}

.rm-price-chip strong {
  color: #fff;
  margin-bottom: 5px;
}

.rm-price-chip span {
  color: #bfffdc;
  font-weight: 950;
}

.rm-price-options {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.rm-price-options span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.rm-price-options span:first-child {
  padding-top: 0;
  border-top: 0;
}

.rm-price-options b,
.rm-price-options em {
  display: block;
}

.rm-price-options b {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 850;
}

.rm-price-options em {
  color: #bfffdc;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.rm-package-card {
  padding: 18px;
}

.rm-package-card strong {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 24px;
}

.rm-package-card em {
  color: #bfffdc;
  font-style: normal;
  font-size: 22px;
  font-weight: 950;
}

.rm-package-card p {
  min-height: 44px;
  color: var(--rm-muted);
}

.rm-usage-list {
  display: grid;
  gap: 8px;
}

.rm-usage-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: rgba(9,14,24,.55);
}

.rm-usage-row strong,
.rm-usage-row span {
  display: block;
}

.rm-usage-row b.minus { color: #ffd1d8; }
.rm-usage-row b.plus { color: #bfffdc; }

.rm-table-wrap {
  overflow-x: auto;
}

.rm-usage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.rm-usage-table th,
.rm-usage-table td {
  padding: 12px;
  border-bottom: 1px solid var(--rm-line);
  text-align: left;
}

.rm-usage-table th {
  color: #fff;
  font-size: 13px;
}

.rm-usage-table td {
  color: var(--rm-soft);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 860px) {
  .rm-readonly-banner,
  .rm-billing-hero {
    grid-template-columns: 1fr;
  }
  .rm-price-grid,
  .rm-package-grid {
    grid-template-columns: 1fr;
  }
  .rm-project-item-wrap {
    grid-template-columns: 1fr;
  }
  .rm-trash-btn {
    min-height: 46px;
    width: 100%;
  }
}

/* === Shared UI: credits, notices, confirmation modal === */
.rm-main-actions {
  align-items: center;
}

.rm-main-create {
  min-height: 54px;
  padding: 15px 23px;
  font-size: 16px;
  box-shadow: 0 18px 44px rgba(24,195,125,.26);
}

.rm-start-box .rm-btn.secondary {
  align-self: flex-start;
  background: rgba(255,255,255,.06);
}

.rm-storage-note-inline {
  margin-top: 8px;
}

.rm-action-with-cost {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: fit-content;
}

.rm-action-with-cost > small,
.rm-credit-cost {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(24,195,125,.10);
  border: 1px solid rgba(24,195,125,.24);
  color: #bfffdc;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
}

.rm-action-with-cost .rm-btn {
  width: 100%;
}

.rm-actions.compact .rm-action-with-cost {
  align-items: stretch;
}

.rm-actions-split .rm-action-with-cost:last-child {
  align-items: flex-end;
}

.rm-usage-scroll {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.64) rgba(8,12,19,.72);
}

.rm-usage-scroll::-webkit-scrollbar {
  width: 7px;
}

.rm-usage-scroll::-webkit-scrollbar-track {
  background: rgba(8,12,19,.72);
  border-radius: 999px;
}

.rm-usage-scroll::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,.64);
  border-radius: 999px;
  border: 1px solid rgba(8,12,19,.72);
}

.rm-confirm-modal[hidden] {
  display: none;
}

.rm-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3,5,10,.78);
  backdrop-filter: blur(10px);
}

.rm-confirm-card {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,91,110,.28);
  background: linear-gradient(180deg, rgba(20,27,41,.98), rgba(12,17,28,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.52);
}

.rm-confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,91,110,.13);
  border: 1px solid rgba(255,91,110,.32);
  color: #ffd1d8;
  font-size: 24px;
  font-weight: 950;
}

.rm-confirm-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 22px;
}

.rm-confirm-card p {
  margin: 0;
  color: var(--rm-soft);
  line-height: 1.5;
  font-weight: 700;
}

.rm-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .rm-confirm-card {
    grid-template-columns: 1fr;
  }

  .rm-confirm-actions,
  .rm-action-with-cost,
  .rm-actions-split .rm-action-with-cost:last-child,
  .rm-start-box .rm-btn.secondary {
    align-items: stretch;
    width: 100%;
  }

  .rm-confirm-actions {
    flex-direction: column-reverse;
  }
}

.rm-result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}

.rm-result-layout .rm-video-preview {
  margin-top: 0;
}

.rm-result-side {
  min-width: 0;
}

.rm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.rm-publish-copy {
  margin-top: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
}

.rm-section-head.compact {
  margin-bottom: 12px;
}

.rm-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.rm-copy-row.vertical {
  grid-template-columns: 1fr;
}

.rm-copy-row input,
.rm-copy-row textarea {
  width: 100%;
}

.rm-copy-row textarea {
  resize: vertical;
}

@media (max-width: 640px) {
  .rm-result-layout {
    grid-template-columns: 1fr;
  }

  .rm-result-side {
    width: 100%;
  }

  .rm-copy-row {
    grid-template-columns: 1fr;
  }
}

/* === Landing, header, footer, dashboard === */
html {
  scroll-behavior: smooth;
}

.rm-logo {
  gap: 9px;
  font-size: 0;
  text-decoration: none;
}

.rm-logo::before {
  display: none;
}

.rm-logo-mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #4c65ed;
  color: #fff174;
  font-size: 15px;
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(76,101,237,.22);
}

.rm-logo-name {
  display: grid;
  gap: 1px;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  line-height: .88;
}

.rm-logo-name span {
  display: block;
}

.rm-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.rm-mobile-credit {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24,195,125,.28);
  background: rgba(24,195,125,.10);
  color: #d8ffe9;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rm-mobile-credit b {
  color: #fff;
}

.rm-mobile-menu {
  position: relative;
}

.rm-mobile-menu summary {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--rm-line2);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.rm-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.rm-mobile-menu[open] summary {
  background: rgba(255,255,255,.11);
}

.rm-mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: min(250px, calc(100vw - 22px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--rm-line2);
  border-radius: 18px;
  background: rgba(13, 19, 31, .98);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.rm-mobile-menu-panel a,
.rm-mobile-menu-panel .rm-nav-button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--rm-soft);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.rm-mobile-menu-panel .rm-logout-form {
  display: block;
  width: 100%;
}

.rm-mobile-menu-panel .rm-nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.rm-mobile-menu-panel a:hover,
.rm-mobile-menu-panel .rm-nav-button:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.rm-landing-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: 20px;
  align-items: center;
  min-height: 476px;
  padding: 26px 30px;
  border: 1px solid var(--rm-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(24,195,125,.12), transparent 30%),
    linear-gradient(180deg, rgba(20,27,41,.96), rgba(12,18,30,.96));
  box-shadow: var(--rm-shadow);
  overflow: hidden;
}

.rm-landing-left {
  min-width: 0;
  align-self: start;
  padding-top: 26px;
}

.rm-landing-left h1 {
  max-width: 720px;
  margin: 12px 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .92;
}

.rm-landing-lead {
  max-width: 610px;
  margin: 0;
  color: var(--rm-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.46;
  font-weight: 720;
}

.rm-landing-actions {
  margin-top: 21px;
}

.rm-landing-actions .rm-main-create {
  min-width: 270px;
  justify-content: center;
  padding-left: 34px;
  padding-right: 34px;
}

.rm-btn .rm-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  font-size: 19px;
  line-height: 1;
  transition: transform .16s ease;
}

.rm-btn:hover .rm-arrow {
  transform: translateX(3px);
}

.rm-landing-chips,
.rm-audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.rm-landing-chips span,
.rm-audience-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: var(--rm-soft);
  font-size: 13px;
  font-weight: 900;
}

.rm-landing-chips span:nth-child(1) { color: #dbeafe; background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.30); }
.rm-landing-chips span:nth-child(2) { color: #d1fae5; background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.30); }
.rm-landing-chips span:nth-child(3) { color: #ede9fe; background: rgba(139,92,246,.13); border-color: rgba(139,92,246,.28); }
.rm-landing-chips span:nth-child(4) { color: #ffedd5; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.26); }
.rm-landing-chips span:nth-child(5) { color: #ccfbf1; background: rgba(20,184,166,.13); border-color: rgba(20,184,166,.28); }

.rm-video-mock {
  width: min(100%, 270px);
  justify-self: center;
  display: flex;
  justify-content: center;
}

.rm-video-mock-screen {
  aspect-ratio: 9 / 16;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 9px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, #0b111d, #05070d);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}

.rm-hero-showcase,
.rm-hero-showcase-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.rm-hero-showcase-stage {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: #02040a;
}

.rm-hero-showcase-head {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.rm-hero-showcase-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .22);
  background: rgba(6, 20, 36, .56);
  color: #9dd8ff;
  font-size: 11px;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.rm-hero-showcase-head div {
  display: inline-flex;
  gap: 6px;
  pointer-events: auto;
}

.rm-hero-showcase-head button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 241, 116, .28);
  border-radius: 999px;
  background: rgba(4, 7, 14, .48);
  color: #fff174;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.rm-hero-showcase-head button:hover {
  color: #fff9b8;
  border-color: rgba(255, 241, 116, .45);
  background: rgba(4, 7, 14, .64);
}

.rm-hero-showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0;
  transform: translateX(110%);
  background: #02040a;
  will-change: transform, opacity;
}

.rm-hero-showcase-video.is-active {
  opacity: 1;
}

.rm-video-mock-flow {
  height: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
}

.rm-process-step {
  position: relative;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 42px 9px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.065);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rm-process-step.is-done {
  color: #dcfce7;
  border-color: rgba(34,197,94,.42);
  background: rgba(34,197,94,.16);
}

.rm-process-step.is-active {
  color: #e5e7eb;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
}

.rm-process-spinner {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
  border-radius: 999px;
  border: 2px solid rgba(148,163,184,.22);
  border-top-color: rgba(203,213,225,.70);
  animation: rm-spin .82s linear infinite;
}

.rm-video-mock-caption {
  margin-top: 9px;
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.rm-mini-value {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.rm-mini-value article,
.rm-landing-split,
.rm-topic-panel,
.rm-landing-cta {
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,27,41,.94), rgba(12,18,30,.94));
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}

.rm-mini-value article {
  min-height: 150px;
  padding: 18px;
}

.rm-mini-value b {
  display: inline-flex;
  margin-bottom: 12px;
  color: #baffd8;
  font-size: 13px;
  font-weight: 1000;
}

.rm-mini-value h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 20px;
}

.rm-mini-value p {
  margin: 0;
  color: var(--rm-muted);
  line-height: 1.45;
  font-weight: 720;
}

.rm-pipeline-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.rm-pipeline-line span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.rm-pipeline-line i {
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,.14);
}

.rm-pipeline-line span:nth-of-type(1) { color: #e0f2fe; background: rgba(14,165,233,.18); border-color: rgba(14,165,233,.34); }
.rm-pipeline-line span:nth-of-type(2) { color: #dbeafe; background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.34); }
.rm-pipeline-line span:nth-of-type(3) { color: #e0e7ff; background: rgba(99,102,241,.17); border-color: rgba(99,102,241,.34); }
.rm-pipeline-line span:nth-of-type(4) { color: #ede9fe; background: rgba(139,92,246,.17); border-color: rgba(139,92,246,.32); }
.rm-pipeline-line span:nth-of-type(5) { color: #d1fae5; background: rgba(16,185,129,.20); border-color: rgba(16,185,129,.38); }

.rm-landing-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
  gap: 20px;
  align-items: stretch;
  padding: 22px;
  margin: 18px 0;
}

.rm-landing-split h2,
.rm-landing-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
}

.rm-landing-split p,
.rm-landing-cta p {
  max-width: 680px;
  margin: 0;
  color: var(--rm-soft);
  line-height: 1.5;
  font-size: 17px;
  font-weight: 720;
}

.rm-topic-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(14,27,44,.94), rgba(9,16,28,.94));
  border-color: rgba(59,130,246,.22);
  box-shadow: none;
}

.rm-topic-panel strong {
  color: #fff;
  font-size: 18px;
}

.rm-topic-panel span {
  display: block;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,.20);
  background: rgba(59,130,246,.09);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.rm-landing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border-color: rgba(24,195,125,.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(24,195,125,.12), transparent 28%),
    linear-gradient(180deg, rgba(20,27,41,.94), rgba(12,18,30,.94));
}

.rm-landing-compact,
.rm-mini-value article,
.rm-pipeline-line,
.rm-landing-split,
.rm-landing-cta {
  animation: rm-rise-in .58s ease both;
}

.rm-mini-value article:nth-child(2) { animation-delay: .04s; }
.rm-mini-value article:nth-child(3) { animation-delay: .08s; }

.rm-mini-value article,
.rm-topic-panel span,
.rm-landing-chips span,
.rm-audience-tags span {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.rm-mini-value article:hover,
.rm-topic-panel span:hover,
.rm-landing-chips span:hover,
.rm-audience-tags span:hover {
  transform: translateY(-2px);
  border-color: rgba(24,195,125,.34);
}

@keyframes rm-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.rm-footer {
  flex-shrink: 0;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 26px;
  color: var(--rm-muted);
}

.rm-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(120px, .45fr));
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--rm-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20,27,41,.90), rgba(12,18,30,.90));
  box-shadow: 0 18px 54px rgba(0,0,0,.20);
}

.rm-footer-brand p {
  max-width: 420px;
  margin: 13px 0 0;
  color: var(--rm-muted);
  line-height: 1.45;
  font-size: 13px;
  font-weight: 750;
}

.rm-footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.rm-footer-col strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.rm-footer-col a {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rm-footer-col a:hover {
  color: #fff;
}

.rm-footer-lang {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--rm-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.rm-footer-lang:hover {
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.rm-footer-lang.is-active {
  border-color: rgba(79,140,255,.82);
  box-shadow: 0 0 0 1px rgba(79,140,255,.14) inset;
  color: #fff;
}

.rm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 0;
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 800;
}

.rm-footer-bottom a {
  color: var(--rm-muted);
  text-decoration: none;
}

.rm-dashboard-stats {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid var(--rm-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(60,167,255,.10), transparent 34%),
    linear-gradient(180deg, var(--rm-card), var(--rm-card2));
  box-shadow: var(--rm-shadow);
}

.rm-dashboard-stats span,
.rm-dashboard-stats small {
  display: block;
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 850;
}

.rm-dashboard-stats strong {
  display: block;
  margin: 6px 0 2px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.rm-dashboard-stats .rm-history-link {
  width: fit-content;
  gap: 8px;
  padding-right: 15px;
}

.rm-dashboard-stats .rm-history-link .rm-arrow {
  margin-left: 3px;
  font-size: 20px;
}

.rm-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rm-stat-grid span {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: var(--rm-muted);
  font-size: 12px;
  text-align: center;
  word-break: keep-all;
}

.rm-stat-grid b {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.rm-projects-card {
  min-height: 540px;
}

.rm-projects-head {
  align-items: flex-start;
}

.rm-projects-head > div {
  width: 100%;
  min-width: 0;
}

.rm-projects-head .rm-muted {
  max-width: 760px;
}

.rm-project-list-scroll {
  max-height: 860px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.64) rgba(8,12,19,.72);
}

.rm-project-list-scroll::-webkit-scrollbar {
  width: 7px;
}

.rm-project-list-scroll::-webkit-scrollbar-track {
  background: rgba(8,12,19,.72);
  border-radius: 999px;
}

.rm-project-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,.64);
  border-radius: 999px;
  border: 1px solid rgba(8,12,19,.72);
}

.rm-dashboard-empty {
  min-height: 280px;
  align-content: center;
  justify-items: center;
  text-align: center;
}


.rm-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--rm-line);
  border-radius: 20px;
  background: rgba(9, 14, 24, .72);
  overflow: hidden;
  transition: border-color .16s ease, background .16s ease;
}

.rm-project-card:hover {
  border-color: rgba(124,92,255,.42);
  background: rgba(124,92,255,.075);
}

.rm-project-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  color: var(--rm-text);
  text-decoration: none;
}

.rm-project-card-top,
.rm-project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.rm-project-card-top {
  justify-content: space-between;
}

.rm-project-card-top time {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 800;
}

.rm-project-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.rm-project-card.is-done .rm-project-badge {
  border: 1px solid rgba(24,195,125,.34);
  background: rgba(24,195,125,.13);
  color: #baffd8;
}

.rm-project-card.is-draft .rm-project-badge {
  border: 1px solid rgba(255,189,74,.34);
  background: rgba(255,189,74,.12);
  color: #ffd38a;
}

.rm-project-card-main strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.22;
}

.rm-project-topic {
  display: block;
  overflow: hidden;
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-project-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--rm-soft);
  font-size: 12px;
  font-weight: 850;
}

.rm-project-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 10px;
}

.rm-project-edit-btn,
.rm-project-delete .rm-trash-btn {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.rm-project-edit-btn {
  border: 1px solid rgba(60,167,255,.30);
  background: rgba(60,167,255,.12);
  color: #9dd8ff;
}

.rm-project-edit-btn img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.rm-project-edit-btn:hover {
  border-color: rgba(60,167,255,.48);
  background: rgba(60,167,255,.18);
  color: #d8f2ff;
}

.rm-project-delete {
  display: block;
  padding: 0;
}

.rm-project-delete .rm-trash-btn {
  border: 1px solid rgba(255,91,110,.30);
  background: rgba(255,91,110,.10);
  color: #ffd1d8;
}

.rm-project-delete .rm-trash-btn:hover {
  background: rgba(255,91,110,.17);
  border-color: rgba(255,91,110,.46);
}

.rm-confirm-card p {
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-landing-compact,
  .rm-mini-value article,
  .rm-pipeline-line,
  .rm-landing-split,
  .rm-landing-cta,
  .rm-process-spinner {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .rm-landing-compact,
  .rm-landing-split,
  .rm-landing-cta,
  .rm-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .rm-landing-left {
    padding-top: 0;
  }

  .rm-video-mock {
    justify-self: center;
    width: min(78vw, 275px);
    margin: 0 auto;
  }

  .rm-mini-value {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .rm-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .rm-top-inner {
    width: min(100% - 22px, 1120px);
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .rm-nav-desktop {
    display: none;
  }

  .rm-mobile-actions {
    display: flex;
  }

  .rm-logo-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .rm-logo-name {
    display: grid;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .rm-landing-compact,
  .rm-landing-split,
  .rm-landing-cta {
    border-radius: 22px;
    padding: 18px;
  }

  .rm-landing-left h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .rm-landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rm-landing-actions .rm-main-create {
    min-width: 100%;
  }

  .rm-video-mock {
    width: min(82vw, 270px);
    justify-self: center;
  }

  .rm-video-mock-screen {
    padding: 8px;
    border-radius: 26px;
  }

  .rm-hero-showcase-stage,
  .rm-hero-showcase-video {
    border-radius: 20px;
  }

  .rm-pipeline-line {
    justify-content: flex-start;
  }

  .rm-pipeline-line i {
    display: none;
  }

  .rm-landing-cta {
    text-align: left;
  }

  .rm-dashboard-stats,
  .rm-dashboard-hero > div:first-child {
    padding: 18px;
    border-radius: 22px;
  }

  .rm-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rm-stat-grid span:first-child {
    grid-column: 1 / -1;
  }

  .rm-dashboard-stats .rm-history-link {
    width: 100%;
    justify-content: center;
  }

  .rm-projects-card {
    min-height: 430px;
  }

  .rm-project-list-scroll {
    max-height: 720px;
    padding-top: 4px;
    padding-right: 0;
  }

  .rm-storage-note {
    display: flex;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 15px;
    line-height: 1.35;
  }

  .rm-project-card {
    grid-template-columns: 1fr;
  }

  .rm-project-card-main {
    padding: 13px;
  }

  .rm-project-card-top {
    align-items: flex-start;
  }

  .rm-project-topic {
    white-space: normal;
  }

  .rm-project-actions {
    grid-template-columns: 1fr 1fr;
    padding: 0 13px 13px;
  }

  .rm-project-edit-btn,
  .rm-project-delete .rm-trash-btn {
    width: 100%;
    height: 44px;
    min-height: 44px;
    border-radius: 15px;
  }

  .rm-project-delete {
    order: 1;
  }

  .rm-project-edit-btn {
    order: 2;
  }

  .rm-footer {
    width: min(100% - 22px, 1120px);
    margin-bottom: 18px;
  }

  .rm-footer-inner {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .rm-footer-bottom {
    flex-direction: column;
    padding-left: 2px;
  }
}

@media (max-width: 480px) {
  .rm-video-mock {
    width: min(86vw, 258px);
  }
}

@media (max-width: 430px) {
  .rm-top .rm-logo {
    gap: 7px;
  }

  .rm-top .rm-logo-name {
    display: grid;
    font-size: 11.5px;
    line-height: .9;
  }

  .rm-top .rm-logo-mark {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    font-size: 13px;
  }

  .rm-mobile-credit {
    max-width: 112px;
    padding-inline: 8px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .rm-mobile-credit {
    max-width: 88px;
  }

  .rm-top .rm-logo-name {
    font-size: 10.5px;
  }

  .rm-logo-mark {
    width: 29px;
    height: 29px;
    min-width: 29px;
    border-radius: 10px;
  }
}

/* === Generator: voice picker === */
.rm-section-head-small {
  margin-top: 14px;
}

.rm-section-head-small h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.rm-audio-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 7px 11px;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 850;
}

.rm-audio-language strong {
  color: #fff;
}

.rm-voice-list,
.rm-music-list {
  display: grid;
  gap: 3px;
  max-height: 368px;
  margin: 6px 0 0;
  padding: 0 6px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.64) rgba(8,12,19,.72);
}

.rm-voice-list::-webkit-scrollbar,
.rm-music-list::-webkit-scrollbar {
  width: 7px;
}

.rm-voice-list::-webkit-scrollbar-track,
.rm-music-list::-webkit-scrollbar-track {
  background: rgba(8,12,19,.72);
  border-radius: 999px;
}

.rm-voice-list::-webkit-scrollbar-thumb,
.rm-music-list::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,.64);
  border-radius: 999px;
  border: 1px solid rgba(8,12,19,.72);
}

.rm-music-list {
  max-height: 292px;
}

.rm-music-volume-row {
  margin-top: 12px;
}

.rm-panel label.rm-voice-row {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 12px;
  background: rgba(9,14,24,.66);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.rm-panel label.rm-voice-row:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}

.rm-panel label.rm-voice-row.is-selected,
.rm-panel label.rm-voice-row:has(input:checked) {
  border-color: rgba(25,195,125,.58);
  background: rgba(25,195,125,.07);
  box-shadow: inset 0 0 0 1px rgba(25,195,125,.08);
}

.rm-panel .rm-voice-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.rm-voice-check {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28);
}

.rm-voice-check::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 12px;
  height: 7px;
  border-left: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.rm-panel label.rm-voice-row.is-selected .rm-voice-check,
.rm-panel label.rm-voice-row:has(input:checked) .rm-voice-check {
  border-color: rgba(25,195,125,.80);
  background: #19c37d;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), inset 0 1px 4px rgba(255,255,255,.14);
}

.rm-panel label.rm-voice-row.is-selected .rm-voice-check::before,
.rm-panel label.rm-voice-row:has(input:checked) .rm-voice-check::before {
  border-color: #fff;
}

.rm-voice-main {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.rm-voice-name,
.rm-voice-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.rm-voice-name {
  color: #fff;
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 900;
}

.rm-voice-meta {
  color: var(--rm-muted);
  font-size: 11.5px;
  line-height: 1.18;
  font-weight: 800;
}

.rm-voice-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 32px;
  min-width: 38px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(124,92,255,.64);
  border-radius: 10px;
  background: #7c5cff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.10);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.rm-voice-play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}

.rm-voice-play:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #8b72ff;
  border-color: rgba(150,126,255,.78);
}

.rm-voice-play.is-playing {
  border-color: rgba(255,91,117,.72);
  background: #ff5b75;
}

.rm-voice-play.is-playing::before {
  width: 11px;
  height: 11px;
  margin-left: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
}

.rm-voice-play:disabled {
  opacity: .36;
  cursor: not-allowed;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

.rm-voice-play:disabled::before {
  opacity: .55;
}

@media (max-width: 640px) {
  .rm-render-style-list {
    grid-template-columns: 1fr;
  }

  .rm-panel label.rm-render-style-card {
    min-height: 58px;
  }

  .rm-voice-list,
  .rm-music-list {
    max-height: 350px;
    gap: 3px;
    padding-right: 5px;
  }

  .rm-panel label.rm-voice-row {
    grid-template-columns: 31px minmax(0, 1fr) 36px;
    gap: 9px;
    min-height: 46px;
    padding: 5px 6px;
  }

  .rm-voice-check {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .rm-voice-name {
    font-size: 13px;
  }

  .rm-voice-meta {
    font-size: 11px;
  }

  .rm-voice-play {
    width: 36px;
    height: 31px;
    min-width: 36px;
    min-height: 31px;
    border-radius: 9px;
  }
}
