.rt-title {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

@media (min-width: 1280px) {
  .rt-title { font-size: 1.7rem; }
}

@keyframes rtFilterIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rtCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rt-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  cursor: pointer;
  animation: rtCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.rt-card:hover .rt-card-frame {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(var(--black-color-rgb), 0.18);
  border-color: var(--color-gray-300);
}

.rt-card--selected .rt-card-frame {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.rt-card:hover .rt-card-overlay,
.rt-card--selected .rt-card-overlay {
  opacity: 1;
  background: rgba(var(--color-slate-900-rgb), 0.18);
  pointer-events: auto;
}

.rt-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.12s ease;
}

.rt-swatch:hover {
  transform: scale(1.18);
}

.rt-swatch--active {
  box-shadow: 0 0 0 2px var(--white-color), 0 0 0 3.5px currentColor;
  color: var(--text-color);
}

.rt-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.rt-preview {
  --rt-vspace: 12px;
  position: absolute;
  inset: 0;
  background: var(--white-color);
  display: flex;
  font-family: var(--rt-font-family, "Outfit", "DM Sans", sans-serif);
  color: var(--color-slate-800);
  overflow: hidden;
}

.rt-pv-page-inner .rt-preview,
.rs-page-inner .rt-preview {
  overflow: visible;
}

.rt-side--dark,
.rt-banner,
.rt-corner,
.rt-thin-bar,
.rt-accent-bar,
.rt-mono--lg,
.rt-photo {
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rt-section-h,
.rt-name--bold,
.rt-side--light .rt-side-h,
.rt-header--bold .rt-name,
.rt-header--inset .rt-name,
.rt-header--centered .rt-name,
.rt-header--corner .rt-name,
.rt-mono {
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rt-line,
.rt-bullet,
.rt-side-line,
.rt-job-date,
.rt-job-sub {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.18);
}

.rt-line--short {
  width: 55%;
}

.rt-bullet {
  position: relative;
  padding-left: 8px;
}

.rt-bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.4);
}

.rt-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--rt-vspace);
}

.rt-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: var(--rt-vspace);
}

.rt-section:first-child,
.rt-summary + .rt-section {
  margin-top: 0;
}

.rt-section-h {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-accent);
}

.rt-section-bar {
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
  margin-top: -2px;
  margin-bottom: 2px;
}

.rt-job {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 4px;
  padding-top: 2px;
}

.rt-job--noperiod {
  grid-template-columns: 1fr;
  gap: 0;
}

.rt-job-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.rt-rskills--body {
  margin-top: 3px;
}

.rt-job-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rt-job-title {
  font-size: 6.5px;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.rt-bullets {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 1px;
}

.rt-name-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rt-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-slate-900);
  line-height: 1.05;
}

.rt-name--serif {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 600;
}

.rt-name--bold {
  color: var(--rt-accent);
  font-size: 14px;
}

.rt-side {
  flex: 0 0 36%;
  padding: var(--rt-vspace) 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rt-side--dark {
  background: var(--rt-accent);
  color: var(--white-color);
}

.rt-side--dark .rt-side-name { color: var(--white-color); }
.rt-side--dark .rt-side-role { color: rgba(255, 255, 255, 0.85); }
.rt-side--dark .rt-side-h    { color: var(--white-color); }
.rt-side--dark .rt-side-line { background: rgba(255, 255, 255, 0.55); }
.rt-side--dark .rt-mono      { background: rgba(255, 255, 255, 0.18); color: var(--white-color); border: 1px solid rgba(255, 255, 255, 0.35); }
.rt-side--dark .rt-photo     { background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.3); }
.rt-side--dark .rt-photo::after { background: rgba(255, 255, 255, 0.4); }
.rt-banner--photo .rt-photo::after { background: rgba(255, 255, 255, 0.5); }

.rt-side--light {
  background: var(--background-color-alt);
}

.rt-side--light .rt-side-h { color: var(--rt-accent); }

.rt-side-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.rt-side-h {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
  margin-bottom: 2px;
}

.rt-side-line {
  width: 75%;
}

.rt-mono {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--rt-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.rt-mono--lg {
  width: 36px;
  height: 36px;
  font-size: 11px;
  background: var(--rt-accent);
  color: var(--white-color);
}

.rt-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rt-accent), rgba(15, 23, 42, 0.5));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

.rt-photo::after {
  content: "";
  position: absolute;
  inset: 6px 6px 0 6px;
  border-radius: 50% 50% 40% 40%;
  background: rgba(255, 255, 255, 0.55);
}

.rt-photo--filled {
  background-color: transparent;
}

.rt-photo--filled::after {
  display: none;
}

.rt-photo--lg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.rt-content {
  flex: 1;
  padding: var(--rt-vspace) 12px var(--rt-vspace) 11px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rt-pv-page-inner .rt-content,
.rs-page-inner .rt-content {
  overflow: visible;
}

.rt-content--full {
  padding: var(--rt-vspace) 14px;
}

.rt-content--inset {
  padding-left: 18px;
}

.rt-rtext {
  margin: 0;
  font-size: 5px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.7);
}

.rt-rperiod {
  font-size: 4.6px;
  line-height: 1.3;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.5);
}

.rt-rcompany {
  font-size: 5.2px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rt-accent);
}

.rt-rbullet {
  position: relative;
  padding-left: 6px;
  font-size: 4.8px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.72);
}

.rt-rbullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.6px;
  width: 2.2px;
  height: 2.2px;
  border-radius: 50%;
  background: var(--rt-accent);
}

.rt-rcontact {
  font-size: 4.8px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.7);
  word-break: break-word;
}

.rt-rskills {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5px;
  margin-top: 1px;
}

.rt-rskill {
  font-size: 4.4px;
  line-height: 1.2;
  padding: 1.6px 3px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.78);
}

.rt-side-name {
  word-break: break-word;
}

.rt-side--dark .rt-rcontact {
  color: rgba(255, 255, 255, 0.82);
}

.rt-side--dark .rt-rskill {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.rt-preview--accent-banner,
.rt-preview--photo-banner,
.rt-preview--gradient-header,
.rt-preview--centered-classic,
.rt-preview--bold-left,
.rt-preview--accent-bar-left,
.rt-preview--serif-elegant,
.rt-preview--header-bar-thin,
.rt-preview--corner-block {
  flex-direction: column;
}

.rt-banner {
  background: var(--rt-accent);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-color);
  position: relative;
}

.rt-banner .rt-name { color: var(--white-color); }
.rt-banner .rt-role { color: rgba(255, 255, 255, 0.88); }

.rt-banner--gradient {
  background: linear-gradient(135deg, var(--rt-accent) 0%, rgba(15, 23, 42, 0.85) 120%);
}

.rt-banner--photo .rt-photo--lg {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rt-banner--photo .rt-photo--lg::after {
  background: rgba(255, 255, 255, 0.35);
}

.rt-header {
  padding: 14px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rt-header--centered {
  align-items: center;
  text-align: center;
}

.rt-header--centered .rt-name {
  color: var(--rt-accent);
}

.rt-divider {
  width: 80%;
  height: 1px;
  background: rgba(15, 23, 42, 0.18);
  margin-top: 5px;
}

.rt-double-line {
  width: 60%;
  height: 5px;
  border-top: 1px solid rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(15, 23, 42, 0.4);
  margin: 4px 0;
}

.rt-header--serif .rt-role {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  color: rgba(15, 23, 42, 0.65);
}

.rt-header--bold {
  padding: 14px 14px 8px 14px;
  align-items: flex-start;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.rt-header--bold .rt-name {
  color: var(--rt-accent);
  font-size: 15px;
  margin-bottom: 1px;
}

.rt-preview--accent-bar-left {
  position: relative;
}

.rt-accent-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--rt-accent);
}

.rt-header--inset {
  padding: 14px 14px 8px 18px;
}

.rt-header--inset .rt-name { color: var(--rt-accent); }

.rt-thin-bar {
  height: 8px;
  background: var(--rt-accent);
}

.rt-header--corner {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  padding: 0;
  align-items: stretch;
}

.rt-corner {
  background: var(--rt-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
}

.rt-corner .rt-mono--lg {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.rt-header--corner .rt-name-stack {
  padding: 14px 14px 10px 0;
  justify-content: center;
}

.rt-header--corner .rt-name { color: var(--rt-accent); }

@media (max-width: 760px) {
  .rt-title { font-size: 1.4rem; }
}

.rt-rp-root {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#right-user-tools-content:has(.rt-rp-root) {
  overflow: hidden;
}

.rt-preview-col {
  flex: 0 0 clamp(360px, 42%, 620px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.4rem 1rem 1.4rem;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 760px) {
  .rt-builder-row {
    flex-direction: column;
  }
  .rt-preview-col {
    flex: 0 0 auto;
    padding: 0 1rem 1rem;
    align-self: center;
    max-height: 420px;
  }
}

.rt-pv-dock {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
}

.rt-pv-dock-shell {
  aspect-ratio: 210 / 297;
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  outline: none;
}

.rt-pv-dock-shell:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 234, 113, 0.55);
  border-radius: 0.6rem;
}

.rt-pv-dock-doc {
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: 0.6rem;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  scrollbar-width: thin;
}

main:not([data-view="user-tools"]) #right-user-tools-content * {
  pointer-events: none !important;
}

.rt-pv-dock-doc::-webkit-scrollbar {
  width: 6px;
}
.rt-pv-dock-doc::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 4px;
}

.rt-pv-pages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
}

.rt-pv-page {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  background: var(--white-color);
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 8px 28px -14px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--color-gray-200);
  flex: 0 0 auto;
}

.rt-pv-page-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rt-pv-page-inner .rt-preview {
  position: absolute;
  inset: auto;
  left: 0;
  right: 0;
  top: calc(var(--rt-page-offset, 0) * -100% + var(--rt-page-offset, 0) * 24px);
  bottom: auto;
  height: auto;
  min-height: calc(var(--rt-page-count, 1) * 100% - var(--rt-page-count, 1) * 24px + 24px);
  overflow: visible;
}

.rt-pv-page-mark {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.42);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}

.rt-pv-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4);
  border: none;
  cursor: zoom-in;
  pointer-events: auto;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  z-index: 5;
  padding: 0;
  opacity: 0.85;
}

.rt-pv-expand i,
.rt-pv-expand svg {
  width: 16px;
  height: 16px;
}

.rt-pv-dock-shell:hover .rt-pv-expand,
.rt-pv-expand:hover {
  background: #0f172a;
  transform: scale(1.08);
  opacity: 1;
}

.rt-pv-dock-shell:hover .rt-pv-page {
  box-shadow: 0 14px 36px -14px rgba(15, 23, 42, 0.4);
}

.rt-pv-dock-nav {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.45);
  padding: 0;
  z-index: 6;
  opacity: 0.85;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.18s ease;
  pointer-events: auto;
}

.rt-pv-dock-nav:hover {
  background: #0f172a;
  transform: scale(1.08);
  opacity: 1;
}

.rt-pv-dock-nav i,
.rt-pv-dock-nav svg {
  width: 14px;
  height: 14px;
}

.rt-pv-dock-nav--up {
  top: calc(50% - 32px);
}

.rt-pv-dock-nav--down {
  top: calc(50% + 4px);
}

.rt-pv-dock-nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.rt-pv-page-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 9px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rt-pv-page-badge:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.rt-pv-page-badge--single {
  cursor: default;
}

.rt-pv-page-badge--single .rt-pv-page-badge-chev {
  display: none;
}

.rt-pv-page-badge--single:hover {
  background: rgba(15, 23, 42, 0.82);
  transform: none;
}

.rt-pv-page-badge i,
.rt-pv-page-badge svg {
  width: 12px;
  height: 12px;
}

.rt-pv-page-badge .rt-pv-page-badge-chev {
  margin-left: 1px;
  opacity: 0.85;
}

.rt-pv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  animation: rtPvModalIn 0.18s ease-out;
}

@keyframes rtPvModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rt-pv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rt-pv-modal-card {
  position: relative;
  height: 100%;
  aspect-ratio: 210 / 297;
  max-height: 100%;
  max-width: 100%;
  display: flex;
  isolation: isolate;
}

.rt-pv-modal-doc {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: none;
  scrollbar-width: thin;
  isolation: isolate;
  z-index: 1;
}

.rt-pv-modal-doc::-webkit-scrollbar { width: 8px; }
.rt-pv-modal-doc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.rt-pv-modal-doc .rt-pv-pages {
  gap: 18px;
}

.rt-pv-modal-doc .rt-pv-page {
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55),
              0 12px 36px -12px rgba(0, 0, 0, 0.4);
}

.rt-pv-modal-doc .rt-preview {
  zoom: 1;
}

.rt-pv-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
  z-index: 20;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.rt-pv-modal-close:hover {
  background: #0f172a;
  color: #fff;
  transform: scale(1.08);
}

.rt-pv-modal-close i,
.rt-pv-modal-close svg {
  width: 20px;
  height: 20px;
}

.rt-pv-modal-nav {
  position: absolute;
  right: -22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  z-index: 15;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.18s ease;
  opacity: 0.92;
}

.rt-pv-modal-nav:hover {
  background: #0f172a;
  transform: scale(1.08);
  opacity: 1;
}

.rt-pv-modal-nav i,
.rt-pv-modal-nav svg {
  width: 20px;
  height: 20px;
}

.rt-pv-modal-nav--up {
  top: calc(50% - 48px);
}

.rt-pv-modal-nav--down {
  top: calc(50% + 8px);
}

.rt-pv-modal-nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.rt-pv-modal-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  z-index: 15;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rt-pv-modal-badge:hover {
  background: #0f172a;
  transform: translate(-50%, -2px);
}

.rt-pv-modal-badge i,
.rt-pv-modal-badge svg {
  width: 14px;
  height: 14px;
}

.rt-pv-modal-badge .rt-pv-page-badge-chev {
  opacity: 0.85;
}

.rt-pv-modal-badge.rt-pv-page-badge--single {
  cursor: default;
}

.rt-pv-modal-badge.rt-pv-page-badge--single:hover {
  background: rgba(15, 23, 42, 0.92);
  transform: translateX(-50%);
}

.rt-pv-modal-badge.rt-pv-page-badge--single .rt-pv-page-badge-chev {
  display: none;
}

body.rt-pv-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .rt-pv-modal {
    padding: 18px;
  }
  .rt-pv-modal-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
  }
  .rt-pv-modal-nav {
    right: -16px;
    width: 34px;
    height: 34px;
  }
  .rt-pv-modal-nav i,
  .rt-pv-modal-nav svg {
    width: 18px;
    height: 18px;
  }
  .rt-pv-modal-badge {
    bottom: -14px;
    padding: 5px 12px;
    font-size: 11px;
  }
}

.rt-builder-left {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rt-builder .rp-body {
  padding: 0;
  margin: 0 -1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

@media (max-width: 639px) {
  .rt-builder .rp-body {
    margin: 0 -1.25rem;
  }
}

.rt-builder-row {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  animation: rtBuilderIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rtBuilderIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rt-builder-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: rtBuilderIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.rt-builder-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.rt-building {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: 3rem 1rem;
  text-align: center;
  animation: rtBuilderIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
.rt-building-spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(var(--primary-color-rgb), 0.25);
  border-top-color: var(--primary-color-dark);
  animation: rtBuildSpin 0.7s linear infinite;
}
.rt-building-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
}
.rt-building-sub {
  font-size: 0.85rem;
  color: var(--text-color-muted);
}
@keyframes rtBuildSpin {
  to { transform: rotate(360deg); }
}

.rt-sections-body {
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.4rem 2.6rem 1.8rem;
}

.rt-sections-wrap {
  width: 100%;
}

.rt-sections-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.rt-section-step {
  animation: rtSectionIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rt-section-step:nth-child(2) { animation-delay: 0.04s; }
.rt-section-step:nth-child(3) { animation-delay: 0.08s; }
.rt-section-step:nth-child(4) { animation-delay: 0.12s; }
.rt-section-step:nth-child(5) { animation-delay: 0.16s; }
.rt-section-step:nth-child(6) { animation-delay: 0.2s; }

@keyframes rtSectionIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rt-section-body {
  gap: 0.5rem;
}

.rt-section-step .sj-app-step-head {
  padding: 0.8rem 1.05rem;
  cursor: pointer;
}

.rt-section-step .sj-app-step-head:hover {
  background: color-mix(in srgb, var(--text-color, #0f172a) 3%, transparent);
}

.rt-section-step.is-collapsed .sj-app-step-head:hover {
  background: transparent;
}

.rb-bi-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rb-bi-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.rt-foot-back,
.rt-foot-next {
  min-width: 110px;
}

.rt-foot-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.6rem 1.25rem;
}

.rt-foot-next[disabled],
.rt-foot-next[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.rt-cz-body {
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.4rem;
}

.rt-contact-grid {
  padding: 0.4rem 0 0.2rem;
}

.rt-cz-wrap {
  width: 100%;
}

.rt-cz-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}

.rt-cz-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--background-color-alt-2);
  border: 1px solid transparent;
  border-radius: 18px;
  animation: rtSectionIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.rt-cz-row:hover {
  background: var(--color-neutral-surface-cooler);
  border-color: color-mix(in srgb, var(--text-color, #0f172a) 10%, transparent);
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.rt-cz-row:nth-child(2) { animation-delay: 0.04s; }
.rt-cz-row:nth-child(3) { animation-delay: 0.08s; }
.rt-cz-row:nth-child(4) { animation-delay: 0.12s; }

.rt-cz-row[data-rbc-card="accent"] {
  grid-column: 1 / -1;
}

.rt-cz-row[data-rbc-card="font"] {
  grid-column: 1 / span 2;
}

.rt-cz-row[data-rbc-card="size"] {
  grid-column: 3 / span 1;
}

.rt-cz-row-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-color);
}

.rt-cz-row-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

@media (max-width: 720px) {
  .rt-cz-stage { grid-template-columns: 1fr; }
  .rt-cz-row[data-rbc-card="font"],
  .rt-cz-row[data-rbc-card="size"] {
    grid-column: 1 / -1;
  }
}

.rt-cz-swatches {
  gap: 0.5rem;
}

.rt-cz-swatch {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--white-color, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-color, #0f172a) 12%, transparent);
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rt-cz-swatch:hover {
  transform: translateY(-1px) scale(1.12);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-color, #0f172a) 28%, transparent),
              0 4px 10px -4px rgba(15, 23, 42, 0.25);
}

.rt-cz-swatch--active {
  box-shadow: 0 0 0 2px var(--white-color, #fff),
              0 0 0 4px var(--primary-color);
}

.rt-cz-swatch--rainbow {
  width: 32px;
  height: 32px;
  background: conic-gradient(from 0deg,
    #ef4444, #f59e0b, #fde047, #34d399,
    #38bdf8, #6366f1, #a855f7, #ec4899, #ef4444);
  margin-left: 0.35rem;
}

.rt-cz-swatch--rainbow::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white-color, #fff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

.rt-cz-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.rt-cz-segments--font {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .rt-cz-segments--font { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rt-cz-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.65rem;
  background: var(--white-color, #fff);
  border: 1px solid color-mix(in srgb, var(--text-color, #0f172a) 9%, transparent);
  border-radius: 11px;
  cursor: pointer;
  color: var(--text-color, #0f172a);
  font: inherit;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rt-cz-seg-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-cz-seg:hover {
  border-color: color-mix(in srgb, var(--text-color, #0f172a) 22%, transparent);
  transform: translateY(-1px);
}

.rt-cz-seg--active {
  border-color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.14);
  color: var(--primary-color-deep, var(--text-color, #0f172a));
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.rt-cz-seg-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
}

.rt-cz-seg-sample {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color, #0f172a);
  line-height: 1;
}

.rt-cz-seg--active .rt-cz-seg-sample {
  color: var(--primary-color-deep, inherit);
}

.rt-cz-seg-sample--outfit    { font-family: "Outfit", sans-serif; }
.rt-cz-seg-sample--inter     { font-family: "Inter", sans-serif; }
.rt-cz-seg-sample--poppins   { font-family: "Poppins", sans-serif; }
.rt-cz-seg-sample--dm-sans   { font-family: "DM Sans", sans-serif; }
.rt-cz-seg-sample--space     { font-family: "Space Grotesk", sans-serif; }
.rt-cz-seg-sample--jetbrains { font-family: "JetBrains Mono", monospace; font-size: 1.05rem; }

.rt-cz-seg-label--outfit    { font-family: "Outfit", sans-serif; }
.rt-cz-seg-label--inter     { font-family: "Inter", sans-serif; }
.rt-cz-seg-label--poppins   { font-family: "Poppins", sans-serif; }
.rt-cz-seg-label--dm-sans   { font-family: "DM Sans", sans-serif; }
.rt-cz-seg-label--space     { font-family: "Space Grotesk", sans-serif; }
.rt-cz-seg-label--jetbrains { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; }

.rt-cz-segments--size .rt-cz-seg:nth-child(1) .rt-cz-seg-label { font-size: 0.78rem; }
.rt-cz-segments--size .rt-cz-seg:nth-child(2) .rt-cz-seg-label { font-size: 0.95rem; }
.rt-cz-segments--size .rt-cz-seg:nth-child(3) .rt-cz-seg-label { font-size: 1.15rem; }

.rt-preview .rt-name,
.rt-preview .rt-side-name,
.rt-preview .rt-section-h,
.rt-preview .rt-job-title,
.rt-preview .rt-role,
.rt-preview .rt-side-role,
.rt-preview .rt-side-h,
.rt-preview .rt-mono {
  font-family: inherit;
}

.rt-preview.rt-font-jetbrains .rt-name { letter-spacing: -0.03em; }

.rt-preview.rt-size-sm .rt-name        { font-size: 10px; }
.rt-preview.rt-size-sm .rt-name--bold  { font-size: 12px; }
.rt-preview.rt-size-sm .rt-side-name   { font-size: 9px; }
.rt-preview.rt-size-sm .rt-section-h   { font-size: 6px; }
.rt-preview.rt-size-sm .rt-job-title   { font-size: 5.8px; }
.rt-preview.rt-size-sm .rt-role        { font-size: 5.8px; }
.rt-preview.rt-size-sm .rt-side-role   { font-size: 5.8px; }
.rt-preview.rt-size-sm .rt-side-h      { font-size: 6px; }
.rt-preview.rt-size-sm .rt-rtext         { font-size: 4px; }
.rt-preview.rt-size-sm .rt-rcompany      { font-size: 4.2px; }
.rt-preview.rt-size-sm .rt-rbullet       { font-size: 3.8px; }
.rt-preview.rt-size-sm .rt-rcontact      { font-size: 3.8px; }
.rt-preview.rt-size-sm .rt-rperiod       { font-size: 3.6px; }
.rt-preview.rt-size-sm .rt-rskill        { font-size: 3.4px; }

.rt-preview.rt-size-lg .rt-name        { font-size: 14px; }
.rt-preview.rt-size-lg .rt-name--bold  { font-size: 16px; }
.rt-preview.rt-size-lg .rt-side-name   { font-size: 13px; }
.rt-preview.rt-size-lg .rt-section-h   { font-size: 8px; }
.rt-preview.rt-size-lg .rt-job-title   { font-size: 7.5px; }
.rt-preview.rt-size-lg .rt-role        { font-size: 7.5px; }
.rt-preview.rt-size-lg .rt-side-role   { font-size: 7.5px; }
.rt-preview.rt-size-lg .rt-side-h      { font-size: 8px; }
.rt-preview.rt-size-lg .rt-rtext         { font-size: 6.5px; }
.rt-preview.rt-size-lg .rt-rcompany      { font-size: 6.8px; }
.rt-preview.rt-size-lg .rt-rbullet       { font-size: 6.2px; }
.rt-preview.rt-size-lg .rt-rcontact      { font-size: 6.2px; }
.rt-preview.rt-size-lg .rt-rperiod       { font-size: 6px; }
.rt-preview.rt-size-lg .rt-rskill        { font-size: 5.6px; }

.rt-preview .rt-name,
.rt-preview .rt-side-name,
.rt-preview .rt-section-h,
.rt-preview .rt-job-title,
.rt-preview .rt-role,
.rt-preview .rt-side-role,
.rt-preview .rt-side-h,
.rt-preview .rt-summary,
.rt-preview .rt-section,
.rt-preview .rt-job,
.rt-preview .rt-bullets,
.rt-preview .rt-side,
.rt-preview .rt-content,
.rt-preview .rt-section-bar {
  transition: font-size 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              font-family 0.25s ease,
              padding 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              gap 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rt-builder-row[data-builder-step="2"] {
  width: auto;
  margin: 1.25rem 1.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  align-items: stretch;
  overflow: hidden;
  animation: rtBuilderIn 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.rt-builder-row[data-builder-step="2"] .rt-preview-col {
  display: none;
}

.rt-builder-row[data-builder-step="2"] .rt-builder-left {
  flex: 1 1 auto;
  max-width: none;
}

.rt-builder-row[data-builder-step="2"] .rt-builder-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  display: flex;
}

.rbe-hero {
  --rbe-green: #63ea71;
  --rbe-green-dark: #27b079;
  --rbe-green-deep: #08493c;
  --rbe-green-soft: rgba(99, 234, 113, 0.14);
  --rbe-green-softer: rgba(99, 234, 113, 0.08);
  --rbe-ink: #1a1a2e;
  --rbe-ink-soft: #475569;
  --rbe-muted: #6b7280;
  --rbe-faint: #9ca3af;
  --rbe-border: #e5e7eb;
  --rbe-border-soft: #f1f5f9;
  --rbe-surface: #f8fafc;

  flex: 1 1 auto;
  display: flex;
  background: #ffffff;
  border: 1px solid var(--rbe-border-soft);
  border-radius: 20px;
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  font-family: "Outfit", sans-serif;
  color: var(--rbe-ink);
  min-height: 0;
}

.rbe-hero-left {
  flex: 1 1 auto;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rbe-hero-title {
  margin: 20px 0 8px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 440px;
  color: var(--rbe-ink);
}

.rbe-hero-ctas {
  margin-top: 28px;
  margin-bottom: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.rbe-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 11px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: transform 0.1s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbe-hero-btn i {
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}

.rbe-hero-btn--primary {
  background: var(--rbe-green);
  color: var(--rbe-green-deep);
  box-shadow:
    inset 0 -1px 0 rgba(8, 73, 60, 0.16),
    0 1px 2px rgba(15, 23, 42, 0.05);
}

.rbe-hero-btn--primary:hover {
  background: #4fd85f;
}

.rbe-hero-btn:active {
  transform: translateY(1px);
}

.rbe-hero-right {
  flex: 0 0 460px;
  position: relative;
  background: linear-gradient(160deg, var(--rbe-green-softer), var(--rbe-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--rbe-border-soft);
  padding: 32px;
}

.rbe-hero-preview-frame {
  position: relative;
  width: 360px;
  height: 486px;
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
  outline: none;
}

.rbe-hero-preview-frame:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 234, 113, 0.55);
  border-radius: 10px;
}

.rbe-hero-preview-slot {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
}

.rbe-hero-preview-slot::-webkit-scrollbar { width: 6px; }
.rbe-hero-preview-slot::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 4px;
}

.rbe-hero-preview-slot .rt-pv-pages {
  gap: 12px;
}

.rbe-hero-preview-slot .rt-pv-page {
  box-shadow:
    0 28px 60px -28px rgba(15, 23, 42, 0.32),
    0 4px 12px -4px rgba(15, 23, 42, 0.08);
}

.rbe-hero-expand {
  top: 14px;
  right: 14px;
  z-index: 6;
}

.rbe-hero-page-badge {
  bottom: 14px;
  left: 14px;
  z-index: 5;
}

@media (max-width: 960px) {
  .rbe-hero-left {
    padding: 32px 32px;
  }
  .rbe-hero-title {
    font-size: 34px;
  }
  .rbe-hero-right {
    flex: 0 0 360px;
    padding: 28px;
  }
  .rbe-hero-preview-frame {
    width: 300px;
    height: 405px;
  }
}

@media (max-width: 760px) {
  .rt-builder-row[data-builder-step="2"] {
    margin: 0.75rem 1rem 1rem;
  }
  .rbe-hero {
    flex-direction: column;
  }
  .rbe-hero-left {
    padding: 28px 24px;
  }
  .rbe-hero-title {
    font-size: 30px;
  }
  .rbe-hero-title br {
    display: none;
  }
  .rbe-hero-right {
    flex: 0 0 auto;
    border-left: 0;
    border-top: 1px solid var(--rbe-border-soft);
    padding: 28px 24px;
  }
  .rbe-hero-preview-frame {
    width: 280px;
    height: 378px;
  }
}

.rt-template-strip-wrap {
  flex: 0 0 auto;
  position: relative;
  padding: 1rem 2.6rem 0.95rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.rt-template-strip {
  display: flex;
  flex-direction: row;
  gap: 0.85rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 6px 4px;
  scroll-padding: 0 2.25rem;
}

.rt-template-strip::-webkit-scrollbar {
  display: none;
}

.rt-strip-card {
  flex: 0 0 auto;
  width: 150px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  font: inherit;
  color: inherit;
}

.rt-strip-name {
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  color: var(--text-color, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
  opacity: 0.78;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.rt-strip-card:hover .rt-strip-name {
  opacity: 1;
}

.rt-strip-card--selected .rt-strip-name {
  opacity: 1;
  font-weight: 600;
  color: var(--primary-color, #10b981);
}

.rt-strip-thumb {
  width: 100%;
  aspect-ratio: 0.74 / 1;
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--white-color, #fff);
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 3px 12px -10px rgba(15, 23, 42, 0.22);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
}

.rt-strip-card:hover .rt-strip-thumb {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.28);
}

.rt-strip-card--selected .rt-strip-thumb {
  border-color: var(--primary-color, #10b981);
  box-shadow: 0 0 0 2px var(--primary-color, #10b981),
              0 8px 20px -10px rgba(15, 23, 42, 0.28);
}

.rt-strip-thumb .rt-preview {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 240px;
  height: 324px;
  transform-origin: top left;
  transform: scale(var(--rt-strip-scale, 0.71));
  pointer-events: none;
}

.rt-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: var(--white-color, #fff);
  color: var(--color-gray-700, #334155);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.25);
  transition: background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
}

.rt-strip-nav:hover {
  background: var(--color-gray-900, #0f172a);
  color: #fff;
  border-color: var(--color-gray-900, #0f172a);
  transform: translateY(-50%) scale(1.05);
}

.rt-strip-nav i,
.rt-strip-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rt-strip-nav--left {
  left: 1.6rem;
}

.rt-strip-nav--right {
  right: 1.6rem;
}

.rt-strip-nav--hidden {
  display: none !important;
}

.rt-pv-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.rt-pv-controls--side {
  flex: 0 0 auto;
  align-self: center;
  padding: 0;
  margin: 0;
}

.rt-pv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  background: var(--white-color, #fff);
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.15);
}

.rt-pv-pill--vertical {
  flex-direction: column;
  padding: 0.45rem 0.35rem;
  gap: 0.35rem;
}

.rt-pv-pill--vertical .rt-pv-color {
  margin: 0;
}

@media (max-width: 640px) {
  .rt-pv-controls--side {
    align-self: stretch;
  }
  .rt-pv-pill--vertical {
    flex-direction: row;
    padding: 0.3rem 0.55rem;
    gap: 0.35rem;
  }
}

.rt-pv-font,
.rt-pv-size {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-gray-700, #334155);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.rt-pv-font {
  font-size: 0.85rem;
}

.rt-pv-font:hover,
.rt-pv-size:hover {
  background: var(--color-gray-100, #f1f5f9);
}

.rt-pv-font--active,
.rt-pv-size--active {
  background: var(--color-gray-900, #0f172a);
  color: #fff;
}

.rt-pv-font--active:hover,
.rt-pv-size--active:hover {
  background: var(--color-gray-900, #0f172a);
  color: #fff;
}

.rt-pv-pill--colors {
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
}

.rt-pv-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.rt-pv-color:hover {
  transform: scale(1.12);
}

.rt-pv-color--active {
  border-color: var(--color-gray-900, #0f172a);
  transform: scale(1.08);
}

.rt-pv-color--rainbow {
  background: conic-gradient(
    from 0deg,
    #ef4444, #f59e0b, #fde047, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444
  );
}

@media (max-width: 760px) {
  .rt-template-strip-wrap {
    padding: 0.75rem 1rem 0.65rem;
  }
  .rt-strip-card {
    width: 122px;
  }
  .rt-strip-name {
    font-size: 0.72rem;
  }
  .rt-strip-nav {
    display: none;
  }
}

.rt-preview,
.rt-preview .rt-name,
.rt-preview .rt-line,
.rt-preview .rt-bullet,
.rt-preview .rt-content,
.rt-preview .rt-side,
.rt-preview .rt-banner {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rt-strip-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rb-photo-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rb-photo-hint {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-color-muted, #6b7280);
  margin-left: 0.35rem;
}

.rb-photo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rb-photo-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--background-color-alt, #f1f5f9);
  border: 1px dashed color-mix(in srgb, var(--text-color, #0f172a) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 64px;
  color: var(--text-color-muted, #9ca3af);
}

.rb-photo-thumb--has {
  border-style: solid;
  border-color: color-mix(in srgb, var(--text-color, #0f172a) 12%, transparent);
}

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

.rb-photo-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-photo-thumb-placeholder i,
.rb-photo-thumb-placeholder svg {
  width: 26px;
  height: 26px;
}

.rb-photo-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rb-photo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid var(--color-gray-200, #e5e7eb);
  background: var(--white-color, #fff);
  color: var(--text-color, #0f172a);
}

.rb-photo-action:hover {
  background: var(--background-color-soft, #f8fafc);
  border-color: var(--color-gray-300, #cbd5e1);
}

.rb-photo-action i,
.rb-photo-action svg {
  width: 15px;
  height: 15px;
}

.rb-photo-action--primary {
  background: var(--primary-color, #10b981);
  color: var(--primary-color-text, #08493c);
  border-color: var(--primary-color, #10b981);
}

.rb-photo-action--primary:hover {
  background: var(--primary-color-hover, #0fa372);
  border-color: var(--primary-color-hover, #0fa372);
}

.rb-photo-action--danger {
  color: #b91c1c;
}

.rb-photo-action--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.rs-pages {
  display: flex;
  flex-direction: column;
  gap: 8mm;
  width: 100%;
}

.rs-page-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #fff;
  overflow: hidden;
  break-after: page;
  page-break-after: always;
}

.rs-page-wrap:last-child {
  break-after: auto;
  page-break-after: auto;
}

.rs-page-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rs-page-inner .rt-preview {
  position: absolute;
  inset: auto;
  left: 0;
  right: 0;
  bottom: auto;
  top: calc(var(--rt-page-offset, 0) * -100% + var(--rt-page-offset, 0) * 24px);
  height: auto;
  min-height: calc(var(--rt-page-count, 1) * 100% - var(--rt-page-count, 1) * 24px + 24px);
}

.rt-pv-page:not([data-page-n="1"]) .rt-pv-page-inner::before,
.rs-page-wrap:not([data-page-n="1"]) .rs-page-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

.rt-pv-pages[data-pages] .rt-pv-page:not(:last-child) .rt-pv-page-inner::after,
.rs-wrap .rs-page-wrap:not(:last-child) .rs-page-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

.rt-pv-page:not([data-page-n="1"]) .rt-pv-page-inner:has(.rt-preview--dark-sidebar)::before,
.rt-pv-page:not([data-page-n="1"]) .rt-pv-page-inner:has(.rt-preview--photo-sidebar)::before,
.rt-pv-page:not([data-page-n="1"]) .rt-pv-page-inner:has(.rt-preview--photo-corner)::before,
.rs-page-wrap:not([data-page-n="1"]) .rs-page-inner:has(.rt-preview--dark-sidebar)::before,
.rs-page-wrap:not([data-page-n="1"]) .rs-page-inner:has(.rt-preview--photo-sidebar)::before,
.rs-page-wrap:not([data-page-n="1"]) .rs-page-inner:has(.rt-preview--photo-corner)::before {
  left: 36%;
}

.rt-pv-pages[data-pages] .rt-pv-page:not(:last-child) .rt-pv-page-inner:has(.rt-preview--dark-sidebar)::after,
.rt-pv-pages[data-pages] .rt-pv-page:not(:last-child) .rt-pv-page-inner:has(.rt-preview--photo-sidebar)::after,
.rt-pv-pages[data-pages] .rt-pv-page:not(:last-child) .rt-pv-page-inner:has(.rt-preview--photo-corner)::after,
.rs-wrap .rs-page-wrap:not(:last-child) .rs-page-inner:has(.rt-preview--dark-sidebar)::after,
.rs-wrap .rs-page-wrap:not(:last-child) .rs-page-inner:has(.rt-preview--photo-sidebar)::after,
.rs-wrap .rs-page-wrap:not(:last-child) .rs-page-inner:has(.rt-preview--photo-corner)::after {
  left: 36%;
}
