@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.posuv-editor {
  --posuv-ink: #111013;
  --posuv-ink-2: #4f4b52;
  --posuv-ink-3: #807b84;
  --posuv-paper: #f8f2f3;
  --posuv-panel: #fffafc;
  --posuv-panel-2: #f3edef;
  --posuv-white: #fff;
  --posuv-accent: #b668f2;
  --posuv-accent-2: #7646dd;
  --posuv-line: rgba(17, 16, 19, .12);
  --posuv-line-strong: rgba(17, 16, 19, .22);
  --posuv-shadow: 0 24px 70px rgba(17, 16, 19, .14);
}

/* Dynamic controls supplied by the active Posuv template. */
.has-posuv-engine .posuv-template-controls [data-param-row],
.has-posuv-engine .posuv-template-controls [data-easing-row],
.has-posuv-engine .posuv-template-controls .posuv-card-ratio-control,
.has-posuv-engine .posuv-template-controls [data-sphere-motion-control],
.has-posuv-engine .posuv-template-controls [data-sphere-direction-control],
.has-posuv-engine .posuv-template-controls .posuv-shadow-row,
.has-posuv-engine .posuv-template-controls .posuv-background-position {
  display: none !important;
}

.posuv-motion-controls {
  display: none;
}

.has-posuv-engine .posuv-motion-controls {
  display: grid;
  gap: 18px;
}

.posuv-motion-group {
  margin: 6px 0 -4px;
  padding-top: 16px;
  border-top: 1px solid var(--posuv-line);
  color: var(--posuv-ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.posuv-template-choice {
  display: grid;
  gap: 10px;
}

.posuv-template-choice > span,
.posuv-inline-template > span {
  color: var(--posuv-ink-3);
  font-size: 13px;
}

.posuv-inline-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.posuv-inline-template input[type="color"] {
  width: 52px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--posuv-line-strong);
  border-radius: 10px;
  background: var(--posuv-panel-2);
}

.posuv-template-select select,
.posuv-template-text input {
  min-width: 0;
  width: 62%;
}

.posuv-editor,
.posuv-editor * {
  box-sizing: border-box;
}

html.posuv-editor-page,
body.posuv-editor-page {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.posuv-editor-page #aihuba-root,
body.posuv-editor-page .elements-bar,
body.posuv-editor-page .search-global.fixed {
  display: none !important;
}

.posuv-editor {
  --posuv-aspect: 1 / 1;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  max-height: 100dvh;
  z-index: 999999;
  margin: 0 !important;
  overflow: hidden;
  color: var(--posuv-ink);
  background: var(--posuv-paper);
  font: 400 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.posuv-editor button,
.posuv-editor input,
.posuv-editor textarea,
.posuv-editor select {
  font: inherit;
}

.posuv-editor button {
  color: inherit;
}

.posuv-editor button:focus-visible,
.posuv-editor input:focus-visible,
.posuv-editor textarea:focus-visible,
.posuv-editor select:focus-visible {
  outline: 3px solid rgba(182, 104, 242, .3);
  outline-offset: 2px;
}

.posuv-editor svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.posuv-editor svg .fill {
  fill: currentColor;
  stroke: none;
}

.posuv-shell {
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overflow: clip;
  background: var(--posuv-paper);
}

.posuv-topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 350px minmax(180px, 1fr) 350px;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--posuv-line);
  background: rgba(255, 250, 252, .94);
  backdrop-filter: blur(18px);
}

.posuv-brand-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.posuv-projects-btn,
.posuv-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--posuv-line);
  border-radius: 999px;
  color: var(--posuv-ink);
  background: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.posuv-projects-btn:hover,
.posuv-account-btn:hover {
  color: var(--posuv-accent-2);
  border-color: rgba(118, 70, 221, .35);
  background: #fff;
}

.posuv-projects-btn svg,
.posuv-account-btn svg {
  width: 15px;
  height: 15px;
}

.posuv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.posuv-brand-logo {
  display: block;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.posuv-brand-logo-dark {
  display: none;
}

.is-light-preview .posuv-brand-logo-white {
  display: none;
}

.is-light-preview .posuv-brand-logo-dark {
  display: block;
}

.posuv-brand > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.posuv-brand strong {
  overflow: hidden;
  font: 700 16px/1.2 "DM Sans", Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-brand small {
  margin-top: 3px;
  color: var(--posuv-ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.posuv-project-title {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.posuv-project-title input {
  width: min(330px, 100%);
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--posuv-ink);
  background: transparent;
  font-weight: 650;
  text-align: center;
  transition: .2s ease;
}

.posuv-project-title input:hover,
.posuv-project-title input:focus {
  border-color: var(--posuv-line);
  background: var(--posuv-white);
}

.posuv-top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.posuv-icon-btn,
.posuv-save-btn,
.posuv-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid var(--posuv-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.posuv-icon-btn {
  width: 38px;
  padding: 0;
}

.posuv-icon-btn:hover,
.posuv-save-btn:hover {
  border-color: var(--posuv-line-strong);
  background: var(--posuv-white);
  transform: translateY(-1px);
}

.posuv-icon-btn:disabled {
  opacity: .34;
  cursor: not-allowed;
  transform: none;
}

.posuv-save-btn,
.posuv-export-btn {
  gap: 7px;
  padding: 0 15px;
  font-weight: 700;
}

.posuv-export-btn {
  border-color: var(--posuv-ink);
  color: #fff !important;
  background: var(--posuv-ink);
  box-shadow: 0 8px 20px rgba(17, 16, 19, .16);
}

.posuv-export-btn:hover {
  color: #fff;
  background: var(--posuv-accent-2);
  border-color: var(--posuv-accent-2);
  transform: translateY(-1px);
}

.posuv-workspace {
  display: grid;
  grid-template-columns: 242px minmax(360px, 1fr) 316px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overflow: clip;
  contain: layout paint;
}

.posuv-sidebar {
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  contain: layout paint;
  background: var(--posuv-panel);
}

.posuv-sidebar-left {
  border-right: 1px solid var(--posuv-line);
}

.posuv-sidebar-right {
  border-left: 1px solid var(--posuv-line);
}

.posuv-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 16px 12px;
}

.posuv-sidebar-head h2 {
  margin: 2px 0 0;
  color: var(--posuv-ink);
  font: 700 18px/1.2 "DM Sans", Inter, sans-serif;
  letter-spacing: -.02em;
}

.posuv-eyebrow {
  display: block;
  color: var(--posuv-accent-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.posuv-panel-close {
  display: none;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid var(--posuv-line);
  border-radius: 50%;
  background: #fff;
}

.posuv-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0 14px 12px;
  padding: 0 12px;
  border: 1px solid var(--posuv-line);
  border-radius: 12px;
  color: var(--posuv-ink-3);
  background: var(--posuv-white);
}

.posuv-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  color: var(--posuv-ink);
  background: transparent !important;
  box-shadow: none !important;
}

.posuv-template-list,
.posuv-inspector-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 16, 19, .18) transparent;
}

.posuv-template-list {
  padding: 0 12px 24px;
}

.posuv-template-group + .posuv-template-group {
  margin-top: 18px;
}

.posuv-template-group h3 {
  margin: 0 2px 8px;
  color: var(--posuv-ink-3);
  font: 800 9px/1.2 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.posuv-template-card {
  min-width: 0;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--posuv-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.posuv-template-card:hover {
  border-color: var(--posuv-line);
  background: var(--posuv-white);
  transform: translateY(-1px);
}

.posuv-template-card.is-active {
  border-color: var(--posuv-ink);
  background: var(--posuv-white);
  box-shadow: 0 7px 20px rgba(17, 16, 19, .08);
}

.posuv-template-card > strong,
.posuv-template-card > small {
  display: block;
  overflow: hidden;
  margin: 0 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-template-card > strong {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 750;
}

.posuv-template-card > small {
  margin-top: 1px;
  color: var(--posuv-ink-3);
  font-size: 9px;
}

.posuv-template-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / .82;
  border-radius: 9px;
  background: #17151a;
}

.posuv-template-thumb::before,
.posuv-template-thumb::after,
.posuv-template-thumb i,
.posuv-template-thumb b,
.posuv-template-thumb em {
  content: "";
  position: absolute;
  display: block;
  border-radius: 3px;
  background: linear-gradient(135deg, #fceef0, #b668f2);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .3);
}

.posuv-template-thumb::before { width: 28%; height: 38%; left: 13%; top: 32%; transform: rotate(-18deg); }
.posuv-template-thumb::after { width: 28%; height: 38%; right: 13%; top: 32%; transform: rotate(18deg); background: linear-gradient(135deg, #d8f7ff, #248cff); }
.posuv-template-thumb i { width: 25%; height: 34%; left: 38%; top: 12%; background: linear-gradient(135deg, #fde36d, #ff8f70); }
.posuv-template-thumb b { width: 24%; height: 33%; left: 38%; bottom: 9%; background: linear-gradient(135deg, #a6f3d0, #17634b); }
.posuv-template-thumb em { width: 11%; height: 11%; left: 45%; top: 45%; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #b668f2; }

.posuv-template-thumb u {
  position: absolute;
  z-index: 5;
  top: 5px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--posuv-accent-2);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.posuv-template-thumb[data-thumb="sphere"]::before { left: 7%; top: 15%; transform: rotate(-8deg); }
.posuv-template-thumb[data-thumb="sphere"]::after { right: 7%; top: 15%; transform: rotate(8deg); }
.posuv-template-thumb[data-thumb="sphere"] i { left: 38%; top: 28%; }
.posuv-template-thumb[data-thumb="sphere"] b { left: 12%; bottom: 7%; }
.posuv-template-thumb[data-thumb="sphere"] em { width: 25%; height: 34%; left: 64%; top: auto; bottom: 7%; border-radius: 3px; }
.posuv-template-thumb[data-thumb="globe"] { border-radius: 50%; transform: scale(.86); }
.posuv-template-thumb[data-thumb="coverflow"]::before { left: 5%; top: 28%; transform: rotate(-12deg) scale(.8); }
.posuv-template-thumb[data-thumb="coverflow"]::after { right: 5%; top: 28%; transform: rotate(12deg) scale(.8); }
.posuv-template-thumb[data-thumb="coverflow"] i { width: 32%; height: 52%; left: 34%; top: 18%; }
.posuv-template-thumb[data-thumb="coverflow"] b,
.posuv-template-thumb[data-thumb="coverflow"] em { display: none; }
.posuv-template-thumb[data-thumb="filmstrip"]::before,
.posuv-template-thumb[data-thumb="filmstrip"]::after,
.posuv-template-thumb[data-thumb="filmstrip"] i { top: 30%; width: 29%; height: 43%; transform: rotate(-8deg); }
.posuv-template-thumb[data-thumb="filmstrip"]::before { left: -4%; }
.posuv-template-thumb[data-thumb="filmstrip"] i { left: 35%; }
.posuv-template-thumb[data-thumb="filmstrip"]::after { right: -4%; }
.posuv-template-thumb[data-thumb="filmstrip"] b,
.posuv-template-thumb[data-thumb="filmstrip"] em { display: none; }
.posuv-template-thumb[data-thumb="grid"]::before,
.posuv-template-thumb[data-thumb="grid"]::after,
.posuv-template-thumb[data-thumb="grid"] i,
.posuv-template-thumb[data-thumb="grid"] b { width: 32%; height: 33%; transform: none; }
.posuv-template-thumb[data-thumb="grid"]::before { left: 15%; top: 15%; }
.posuv-template-thumb[data-thumb="grid"]::after { left: 53%; top: 15%; }
.posuv-template-thumb[data-thumb="grid"] i { left: 15%; top: 53%; }
.posuv-template-thumb[data-thumb="grid"] b { left: 53%; top: 53%; }
.posuv-template-thumb[data-thumb="grid"] em { display: none; }
.posuv-template-thumb[data-thumb="spotlight"]::before { width: 76%; height: 72%; left: 12%; top: 14%; transform: none; }
.posuv-template-thumb[data-thumb="spotlight"]::after,
.posuv-template-thumb[data-thumb="spotlight"] i,
.posuv-template-thumb[data-thumb="spotlight"] b,
.posuv-template-thumb[data-thumb="spotlight"] em { display: none; }
.posuv-template-thumb[data-thumb="stack"]::before,
.posuv-template-thumb[data-thumb="stack"]::after,
.posuv-template-thumb[data-thumb="stack"] i { width: 42%; height: 64%; left: 29%; top: 18%; }
.posuv-template-thumb[data-thumb="stack"]::before { transform: rotate(-15deg) translate(-12%, 4%); }
.posuv-template-thumb[data-thumb="stack"]::after { transform: rotate(14deg) translate(12%, 4%); }
.posuv-template-thumb[data-thumb="stack"] i { z-index: 2; }
.posuv-template-thumb[data-thumb="stack"] b,
.posuv-template-thumb[data-thumb="stack"] em { display: none; }

.posuv-original-note {
  display: flex;
  gap: 9px;
  margin: 0 12px 14px;
  padding: 11px;
  border: 1px solid rgba(182, 104, 242, .2);
  border-radius: 13px;
  color: var(--posuv-ink-2);
  background: rgba(182, 104, 242, .08);
}

.posuv-original-note > span {
  color: var(--posuv-accent-2);
}

.posuv-original-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.posuv-empty-search {
  display: grid;
  gap: 3px;
  padding: 30px 10px;
  color: var(--posuv-ink-3);
  text-align: center;
}

.posuv-main {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  contain: layout paint;
  background-color: #eee8ea;
  background-image: radial-gradient(rgba(17, 16, 19, .13) .75px, transparent .75px);
  background-size: 16px 16px;
}

.posuv-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 28px 32px 20px;
  overflow: hidden;
}

.posuv-stage-meta {
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--posuv-ink-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.posuv-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, calc((100vh - 160px) * var(--posuv-aspect)));
  max-height: 100%;
  aspect-ratio: var(--posuv-aspect);
  overflow: hidden;
  border: 1px solid rgba(17, 16, 19, .15);
  border-radius: 20px;
  background: #111013;
  box-shadow: 0 28px 80px rgba(17, 16, 19, .18), 0 2px 0 rgba(255, 255, 255, .7) inset;
}

.posuv-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.posuv-stage-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 24%, transparent 72%, rgba(255, 255, 255, .04));
}

.posuv-timeline {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid var(--posuv-line);
  background: rgba(255, 250, 252, .96);
}

.posuv-playback {
  display: flex;
  gap: 5px;
}

.posuv-playback .posuv-icon-btn {
  width: 34px;
  height: 34px;
}

.posuv-playback .is-filled {
  color: #fff;
  border-color: var(--posuv-ink);
  background: var(--posuv-ink);
}

.posuv-scrub-wrap {
  position: relative;
  display: flex;
  height: 32px;
  align-items: center;
}

.posuv-scrub-wrap > input,
.posuv-param input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  background: linear-gradient(90deg, var(--posuv-accent-2), var(--posuv-accent));
  cursor: pointer;
}

.posuv-scrub-wrap > input::-webkit-slider-thumb,
.posuv-param input[type="range"]::-webkit-slider-thumb {
  position: relative;
  z-index: 3;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--posuv-accent-2);
  box-shadow: 0 0 0 1px rgba(17, 16, 19, .18), 0 3px 8px rgba(118, 70, 221, .3);
}

.posuv-scrub-wrap > input::-moz-range-thumb,
.posuv-param input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--posuv-accent-2);
  box-shadow: 0 0 0 1px rgba(17, 16, 19, .18);
}

.posuv-keyframe-track {
  position: absolute;
  inset: 0 7px;
  pointer-events: none;
}

.posuv-keyframe-marker {
  position: absolute;
  top: 3px;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  background: var(--posuv-accent);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 1px var(--posuv-accent-2);
  pointer-events: auto;
  cursor: pointer;
}

.posuv-time {
  min-width: 82px;
  color: var(--posuv-ink-3);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.posuv-time b {
  color: var(--posuv-ink);
}

.posuv-inspector-scroll {
  padding-bottom: 34px;
}

.posuv-section {
  border-top: 1px solid var(--posuv-line);
}

.posuv-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.posuv-section-toggle i {
  color: var(--posuv-ink-3);
  font-style: normal;
  transition: transform .2s ease;
}

.posuv-section:not(.is-open) .posuv-section-toggle i {
  transform: rotate(180deg);
}

.posuv-section-body {
  display: none;
  padding: 2px 14px 16px;
}

.posuv-section.is-open .posuv-section-body {
  display: block;
}

.posuv-aspects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.posuv-aspect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 1px 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--posuv-ink-3);
  background: transparent;
  cursor: pointer;
}

.posuv-aspect:hover,
.posuv-aspect.is-active {
  color: var(--posuv-ink);
  border-color: var(--posuv-line);
  background: var(--posuv-white);
}

.posuv-aspect span {
  width: 21px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.posuv-aspect[data-aspect="4:3"] span { width: 19px; }
.posuv-aspect[data-aspect="1:1"] span { width: 16px; height: 16px; }
.posuv-aspect[data-aspect="4:5"] span { width: 14px; height: 17px; }
.posuv-aspect[data-aspect="3:4"] span { width: 13px; height: 17px; }
.posuv-aspect[data-aspect="9:16"] span { width: 10px; height: 18px; }
.posuv-aspect small { font-size: 8px; }

.posuv-count-row,
.posuv-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--posuv-ink-2);
  font-size: 11px;
}

.posuv-count-row > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.posuv-count-row button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--posuv-line);
  border-radius: 8px;
  background: var(--posuv-white);
  cursor: pointer;
}

.posuv-count-row b {
  width: 22px;
  text-align: center;
}

.posuv-media-list {
  display: grid;
  gap: 6px;
  max-height: 265px;
  overflow: auto;
  padding-right: 2px;
}

.posuv-media-slot {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 52px;
  padding: 4px;
  border: 1px solid var(--posuv-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .58);
  transition: .16s ease;
}

.posuv-media-slot.is-dragging {
  opacity: .4;
}

.posuv-media-slot.is-drop-target {
  border-color: var(--posuv-accent-2);
  background: rgba(182, 104, 242, .11);
}

.posuv-drag,
.posuv-media-remove {
  padding: 0;
  border: 0;
  color: var(--posuv-ink-3);
  background: transparent;
  cursor: grab;
}

.posuv-media-remove {
  visibility: hidden;
  font-size: 18px;
  cursor: pointer;
}

.posuv-media-slot.has-media .posuv-media-remove {
  visibility: visible;
}

.posuv-media-pick {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.posuv-media-preview {
  display: grid;
  place-items: center;
  width: 47px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--posuv-line);
  border-radius: 8px;
  color: var(--posuv-ink-3);
  background: var(--posuv-panel-2);
  font-size: 16px;
}

.posuv-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posuv-media-preview.is-video {
  color: #fff;
  background: linear-gradient(135deg, var(--posuv-accent-2), var(--posuv-accent));
}

.posuv-media-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.posuv-media-copy strong,
.posuv-media-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-media-copy strong {
  font-size: 10px;
}

.posuv-media-copy small {
  color: var(--posuv-ink-3);
  font-size: 8px;
}

.posuv-wide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid var(--posuv-line);
  border-radius: 999px;
  background: var(--posuv-white);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .16s ease;
}

.posuv-wide-btn:hover {
  border-color: var(--posuv-accent);
  color: var(--posuv-accent-2);
}

.posuv-wide-btn svg {
  width: 14px;
  height: 14px;
}

.posuv-duration {
  margin-top: 2px;
}

.posuv-param + .posuv-param {
  margin-top: 14px;
}

.posuv-param-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--posuv-ink-2);
  font-size: 10px;
}

.posuv-param-head > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.posuv-param-head output {
  color: var(--posuv-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.posuv-keyframe {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--posuv-accent-2);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.posuv-keyframe:hover {
  background: rgba(182, 104, 242, .12);
}

.posuv-keyframe.is-animated {
  color: #2087ff !important;
  font-size: 13px !important;
}

.posuv-keyframe.is-current {
  color: #fff !important;
  filter: drop-shadow(0 0 3px #2087ff);
}

.posuv-presets {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.posuv-presets button {
  flex: 1;
  padding: 5px 2px;
  border: 1px solid var(--posuv-line);
  border-radius: 7px;
  background: var(--posuv-white);
  font-size: 9px;
  cursor: pointer;
}

.posuv-switch-row {
  cursor: pointer;
}

.posuv-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.posuv-switch-row i {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #c9c3cb;
  transition: .2s ease;
}

.posuv-switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  transition: .2s ease;
}

.posuv-switch-row input:checked + i {
  background: var(--posuv-accent-2);
}

.posuv-switch-row input:checked + i::after {
  transform: translateX(15px);
}

.posuv-subcontrol {
  margin: 13px 0;
}

.posuv-subcontrol > span {
  display: block;
  margin-bottom: 7px;
  color: var(--posuv-ink-2);
  font-size: 10px;
}

.posuv-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.posuv-ratio-grid button {
  min-width: 0;
  height: 29px;
  padding: 0 2px;
  border: 1px solid var(--posuv-line);
  border-radius: 8px;
  background: var(--posuv-white);
  font-size: 8px;
  cursor: pointer;
}

.posuv-ratio-grid button:hover,
.posuv-ratio-grid button.is-active {
  color: #fff;
  border-color: var(--posuv-accent-2);
  background: var(--posuv-accent-2);
}

.posuv-section textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--posuv-line);
  border-radius: 10px;
  outline: none;
  color: var(--posuv-ink);
  background: var(--posuv-white);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.posuv-inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.posuv-inline-fields label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 36px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--posuv-line);
  border-radius: 9px;
  color: var(--posuv-ink-3);
  background: var(--posuv-white);
  font-size: 9px;
}

.posuv-inline-fields input[type="number"] {
  width: 55px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  box-shadow: none;
}

.posuv-inline-fields input[type="color"] {
  width: 25px;
  height: 25px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.posuv-file-note {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--posuv-ink-3);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 10px;
  background: var(--posuv-panel-2);
}

.posuv-segmented button {
  min-height: 29px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  color: var(--posuv-ink-3);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.posuv-segmented button.is-active {
  color: var(--posuv-ink);
  background: var(--posuv-white);
  box-shadow: 0 2px 8px rgba(17, 16, 19, .08);
}

.posuv-color-fields {
  margin-top: 8px;
}

.posuv-mobile-nav {
  display: none;
}

.posuv-projects-dialog {
  width: min(1180px, calc(100vw - 34px));
  height: min(760px, calc(100vh - 34px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  color: var(--posuv-ink);
  background: var(--posuv-paper);
  box-shadow: 0 35px 100px rgba(17, 16, 19, .3);
}

.posuv-projects-dialog::backdrop {
  background: rgba(17, 16, 19, .62);
  backdrop-filter: blur(11px);
}

.posuv-projects-shell {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  height: 100%;
}

.posuv-projects-nav {
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid var(--posuv-line);
  background: #fffafc;
}

.posuv-projects-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 23px;
  font: 700 14px/1.2 "DM Sans", Inter, sans-serif;
}

.posuv-projects-brand .posuv-brand-logo {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
}

.posuv-projects-nav nav {
  display: grid;
  gap: 4px;
}

.posuv-projects-nav nav > span {
  padding: 0 10px 7px;
  color: var(--posuv-ink-3);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.posuv-projects-nav nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.posuv-projects-nav nav button:hover,
.posuv-projects-nav nav button.is-active {
  color: var(--posuv-accent-2);
  background: rgba(182, 104, 242, .1);
}

.posuv-projects-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(182, 104, 242, .18);
  border-radius: 13px;
  color: var(--posuv-ink-3);
  background: rgba(182, 104, 242, .07);
  font-size: 9px;
}

.posuv-projects-note b {
  color: var(--posuv-accent-2);
  font-size: 10px;
}

.posuv-projects-main {
  position: relative;
  min-width: 0;
  padding: 34px;
  overflow: auto;
  background-color: #f7f1f3;
  background-image: radial-gradient(rgba(17, 16, 19, .08) .65px, transparent .65px);
  background-size: 17px 17px;
}

.posuv-projects-main > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.posuv-projects-main h2 {
  margin: 5px 0 3px;
  color: var(--posuv-ink);
  font: 750 34px/1 "DM Sans", Inter, sans-serif;
  letter-spacing: -.045em;
}

.posuv-projects-main header p {
  margin: 0;
  color: var(--posuv-ink-3);
  font-size: 11px;
}

.posuv-projects-main > header > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.posuv-projects-main .posuv-dialog-close {
  position: static;
}

.posuv-new-project {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--posuv-ink);
  border-radius: 999px;
  color: #fff !important;
  background: var(--posuv-ink);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.posuv-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.posuv-project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--posuv-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 16, 19, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.posuv-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 38px rgba(17, 16, 19, .11);
}

.posuv-project-card.is-current {
  border-color: rgba(118, 70, 221, .65);
  box-shadow: 0 0 0 2px rgba(182, 104, 242, .13), 0 15px 35px rgba(17, 16, 19, .1);
}

.posuv-project-preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #17151a;
  cursor: pointer;
}

.posuv-project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posuv-project-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: radial-gradient(circle at 38% 30%, #b668f2, transparent 28%), linear-gradient(135deg, #111013, #40245a);
  font-size: 36px;
}

.posuv-project-card-body {
  padding: 13px;
}

.posuv-project-card-body input {
  display: block;
  width: 100%;
  height: 29px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--posuv-ink);
  background: transparent;
  font-weight: 750;
  box-shadow: none;
}

.posuv-project-card-body input:hover,
.posuv-project-card-body input:focus {
  border-color: var(--posuv-line);
  background: var(--posuv-panel);
}

.posuv-project-card-body > span {
  display: block;
  overflow: hidden;
  margin: 2px 6px 10px;
  color: var(--posuv-ink-3);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-project-card-body > div {
  display: flex;
  gap: 5px;
}

.posuv-project-card-body button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid var(--posuv-line);
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.posuv-project-card-body button:last-child {
  margin-left: auto;
  color: #a9233a;
}

.posuv-project-card-body button:disabled {
  opacity: .32;
  cursor: not-allowed;
}

.posuv-export-dialog {
  width: min(570px, calc(100vw - 28px));
  max-width: 570px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--posuv-ink);
  background: transparent;
  box-shadow: var(--posuv-shadow);
}

.posuv-export-dialog::backdrop {
  background: rgba(17, 16, 19, .64);
  backdrop-filter: blur(10px);
}

.posuv-export-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 24px;
  background: #fffafc;
}

.posuv-export-card h2 {
  margin: 5px 0 7px;
  color: var(--posuv-ink);
  font: 700 31px/1.05 "DM Sans", Inter, sans-serif;
  letter-spacing: -.045em;
}

.posuv-export-card > p {
  max-width: 460px;
  margin: 0;
  color: var(--posuv-ink-2);
  font-size: 12px;
}

.posuv-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--posuv-line);
  border-radius: 50%;
  background: var(--posuv-white);
  cursor: pointer;
}

.posuv-export-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 16px;
  overflow: hidden;
  border: 1px solid var(--posuv-line);
  border-radius: 14px;
  background: var(--posuv-line);
}

.posuv-export-summary > span {
  display: flex;
  flex-direction: column;
  padding: 11px 13px;
  background: var(--posuv-white);
}

.posuv-export-summary small {
  color: var(--posuv-ink-3);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.posuv-export-summary b {
  margin-top: 3px;
  font-size: 12px;
}

.posuv-export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.posuv-export-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 13px;
  border: 1px solid var(--posuv-line);
  border-radius: 15px;
  background: var(--posuv-white);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.posuv-export-options button:hover {
  border-color: var(--posuv-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(118, 70, 221, .1);
}

.posuv-format-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--posuv-accent-2), var(--posuv-accent));
}

.posuv-export-options button > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.posuv-export-options b {
  font-size: 12px;
}

.posuv-export-options small {
  margin-top: 2px;
  color: var(--posuv-ink-3);
  font-size: 9px;
  line-height: 1.35;
}

.posuv-export-progress {
  margin-top: 16px;
}

.posuv-export-progress > span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--posuv-panel-2);
}

.posuv-export-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--posuv-accent-2), var(--posuv-accent));
}

.posuv-export-progress b {
  display: block;
  margin-top: 6px;
  color: var(--posuv-ink-3);
  font-size: 9px;
  text-align: center;
}

.posuv-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000001;
  max-width: min(380px, calc(100vw - 30px));
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: #fff;
  background: var(--posuv-ink);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 15px 40px rgba(17, 16, 19, .25);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: .22s ease;
}

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

.posuv-toast.is-error {
  background: #a9233a;
}

.posuv-editor .screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .posuv-workspace {
    grid-template-columns: 210px minmax(340px, 1fr) 286px;
  }
  .posuv-topbar {
    grid-template-columns: 285px minmax(160px, 1fr) 285px;
  }
  .posuv-template-list {
    padding-inline: 9px;
  }
  .posuv-stage-wrap {
    padding-inline: 20px;
  }
  .posuv-aspects {
    grid-template-columns: repeat(3, 1fr);
  }
  .posuv-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .posuv-shell {
    grid-template-rows: 58px minmax(0, 1fr) 58px;
  }
  .posuv-topbar {
    grid-template-columns: minmax(150px, 1fr) auto;
    height: 58px;
    padding: 0 10px;
  }
  .posuv-brand > span:last-child small,
  .posuv-projects-btn span,
  .posuv-account-btn span,
  .posuv-icon-btn[data-action="undo"],
  .posuv-icon-btn[data-action="redo"] {
    display: none;
  }
  .posuv-brand-logo {
    flex-basis: 37px;
    width: 37px;
    height: 37px;
  }
  .posuv-brand-zone { gap: 5px; }
  .posuv-projects-btn,
  .posuv-account-btn {
    width: 36px;
    padding: 0;
  }
  .posuv-project-title {
    display: none;
  }
  .posuv-save-btn {
    width: 38px;
    padding: 0;
  }
  .posuv-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .posuv-sidebar {
    position: absolute;
    top: 58px;
    bottom: 58px;
    z-index: 20;
    width: min(330px, calc(100vw - 42px));
    box-shadow: 0 20px 60px rgba(17, 16, 19, .2);
    transition: transform .24s ease;
  }
  .posuv-sidebar-left {
    left: 0;
    transform: translateX(-105%);
  }
  .posuv-sidebar-right {
    right: 0;
    transform: translateX(105%);
  }
  .is-left-open .posuv-sidebar-left,
  .is-right-open .posuv-sidebar-right {
    transform: translateX(0);
  }
  .posuv-panel-close {
    display: grid;
    place-items: center;
  }
  .posuv-main {
    grid-template-rows: minmax(0, 1fr) 60px;
  }
  .posuv-stage-wrap {
    padding: 30px 14px 14px;
  }
  .posuv-stage {
    max-width: 100%;
    max-height: 100%;
  }
  .posuv-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--posuv-line);
    background: var(--posuv-panel);
  }
  .posuv-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    color: var(--posuv-ink-2);
    background: transparent;
    font-size: 9px;
    font-weight: 700;
  }
  .posuv-mobile-nav button span {
    font-size: 16px;
    line-height: 1;
  }
  .posuv-projects-dialog {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
  }
  .posuv-projects-shell {
    grid-template-columns: 1fr;
  }
  .posuv-projects-nav {
    display: none;
  }
  .posuv-projects-main {
    padding: 24px 18px;
  }
}

/* 1.0.23 — colour and gradient fields keep their geometry inside any host theme. */
.posuv-editor .posuv-sidebar-right .posuv-color-fields {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.posuv-editor .posuv-sidebar-right .posuv-color-fields > label {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(54px, 1fr) minmax(0, 124px) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.posuv-editor .posuv-sidebar-right .posuv-color-fields > label > span:first-child {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #aaaab0 !important;
  -webkit-text-fill-color: #aaaab0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-sidebar-right .posuv-color-fields > label > span:last-child {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 79px) 38px !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 124px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-sidebar-right .posuv-color-fields input[type="text"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 79px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  border: 1px solid #414146 !important;
  border-radius: 7px !important;
  color: #aaaab0 !important;
  -webkit-text-fill-color: #aaaab0 !important;
  background: #29292c !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 10px !important;
  line-height: 30px !important;
  text-align: right !important;
  text-transform: none !important;
}

.posuv-editor .posuv-sidebar-right .posuv-color-fields input[type="color"] {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #414146 !important;
  border-radius: 7px !important;
  background: #29292c !important;
  box-shadow: none !important;
}

.posuv-editor.is-light-preview .posuv-sidebar-right .posuv-color-fields > label > span:first-child,
.posuv-editor.is-light-preview .posuv-sidebar-right .posuv-color-fields input[type="text"] {
  color: #55555d !important;
  -webkit-text-fill-color: #55555d !important;
}

.posuv-editor.is-light-preview .posuv-sidebar-right .posuv-color-fields input:is([type="text"], [type="color"]) {
  border-color: #cfd0d7 !important;
  background: #fff !important;
}

/* 1.0.22 — keep text inspector fields aligned and independent of host forms. */
.posuv-editor .posuv-text-field-labels {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.posuv-editor .posuv-text-field-labels > span {
  box-sizing: border-box !important;
  display: block !important;
  min-width: 0 !important;
  padding: 0 5px !important;
}

.posuv-editor .posuv-text-field-labels > span:nth-child(2) {
  padding-left: 9px !important;
}

.posuv-editor .posuv-text-weight-size {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.posuv-editor .posuv-text-weight-size > select,
.posuv-editor .posuv-text-weight-size > label {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #414146 !important;
  border-radius: 9px !important;
  color: #f4f4f6 !important;
  background-color: #29292c !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-text-weight-size > label {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  align-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.posuv-editor .posuv-text-weight-size > label > input[type="number"] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  border-width: 0 !important;
  color: inherit !important;
  background: transparent !important;
  text-align: center !important;
}

.posuv-editor .posuv-text-weight-size > label:focus-within {
  border-color: rgba(182, 104, 242, .72) !important;
  outline: 3px solid rgba(182, 104, 242, .14) !important;
  outline-offset: 1px !important;
}

.posuv-editor .posuv-text-weight-size > label > input[type="number"]:focus,
.posuv-editor .posuv-text-weight-size > label > input[type="number"]:focus-visible {
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-text-weight-size > label > span {
  display: block !important;
  width: 28px !important;
  min-width: 28px !important;
  padding-right: 5px !important;
  overflow: hidden !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.posuv-editor.is-light-preview .posuv-text-weight-size > select,
.posuv-editor.is-light-preview .posuv-text-weight-size > label {
  color: #24242a !important;
  border-color: #d6d7df !important;
  background-color: #f0f1f5 !important;
}

@media (max-width: 380px) {
  .posuv-editor .posuv-text-field-labels,
  .posuv-editor .posuv-text-weight-size {
    gap: 6px !important;
  }
}

/* 1.0.17 — isolate every editor control from hostile WordPress theme styles. */
.posuv-editor button {
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #e8e8eb !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: #29292c !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, .17) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.posuv-editor :where(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) {
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #eeeef0 !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: #29292c !important;
  border-color: #414146 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  text-transform: none !important;
}

.posuv-editor label {
  color: inherit;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.posuv-editor input[type="range"] {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor input[type="color"] {
  background-color: #29292c !important;
  background-image: none !important;
  border-color: #414146 !important;
  box-shadow: none !important;
}

.posuv-editor :is(
  .posuv-theme-btn,
  .posuv-icon-btn,
  .posuv-template-card,
  .posuv-aspect,
  .posuv-media-pick,
  .posuv-drag,
  .posuv-media-remove,
  .posuv-keyframe,
  .posuv-text-keyframe,
  .posuv-text-card-head button,
  .posuv-text-align button,
  .posuv-keyframe-row-label button,
  .posuv-drawer-keyframe,
  .posuv-project-preview,
  .posuv-mobile-nav button
) {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
}

.posuv-editor .posuv-section-toggle {
  color: #9b9ba1 !important;
  background-color: #212121 !important;
  background-image: none !important;
  border-color: transparent !important;
}

.posuv-editor :is(.posuv-media-slot, .posuv-text-card) {
  color: #e5e5e8 !important;
  background-color: #232325 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, .08) !important;
}

.posuv-editor :is(.posuv-inline-fields label, .posuv-text-weight-size > label, .posuv-text-spacing > label > div) {
  color: #f4f4f6 !important;
  background-color: #29292c !important;
  background-image: none !important;
  border-color: #414146 !important;
}

.posuv-editor :is(.posuv-text-weight-size, .posuv-text-spacing, .posuv-inline-fields) input {
  color: inherit !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-template-card:is(:hover, .is-active) {
  color: #f2f2f4 !important;
  background-color: #2a2a2d !important;
}

.posuv-editor .posuv-template-card.is-active {
  border-color: #b8b8bd !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px rgba(118,70,221,.38) !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn,
.posuv-editor .posuv-keyframes-toggle {
  color: #dedee1 !important;
  background-color: #29292c !important;
  border-color: rgba(255, 255, 255, .08) !important;
}

.posuv-editor :is(.posuv-presets button, .posuv-ratio-grid button, .posuv-motion-grid button, .posuv-segmented button, .posuv-text-align button).is-active {
  color: #fff !important;
  background-color: #4778ff !important;
  background-image: none !important;
  border-color: #4778ff !important;
}

.posuv-editor .posuv-aspect.is-active {
  color: #f5f5f7 !important;
  background-color: #242426 !important;
  border-color: rgba(255,255,255,.12) !important;
}

.posuv-editor .posuv-export-pills button.is-active,
.posuv-editor .posuv-export-btn,
.posuv-editor .posuv-export-btn:is(:hover, :focus, :focus-visible, :active) {
  color: #fff !important;
  background-color: #6558ef !important;
  background-image: linear-gradient(135deg, #7646dd, #4778ff) !important;
  border-color: transparent !important;
}

.posuv-editor .posuv-export-btn {
  box-shadow: 0 5px 16px rgba(71,120,255,.24), inset 0 1px rgba(255,255,255,.22) !important;
}

.posuv-editor.is-light-preview button {
  color: #34343b !important;
  background-color: #f0f1f5 !important;
  background-image: none !important;
  border-color: rgba(24, 24, 29, .18) !important;
}

.posuv-editor.is-light-preview :is(
  .posuv-theme-btn,
  .posuv-icon-btn,
  .posuv-template-card,
  .posuv-aspect,
  .posuv-media-pick,
  .posuv-drag,
  .posuv-media-remove,
  .posuv-keyframe,
  .posuv-text-keyframe,
  .posuv-text-card-head button,
  .posuv-text-align button,
  .posuv-keyframe-row-label button,
  .posuv-drawer-keyframe,
  .posuv-project-preview,
  .posuv-mobile-nav button
) {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
}

.posuv-editor.is-light-preview .posuv-section-toggle {
  color: #676771 !important;
  background-color: #fff !important;
  border-color: transparent !important;
}

.posuv-editor.is-light-preview :is(.posuv-media-slot, .posuv-text-card) {
  color: #24242a !important;
  background-color: #fff !important;
  border-color: rgba(24, 24, 29, .12) !important;
}

.posuv-editor.is-light-preview :is(.posuv-inline-fields label, .posuv-text-weight-size > label, .posuv-text-spacing > label > div) {
  color: #24242a !important;
  background-color: #f0f1f5 !important;
  border-color: rgba(24, 24, 29, .18) !important;
}

.posuv-editor.is-light-preview .posuv-template-card:is(:hover, .is-active),
.posuv-editor.is-light-preview .posuv-aspect.is-active {
  color: #17171b !important;
  background-color: #fff !important;
  border-color: rgba(24, 24, 29, .2) !important;
}

.posuv-editor.is-light-preview :is(.posuv-presets button, .posuv-ratio-grid button, .posuv-motion-grid button, .posuv-segmented button, .posuv-text-align button).is-active,
.posuv-editor.is-light-preview .posuv-export-pills button.is-active,
.posuv-editor.is-light-preview .posuv-export-btn,
.posuv-editor.is-light-preview .posuv-export-btn:is(:hover, :focus, :focus-visible, :active) {
  color: #fff !important;
  background-color: #6558ef !important;
  background-image: linear-gradient(135deg, #7646dd, #4778ff) !important;
  border-color: transparent !important;
}

@media (max-width: 560px) {
  .posuv-top-actions {
    gap: 5px;
  }
  .posuv-save-btn,
  .posuv-export-btn,
  .posuv-icon-btn {
    height: 36px;
  }
  .posuv-save-btn { width: 36px; }
  .posuv-export-btn {
    padding: 0 12px;
  }
  .posuv-export-btn span {
    display: none;
  }
  .posuv-export-btn {
    width: 36px;
    padding: 0;
  }
  .posuv-timeline {
    grid-template-columns: auto minmax(80px, 1fr);
    gap: 8px;
    padding: 0 10px;
  }
  .posuv-time {
    display: none;
  }
  .posuv-stage-meta {
    left: 12px;
    right: 12px;
  }
  .posuv-stage-meta span:last-child {
    display: none;
  }
  .posuv-export-card {
    padding: 24px 18px 18px;
  }
  .posuv-export-card h2 {
    max-width: 85%;
    font-size: 26px;
  }
  .posuv-export-summary {
    grid-template-columns: 1fr 1fr;
  }
  .posuv-export-summary > span:last-child {
    display: none;
  }
  .posuv-export-options {
    grid-template-columns: 1fr;
  }
  .posuv-projects-main > header {
    align-items: center;
    margin-bottom: 20px;
  }
  .posuv-projects-main h2 {
    font-size: 26px;
  }
  .posuv-new-project {
    justify-content: center;
    width: 38px;
    padding: 0;
    font-size: 0;
  }
  .posuv-project-grid {
    grid-template-columns: 1fr;
  }
}

/* 1.0.17 — close controls remain visible even when the host theme uses !important. */
.posuv-editor .posuv-panel-close,
.posuv-editor .posuv-dialog-close {
  color: #f7f7f8 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: rgba(255, 255, 255, .2) !important;
  background-color: #29292c !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.posuv-editor .posuv-panel-close:hover,
.posuv-editor .posuv-panel-close:focus-visible,
.posuv-editor .posuv-panel-close:active,
.posuv-editor .posuv-dialog-close:hover,
.posuv-editor .posuv-dialog-close:focus-visible,
.posuv-editor .posuv-dialog-close:active {
  color: #fff !important;
  border-color: rgba(182, 104, 242, .75) !important;
  background-color: #3a3a3e !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(182, 104, 242, .2) !important;
}

.posuv-editor .posuv-panel-close svg,
.posuv-editor .posuv-panel-close svg path,
.posuv-editor .posuv-dialog-close svg,
.posuv-editor .posuv-dialog-close svg path {
  color: inherit !important;
  opacity: 1 !important;
  stroke: currentColor !important;
}

.posuv-editor.is-light-preview .posuv-panel-close,
.posuv-editor.is-light-preview .posuv-dialog-close {
  color: #24242a !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: rgba(24, 24, 29, .2) !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor.is-light-preview .posuv-panel-close:hover,
.posuv-editor.is-light-preview .posuv-panel-close:focus-visible,
.posuv-editor.is-light-preview .posuv-panel-close:active,
.posuv-editor.is-light-preview .posuv-dialog-close:hover,
.posuv-editor.is-light-preview .posuv-dialog-close:focus-visible,
.posuv-editor.is-light-preview .posuv-dialog-close:active {
  color: #17171b !important;
  border-color: rgba(118, 70, 221, .55) !important;
  background-color: #f0f1f5 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(118, 70, 221, .18) !important;
}

/* 4.2.1 — balanced header and explicit interface themes */
.posuv-shell {
  grid-template-rows: 56px minmax(0, 1fr);
}

.posuv-topbar {
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 14px;
}

.posuv-brand-zone,
.posuv-top-actions {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
}

.posuv-brand {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: inherit;
  background: #101014;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  text-decoration: none !important;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.posuv-brand:hover {
  border-color: rgba(182, 104, 242, .65);
  box-shadow: 0 0 0 3px rgba(182, 104, 242, .12), inset 0 1px rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.posuv-brand-logo {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
}

.posuv-project-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(400px, 36vw);
  transform: translate(-50%, -50%);
}

.posuv-project-title input {
  width: 100%;
  height: 36px;
  font-size: 13px;
}

.posuv-stage {
  width: min(100%, calc((100vh - 176px) * var(--posuv-aspect)));
  width: min(100%, calc((100dvh - 176px) * var(--posuv-aspect)));
}

.is-keyframes-open .posuv-stage {
  width: min(100%, calc((100vh - 176px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
  width: min(100%, calc((100dvh - 176px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
}

.is-light-preview,
.is-light-preview canvas,
.is-light-preview img,
.is-light-preview video {
  filter: none;
}

.posuv-editor.is-light-preview {
  --posuv-ink: #17171b;
  --posuv-ink-2: #4e4e57;
  --posuv-ink-3: #777780;
  --posuv-paper: #f2f3f7;
  --posuv-panel: #ffffff;
  --posuv-panel-2: #f0f1f5;
  --posuv-white: #ffffff;
  --posuv-line: rgba(24, 24, 29, .1);
  --posuv-line-strong: rgba(24, 24, 29, .2);
  color: var(--posuv-ink);
  background: #f2f3f7;
}

.is-light-preview .posuv-shell,
.is-light-preview .posuv-workspace {
  color: #17171b;
  background: #f2f3f7;
}

.is-light-preview .posuv-topbar,
.is-light-preview .posuv-sidebar,
.is-light-preview .posuv-timeline,
.is-light-preview .posuv-keyframes-drawer,
.is-light-preview .posuv-projects-dialog,
.is-light-preview .posuv-export-card,
.is-light-preview .posuv-projects-nav,
.is-light-preview .posuv-mobile-nav {
  color: #24242a;
  border-color: var(--posuv-line);
  background: rgba(255, 255, 255, .97);
}

.is-light-preview .posuv-main,
.is-light-preview .posuv-projects-main {
  background-color: #eceef3;
  background-image: radial-gradient(rgba(24, 24, 29, .13) .65px, transparent .65px);
}

.is-light-preview .posuv-template-group h3 {
  color: #71717a;
  background: linear-gradient(#fff 78%, rgba(255, 255, 255, 0));
}

.is-light-preview .posuv-projects-btn,
.is-light-preview .posuv-theme-btn,
.is-light-preview .posuv-icon-btn {
  color: #5c5c66;
}

.is-light-preview .posuv-projects-btn:hover,
.is-light-preview .posuv-theme-btn:hover,
.is-light-preview .posuv-icon-btn:hover {
  color: #17171b;
  border-color: var(--posuv-line-strong);
  background: #f0f1f5;
}

.is-light-preview .posuv-project-title input {
  color: #17171b;
  background: #f0f1f5;
}

.is-light-preview .posuv-project-title input:hover,
.is-light-preview .posuv-project-title input:focus {
  border-color: var(--posuv-line-strong);
  background: #fff;
}

.is-light-preview .posuv-account-btn {
  color: #292930;
  border-color: rgba(24, 24, 29, .12);
  background: #f0f1f5;
}

.is-light-preview .posuv-account-btn:hover {
  color: #17171b;
  border-color: rgba(118, 70, 221, .34);
  background: #fff;
}

.is-light-preview .posuv-section-toggle {
  color: #66666f;
  background: #fff;
}

.is-light-preview .posuv-section-toggle:hover,
.is-light-preview .posuv-sidebar-right .posuv-section-toggle {
  color: #34343b;
}

.is-light-preview .posuv-aspects,
.is-light-preview .posuv-segmented,
.is-light-preview .posuv-motion-grid button,
.is-light-preview .posuv-presets button,
.is-light-preview .posuv-ratio-grid button,
.is-light-preview .posuv-section textarea,
.is-light-preview .posuv-inline-fields label,
.is-light-preview .posuv-select-row select,
.is-light-preview .posuv-media-slot,
.is-light-preview .posuv-media-preview,
.is-light-preview .posuv-wide-btn,
.is-light-preview .posuv-project-card,
.is-light-preview .posuv-project-card-body button,
.is-light-preview .posuv-dialog-close,
.is-light-preview .posuv-export-summary > span,
.is-light-preview .posuv-export-options button {
  color: #4f4f58;
  border-color: var(--posuv-line);
  background: #f0f1f5;
}

.is-light-preview .posuv-aspect:hover,
.is-light-preview .posuv-aspect.is-active,
.is-light-preview .posuv-segmented button.is-active {
  color: #17171b;
  border-color: rgba(24, 24, 29, .17);
  background: #fff;
}

.is-light-preview .posuv-template-card {
  color: #26262c;
}

.is-light-preview .posuv-template-card > strong,
.is-light-preview .posuv-media-copy strong,
.is-light-preview .posuv-param-head output,
.is-light-preview .posuv-keyframes-drawer header b {
  color: #26262c;
}

.is-light-preview .posuv-template-card:hover,
.is-light-preview .posuv-template-card.is-active {
  color: #17171b;
  border-color: rgba(118, 70, 221, .42);
  background: #f0f1f5;
  box-shadow: 0 0 0 2px rgba(118, 70, 221, .12);
}

.is-light-preview .posuv-count-row,
.is-light-preview .posuv-switch-row,
.is-light-preview .posuv-param-head,
.is-light-preview .posuv-subcontrol > span,
.is-light-preview .posuv-sidebar-right .posuv-wide-btn,
.is-light-preview .posuv-keyframe-row-label > span {
  color: #676771;
}

.is-light-preview .posuv-playback .posuv-icon-btn {
  color: #414149;
  background: #f0f1f5;
}

.is-light-preview .posuv-keyframes-toggle,
.is-light-preview .posuv-count-btn {
  color: #34343b;
  border-color: rgba(24, 24, 29, .13);
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 24, 29, .08);
}

.is-light-preview .posuv-timeline-time,
.is-light-preview .posuv-scrub-time {
  color: #676771;
}

.is-light-preview .posuv-scrub-wrap > input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #2087ff 0, #2087ff var(--posuv-scrub-progress), #c7cad2 var(--posuv-scrub-progress), #c7cad2 100%);
}

.is-light-preview .posuv-text-card {
  color: #28282f;
  border-color: rgba(24, 24, 29, .18);
  background: #fff;
}

.is-light-preview .posuv-text-card-head {
  border-color: rgba(24, 24, 29, .11);
}

.is-light-preview .posuv-text-card-title,
.is-light-preview .posuv-text-card-head button,
.is-light-preview .posuv-text-color-row,
.is-light-preview .posuv-text-control-head,
.is-light-preview .posuv-text-dragged-note {
  color: #5e5e68 !important;
}

.is-light-preview .posuv-text-card textarea,
.is-light-preview .posuv-text-color-row input[type="text"],
.is-light-preview .posuv-text-color-row input[type="color"],
.is-light-preview .posuv-text-card select,
.is-light-preview .posuv-text-card input[type="number"] {
  color: #28282f;
  border-color: rgba(24, 24, 29, .13);
  background-color: #f0f1f5 !important;
}

.is-light-preview .posuv-text-card select option {
  color: #28282f;
  background: #fff;
}

@media (max-width: 900px) {
  .posuv-shell {
    grid-template-rows: 48px minmax(0, 1fr) 52px;
  }

  .posuv-topbar {
    min-height: 48px;
    padding: 0 8px;
  }

  .posuv-brand {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .posuv-brand-logo {
    width: 30px;
    height: 30px;
  }

  .posuv-project-title {
    display: none;
  }

  .posuv-stage {
    width: min(100%, calc((100vh - 192px) * var(--posuv-aspect)));
    width: min(100%, calc((100dvh - 192px) * var(--posuv-aspect)));
  }

  .is-keyframes-open .posuv-stage {
    width: min(100%, calc((100vh - 192px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
    width: min(100%, calc((100dvh - 192px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .posuv-editor *,
  .posuv-editor *::before,
  .posuv-editor *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Dark editor shell. */
.posuv-editor {
  --posuv-ink: #f5f5f7;
  --posuv-ink-2: #b5b5ba;
  --posuv-ink-3: #77777d;
  --posuv-paper: #1c1c1e;
  --posuv-panel: #212121;
  --posuv-panel-2: #29292c;
  --posuv-white: #2b2b2e;
  --posuv-accent: #b668f2;
  --posuv-accent-2: #7646dd;
  --posuv-line: rgba(255, 255, 255, .08);
  --posuv-line-strong: rgba(255, 255, 255, .17);
  color: var(--posuv-ink);
  background: var(--posuv-paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
}

.posuv-shell {
  grid-template-rows: 48px minmax(0, 1fr);
  background: #1c1c1e;
}

.posuv-topbar {
  grid-template-columns: minmax(330px, 1fr) auto minmax(330px, 1fr);
  min-height: 48px;
  padding: 0 12px;
  border-color: var(--posuv-line);
  background: #212121;
  backdrop-filter: none;
}

.posuv-brand-zone {
  gap: 10px;
}

.posuv-brand-zone > .posuv-icon-btn {
  flex: 0 0 32px;
}

.posuv-brand {
  gap: 8px;
}

.posuv-brand-logo {
  flex-basis: 27px;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.posuv-brand strong {
  color: #f5f5f7;
  font: 700 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.025em;
}

.posuv-brand small {
  margin-top: 3px;
  color: #8d8d93;
  font-size: 7px;
  letter-spacing: .13em;
}

.posuv-top-divider {
  display: block;
  width: 1px;
  height: 25px;
  background: var(--posuv-line);
}

.posuv-projects-btn,
.posuv-account-btn,
.posuv-theme-btn {
  height: 32px;
  color: #b8b8bd;
  border-color: transparent;
  background: transparent;
  font-size: 11px;
}

.posuv-projects-btn {
  padding: 0 9px;
}

.posuv-projects-btn:hover,
.posuv-account-btn:hover,
.posuv-theme-btn:hover {
  color: #fff;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-theme-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.posuv-project-title input {
  width: min(390px, 36vw);
  height: 32px;
  padding: 0 12px;
  color: #f5f5f7;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.posuv-project-title input:hover,
.posuv-project-title input:focus {
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-top-actions {
  gap: 7px;
}

.posuv-icon-btn,
.posuv-save-btn,
.posuv-export-btn,
.posuv-account-btn {
  height: 32px;
  border-color: var(--posuv-line);
  background: #252527;
}

.posuv-template-controls [hidden] {
  display: none !important;
}

.posuv-editor[data-bg-mode="color"] .posuv-color-fields label:nth-child(2),
.posuv-editor[data-bg-mode="image"] .posuv-color-fields {
  display: none !important;
}

.posuv-keyframe-empty[hidden],
.posuv-export-progress[hidden] {
  display: none !important;
}

.posuv-select-row {
  display: grid;
  gap: 7px;
  color: #a3a3a8;
  font-size: 10px;
}

.posuv-select-row select {
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--posuv-line);
  border-radius: 7px;
  color: #e8e8eb;
  background: #29292c;
  font: inherit;
}

.posuv-icon-btn {
  width: 32px;
  color: #7f7f84;
  border-color: transparent;
  background: transparent;
}

.posuv-icon-btn:hover {
  color: #fff;
  border-color: var(--posuv-line);
  background: #2a2a2d;
}

.posuv-export-btn {
  padding: 0 16px;
  border: 0;
  color: #fff !important;
  background: linear-gradient(135deg, #7646dd, #4778ff);
  box-shadow: 0 5px 16px rgba(71, 120, 255, .24), inset 0 1px rgba(255,255,255,.22);
  font-size: 11px;
}

.posuv-account-btn {
  padding: 0 13px;
  color: #dddde0;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-workspace {
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  background: #1c1c1e;
}

.posuv-sidebar {
  color: #f5f5f7;
  background: #212121;
}

.posuv-sidebar-left {
  border-color: var(--posuv-line);
}

.posuv-sidebar-right {
  border-color: var(--posuv-line);
}

.posuv-sidebar-left .posuv-sidebar-head,
.posuv-sidebar-left .posuv-search,
.posuv-sidebar-left .posuv-original-note,
.posuv-sidebar-right > .posuv-sidebar-head {
  display: none !important;
}

.posuv-template-list {
  padding: 12px 12px 28px;
}

.posuv-template-group + .posuv-template-group {
  margin-top: 26px;
}

.posuv-template-group h3 {
  position: sticky;
  top: -12px;
  z-index: 3;
  margin: 0 -2px 12px;
  padding: 11px 4px 7px;
  color: #77777d;
  background: linear-gradient(#212121 78%, rgba(33,33,33,0));
  font-size: 9px;
  letter-spacing: .15em;
}

.posuv-template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 10px;
}

.posuv-template-card {
  padding: 4px;
  border-radius: 12px;
  color: #f2f2f4;
}

.posuv-template-card:hover {
  border-color: rgba(255,255,255,.18);
  background: #29292c;
  transform: none;
}

.posuv-template-card.is-active {
  border-color: #b8b8bd;
  background: #2a2a2d;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px rgba(118,70,221,.38);
}

.posuv-template-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #1c1c1e;
}

.posuv-template-thumb::before,
.posuv-template-thumb::after,
.posuv-template-thumb > i,
.posuv-template-thumb > b,
.posuv-template-thumb > em {
  display: none !important;
}

.posuv-template-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.posuv-template-thumb u {
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  color: #fff;
  background: #2087ff;
  font-size: 7px;
  letter-spacing: .02em;
}

.posuv-template-card > strong {
  margin: 7px 2px 0;
  color: #ededf0;
  font-size: 10px;
  font-weight: 650;
}

.posuv-template-card > small {
  display: none;
}

.posuv-main {
  position: relative;
  grid-template-rows: minmax(0, 1fr) 56px;
  background-color: #1c1c1e;
  background-image: radial-gradient(rgba(255,255,255,.09) .65px, transparent .65px);
  background-size: 16px 16px;
}

.posuv-stage-wrap {
  padding: 32px;
  transition: padding-bottom .2s ease;
}

.is-keyframes-open .posuv-stage-wrap {
  padding-bottom: calc(32px + var(--posuv-keyframe-drawer-height, 100px));
}

.is-keyframes-open .posuv-stage {
  width: min(100%, calc((100vh - 168px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
  width: min(100%, calc((100dvh - 168px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
}

.posuv-stage-meta {
  display: none;
}

.posuv-stage {
  width: min(100%, calc((100vh - 168px) * var(--posuv-aspect)));
  max-height: 100%;
  border-color: var(--posuv-line);
  border-radius: 16px;
  background: #101014;
  box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.055);
}

.posuv-stage-shine {
  background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 28%, transparent 76%, rgba(255,255,255,.018));
}

.posuv-timeline {
  grid-template-columns: auto minmax(100px, 1fr) auto;
  height: 56px;
  gap: 10px;
  padding: 0 16px;
  border-color: var(--posuv-line);
  background: #212121;
}

.posuv-playback .posuv-icon-btn {
  width: 34px;
  height: 34px;
  color: #d7d7db;
  background: #29292c;
}

.posuv-playback .is-filled {
  color: #fff;
  border-color: #29292c;
  background: #29292c;
}

.posuv-scrub-wrap > input,
.posuv-param input[type="range"] {
  height: 4px;
  background: linear-gradient(90deg, #4778ff, #2087ff);
}

.posuv-scrub-wrap > input::-webkit-slider-thumb,
.posuv-param input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  background: #2087ff;
  box-shadow: none;
}

.posuv-time {
  color: #8c8c91;
  font-size: 10px;
}

.posuv-time b {
  color: #b8b8bd;
}

.posuv-keyframes-toggle {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 15px;
  border: 1px solid var(--posuv-line);
  border-radius: 999px;
  color: #dedee1;
  background: #29292c;
  font-size: 10px;
  cursor: pointer;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(0,0,0,.24);
}

.posuv-keyframes-toggle span {
  transition: transform .18s ease;
}

.is-keyframes-open .posuv-keyframes-toggle {
  bottom: calc(56px + var(--posuv-keyframe-drawer-height, 100px) - 15px);
}

.posuv-keyframes-toggle b {
  color: #2087ff;
  font-size: 10px;
}

.posuv-keyframes-toggle b[hidden] {
  display: none;
}

.is-keyframes-open .posuv-keyframes-toggle span {
  transform: rotate(180deg);
}

.posuv-keyframes-drawer {
  position: absolute;
  right: 0;
  bottom: 56px;
  left: 0;
  z-index: 12;
  height: var(--posuv-keyframe-drawer-height, 100px);
  padding: 0;
  border-top: 1px solid var(--posuv-line);
  color: #b8b8bd;
  background: rgba(28,28,30,.98);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.is-keyframes-open .posuv-keyframes-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.posuv-keyframes-drawer header {
  display: flex;
  align-items: center;
  width: 172px;
  height: 40px;
  padding: 0 16px;
  border-right: 1px solid var(--posuv-line);
  border-bottom: 1px solid var(--posuv-line);
  font-size: 9px;
  text-transform: uppercase;
}

.posuv-keyframes-drawer header > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.posuv-keyframes-drawer header b {
  color: #eeeef0;
}

.posuv-keyframes-drawer header i {
  color: #77777d;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
}

.posuv-keyframe-ruler {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 18px;
  left: 190px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  height: 40px;
  margin: 0;
  padding-top: 10px;
  border-bottom: 1px solid var(--posuv-line);
  color: #626267;
  font-size: 8px;
}

.posuv-keyframe-ruler > span {
  position: relative;
  z-index: 2;
  justify-self: center;
}

.posuv-keyframe-ruler > span:first-child {
  justify-self: start;
}

.posuv-keyframe-ruler > span:last-of-type {
  justify-self: end;
}

.posuv-keyframe-ruler::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: auto;
  left: var(--posuv-playhead-progress, 0%);
  width: 1px;
  height: var(--posuv-keyframe-drawer-height, 100px);
  background: #2087ff;
  content: '';
  pointer-events: none;
}

.posuv-keyframe-ruler > b {
  position: absolute;
  z-index: 4;
  top: 2px;
  left: var(--posuv-playhead-progress, 0%);
  min-width: 34px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #2087ff;
  font-size: 9px;
  font-weight: 650;
  line-height: 20px;
  text-align: center;
  text-transform: none;
  transform: translateX(-50%);
  box-shadow: 0 2px 9px rgba(32,135,255,.25);
}

.posuv-keyframe-rows {
  max-height: 200px;
  margin: 0;
  overflow-y: auto;
  border-bottom: 1px solid var(--posuv-line);
}

.posuv-keyframe-row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 40px;
}

.posuv-keyframe-row-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 16px;
  border-right: 1px solid var(--posuv-line);
  font-size: 9px;
}

.posuv-keyframe-row-label > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #aaaab0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-keyframe-row-label b {
  padding: 2px 5px;
  border-radius: 4px;
  color: #d89a22;
  background: rgba(216,154,34,.14);
  font-size: 8px;
  font-weight: 600;
}

.posuv-keyframe-row-label button {
  width: 20px;
  height: 20px;
  border: 0;
  color: #67676d;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
}

.posuv-keyframe-row-label:hover button,
.posuv-keyframe-row-label button:focus-visible,
.posuv-keyframe-row-label button:hover {
  color: #eeeef0;
  opacity: 1;
}

.posuv-keyframe-lane {
  position: relative;
  min-width: 0;
  height: 40px;
  margin: 0 18px;
}

.posuv-keyframe-lane::after {
  display: none;
}

.posuv-keyframe-segment {
  position: absolute;
  top: 50%;
  height: 3px;
  border-radius: 5px;
  background: rgba(32,135,255,.42);
  transform: translateY(-50%);
}

.posuv-drawer-keyframe {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
  line-height: 20px;
  cursor: ew-resize;
  transform: translate(-50%, -50%);
}

.posuv-drawer-keyframe::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #2087ff;
  background: #2087ff;
  content: '';
  transform: translate(-50%, -50%) rotate(45deg);
}

.posuv-drawer-keyframe.is-selected {
  filter: drop-shadow(0 0 4px #2087ff);
}

.posuv-drawer-keyframe.is-selected::before {
  border: 2px solid #fff;
  background: #2087ff;
}

.posuv-keyframe-empty {
  display: grid;
  place-items: center;
  height: 60px;
  color: #65656b;
  font-size: 10px;
}

.has-keyframes .posuv-keyframe-empty {
  display: none;
}

.is-keyframes-open .posuv-keyframe-marker {
  display: none;
}

.posuv-timing-mode {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #8f8f95;
  font-size: 10px;
}

.posuv-timing-mode .posuv-segmented {
  margin: 0;
}

.posuv-inspector-scroll {
  padding: 0 0 32px;
}

.posuv-section {
  border-color: var(--posuv-line);
}

.posuv-section:first-child {
  border-top: 0;
}

.posuv-section-toggle {
  height: 49px;
  padding: 0 16px;
  color: #9b9ba1;
  background: #212121;
  font-size: 9px;
  letter-spacing: .13em;
}

.posuv-section-toggle:hover {
  color: #f5f5f7;
}

.posuv-section-body {
  padding: 3px 16px 17px;
}

.posuv-aspects {
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: #29292c;
}

.posuv-aspect {
  min-height: 56px;
  padding: 8px 1px 5px;
  color: #77777d;
  border-radius: 8px;
}

.posuv-aspect:hover,
.posuv-aspect.is-active {
  color: #f5f5f7;
  border-color: rgba(255,255,255,.12);
  background: #242426;
}

.posuv-aspect small {
  font-size: 7px;
}

.posuv-count-row,
.posuv-switch-row {
  color: #aaaab0;
  font-size: 10px;
}

.posuv-count-row button {
  color: #b8b8bd;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-media-list {
  gap: 7px;
  max-height: 455px;
}

.posuv-media-slot {
  grid-template-columns: 20px minmax(0, 1fr) 22px;
  min-height: 56px;
  border-color: var(--posuv-line);
  border-radius: 9px;
  background: #232325;
}

.posuv-drag,
.posuv-media-remove {
  color: #66666b;
}

.posuv-media-preview {
  width: 56px;
  height: 40px;
  color: #74747a;
  border-color: var(--posuv-line);
  background: #2b2b2e;
}

.posuv-media-copy strong {
  color: #e5e5e8;
  font-size: 10px;
}

.posuv-media-copy small {
  color: #6f6f75;
  font-size: 8px;
}

.posuv-wide-btn {
  color: #aaaab0;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-wide-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.posuv-param-head,
.posuv-subcontrol > span {
  color: #aaaab0;
}

.posuv-param-head output {
  color: #e4e4e7;
}

.posuv-presets button,
.posuv-ratio-grid button,
.posuv-section textarea,
.posuv-inline-fields label {
  color: #b8b8bd;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-presets button:hover,
.posuv-ratio-grid button:hover,
.posuv-ratio-grid button.is-active,
.posuv-motion-grid button:hover,
.posuv-motion-grid button.is-active {
  color: #fff;
  border-color: #4778ff;
  background: #4778ff;
}

.posuv-motion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 7px;
}

.posuv-motion-grid button {
  min-width: 0;
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid var(--posuv-line);
  border-radius: 7px;
  color: #8d8d93;
  background: #29292c;
  font-size: 8px;
  line-height: 1.1;
  cursor: pointer;
}

.posuv-switch-row i {
  background: #444449;
}

.posuv-switch-row input:checked + i {
  background: #4778ff;
}

.posuv-segmented {
  background: #29292c;
}

.posuv-segmented button.is-active {
  color: #fff;
  background: #3a3a3e;
}

.posuv-projects-dialog,
.posuv-export-card,
.posuv-projects-nav {
  color: #f5f5f7;
  background: #212121;
}

.posuv-projects-main {
  background-color: #1c1c1e;
  background-image: radial-gradient(rgba(255,255,255,.08) .65px, transparent .65px);
}

.posuv-project-card,
.posuv-project-card-body button,
.posuv-dialog-close,
.posuv-export-summary > span,
.posuv-export-options button {
  color: #eeeef0;
  border-color: var(--posuv-line);
  background: #29292c;
}

.posuv-project-card-body input {
  color: #eeeef0;
}

.posuv-toast {
  color: #fff;
  background: #29292c;
}

/* 3.4 — interaction hardening and roomier click targets */
.posuv-count-row button {
  width: 30px;
  height: 30px;
}

.posuv-media-slot {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  padding: 5px 6px;
}

.posuv-drag,
.posuv-media-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
}

.posuv-presets {
  gap: 7px;
  margin-top: 12px;
}

.posuv-presets button,
.posuv-ratio-grid button,
.posuv-segmented button,
.posuv-motion-grid button {
  min-height: 32px;
}

.posuv-switch-row {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 5px 0;
}

.posuv-switch-row i {
  flex: 0 0 36px;
  width: 36px;
  height: 21px;
}

.posuv-switch-row i::after {
  width: 15px;
  height: 15px;
}

.posuv-switch-row input:checked + i::after {
  transform: translateX(15px);
}

.posuv-inline-fields {
  gap: 10px;
  margin-top: 11px;
}

.posuv-inline-fields label {
  height: 40px;
}

.posuv-inline-fields input[type="number"] {
  min-height: 30px;
}

.posuv-inline-fields input[type="color"] {
  width: 30px;
  height: 30px;
}

.posuv-keyframe {
  width: 28px;
  height: 28px;
}

.posuv-scrub-wrap > input,
.posuv-param input[type="range"] {
  height: 20px;
  background: transparent;
}

.posuv-scrub-wrap > input::-webkit-slider-runnable-track,
.posuv-param input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4778ff, #b668f2);
}

.posuv-scrub-wrap > input::-moz-range-track,
.posuv-param input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4778ff, #b668f2);
}

/* 3.5 — compact inspector density and text layers */
.posuv-sidebar-right .posuv-inspector-scroll {
  padding-bottom: 24px;
}

.posuv-sidebar-right .posuv-section-toggle {
  height: 40px;
  padding: 0 14px;
  font-size: 9px;
  letter-spacing: .13em;
}

.posuv-sidebar-right .posuv-section-body {
  padding: 0 14px 14px;
}

.posuv-sidebar-right .posuv-count-row {
  min-height: 30px;
  margin-bottom: 8px;
}

.posuv-sidebar-right .posuv-count-row button {
  width: 26px;
  height: 26px;
}

.posuv-sidebar-right .posuv-media-list {
  gap: 6px;
}

.posuv-sidebar-right .posuv-media-slot {
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  min-height: 54px;
  padding: 3px 5px;
  border-radius: 9px;
}

.posuv-sidebar-right .posuv-drag,
.posuv-sidebar-right .posuv-media-remove {
  width: 22px;
  height: 30px;
}

.posuv-sidebar-right .posuv-media-preview {
  width: 54px;
  height: 40px;
}

.posuv-sidebar-right .posuv-wide-btn {
  min-height: 30px;
  margin-top: 9px;
  padding: 5px 10px;
  font-size: 10px;
}

.posuv-duration .posuv-param-head {
  margin: 0 0 7px;
}

.posuv-duration .posuv-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 3px;
  border-radius: 8px;
  background: #29292c;
}

.posuv-duration .posuv-presets button {
  min-height: 28px;
  padding: 3px 1px;
  border-color: transparent;
  border-radius: 7px;
  color: #96969c;
  background: transparent;
  font-size: 10px;
}

.posuv-duration .posuv-presets button:hover,
.posuv-duration .posuv-presets button.is-active {
  color: #fff;
  border-color: #49494e;
  background: #242426;
}

.posuv-duration > input[type="range"],
.posuv-param input[type="range"],
.posuv-text-range input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.posuv-duration > input[type="range"]::-webkit-slider-runnable-track,
.posuv-param input[type="range"]::-webkit-slider-runnable-track,
.posuv-text-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: #39393d;
}

.posuv-duration > input[type="range"]::-webkit-slider-thumb,
.posuv-param input[type="range"]::-webkit-slider-thumb,
.posuv-text-range input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 8px;
  appearance: none;
  background:
    linear-gradient(90deg, transparent 8px, #77777d 8px, #77777d 10px, transparent 10px, transparent 12px, #77777d 12px, #77777d 14px, transparent 14px),
    #f7f7f8;
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}

.posuv-duration > input[type="range"]::-moz-range-track,
.posuv-param input[type="range"]::-moz-range-track,
.posuv-text-range input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: #39393d;
}

.posuv-duration > input[type="range"]::-moz-range-thumb,
.posuv-param input[type="range"]::-moz-range-thumb,
.posuv-text-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 14px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f8;
}

.posuv-text-section-body {
  padding-top: 0 !important;
}

.posuv-text-layers {
  display: grid;
  gap: 9px;
}

.posuv-text-card {
  overflow: hidden;
  border: 1px solid #55555a;
  border-radius: 8px;
  background: #212123;
}

.posuv-text-card.is-active {
  border-color: #8b8b91;
}

.posuv-text-card-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid #38383c;
}

.posuv-text-card.is-collapsed .posuv-text-card-head {
  border-bottom: 0;
}

.posuv-text-card-head button {
  border: 0;
  color: #aaaab0;
  background: transparent;
  cursor: pointer;
}

.posuv-text-collapse {
  width: 22px;
  height: 28px;
  padding: 0;
  transition: transform .18s ease;
}

.posuv-text-card.is-collapsed .posuv-text-collapse {
  transform: rotate(180deg);
}

.posuv-text-card-title {
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  color: #ededf0 !important;
  font-size: 11px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-text-card-actions {
  display: flex;
  align-items: center;
  gap: 1px;
}

.posuv-text-card-actions button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  padding: 0;
  font-size: 13px;
}

.posuv-text-card-actions button:hover {
  color: #fff;
}

.posuv-text-card-body {
  display: grid;
  gap: 9px;
  padding: 9px;
}

.posuv-text-card.is-collapsed .posuv-text-card-body {
  display: none;
}

.posuv-text-card textarea {
  width: 100%;
  height: 64px;
  min-height: 64px;
  max-height: 120px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #414146;
  border-radius: 7px;
  color: #eeeeef;
  background: #29292c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  resize: vertical;
}

.posuv-text-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-text-color-row label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.posuv-text-color-row input[type="text"] {
  width: 76px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #414146;
  border-radius: 7px;
  color: #aaaab0;
  background: #29292c;
  text-align: right;
}

.posuv-text-color-row input[type="color"] {
  width: 38px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #414146;
  border-radius: 7px;
  background: #29292c;
  cursor: pointer;
}

.posuv-text-card select,
.posuv-text-card input[type="number"] {
  height: 34px;
  border: 1px solid #414146;
  border-radius: 7px;
  outline: 0;
  color: #e7e7e9;
  background: #29292c;
  box-shadow: none;
  font-size: 10px;
}

.posuv-text-card select {
  margin: 0;
  padding-right: 28px !important;
  appearance: none;
  background-color: #29292c !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #77777d 50%),
    linear-gradient(135deg, #77777d 50%, transparent 50%) !important;
  background-position:
    calc(100% - 14px) 14px,
    calc(100% - 10px) 14px !important;
  background-repeat: no-repeat !important;
  background-size: 4px 4px, 4px 4px !important;
}

/* Host-theme isolation for the editor's high-value actions and dialogs. */
.posuv-editor:not(.is-light-preview) .posuv-language select {
  color: #f5f5f7 !important;
  background-color: #29292c !important;
  border-color: rgba(255, 255, 255, .17) !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor:not(.is-light-preview) select {
  color: #eeeef0 !important;
  background-color: #29292c !important;
  border-color: #414146 !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor.is-light-preview select {
  color: #24242a !important;
  background-color: #fff !important;
  border-color: rgba(24, 24, 29, .2) !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor select:disabled {
  color: var(--posuv-ink-3) !important;
  opacity: .58;
}

.posuv-editor .posuv-brand,
.posuv-editor .posuv-brand:link,
.posuv-editor .posuv-brand:visited,
.posuv-editor .posuv-brand:hover,
.posuv-editor .posuv-brand:focus,
.posuv-editor .posuv-brand:focus-visible,
.posuv-editor .posuv-brand:active {
  background-color: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
}

.posuv-editor .posuv-export-btn,
.posuv-editor .posuv-export-btn:hover,
.posuv-editor .posuv-export-btn:focus,
.posuv-editor .posuv-export-btn:focus-visible,
.posuv-editor .posuv-export-btn:active {
  color: #fff !important;
  background-color: #6558ef !important;
  background-image: linear-gradient(135deg, #7646dd, #4778ff) !important;
  border-color: transparent !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor .posuv-export-btn:hover,
.posuv-editor .posuv-export-btn:focus-visible {
  background-image: linear-gradient(135deg, #8555e7, #5684ff) !important;
}

.posuv-editor .posuv-reset-demo,
.posuv-editor .posuv-reset-demo:hover,
.posuv-editor .posuv-reset-demo:focus,
.posuv-editor .posuv-reset-demo:focus-visible,
.posuv-editor .posuv-reset-demo:active {
  color: #f5f5f7 !important;
  background-color: #29292c !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, .17) !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor .posuv-account-btn,
.posuv-editor .posuv-account-btn:link,
.posuv-editor .posuv-account-btn:visited,
.posuv-editor .posuv-account-btn:hover,
.posuv-editor .posuv-account-btn:focus,
.posuv-editor .posuv-account-btn:focus-visible,
.posuv-editor .posuv-account-btn:active {
  color: #ededf0 !important;
  background-color: #29292c !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, .14) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor;
}

.posuv-editor .posuv-account-btn:hover,
.posuv-editor .posuv-account-btn:focus-visible {
  color: #fff !important;
  background-color: #303033 !important;
  border-color: rgba(182, 104, 242, .48) !important;
}

.posuv-editor .posuv-new-project,
.posuv-editor .posuv-new-project:hover,
.posuv-editor .posuv-new-project:focus,
.posuv-editor .posuv-new-project:focus-visible,
.posuv-editor .posuv-new-project:active {
  color: #fff !important;
  background-color: #8f4de5 !important;
  background-image: linear-gradient(135deg, #b668f2, #7646dd) !important;
  border-color: transparent !important;
  -webkit-text-fill-color: #fff !important;
}

.posuv-editor .posuv-new-project:hover,
.posuv-editor .posuv-new-project:focus-visible {
  background-image: linear-gradient(135deg, #c57afb, #8250e8) !important;
}

.posuv-editor.is-light-preview .posuv-language select,
.posuv-editor.is-light-preview .posuv-reset-demo,
.posuv-editor.is-light-preview .posuv-reset-demo:hover,
.posuv-editor.is-light-preview .posuv-reset-demo:focus-visible {
  color: #171319 !important;
  background-color: #fff !important;
  border-color: rgba(24, 24, 29, .2) !important;
}

.posuv-editor.is-light-preview .posuv-account-btn,
.posuv-editor.is-light-preview .posuv-account-btn:link,
.posuv-editor.is-light-preview .posuv-account-btn:visited,
.posuv-editor.is-light-preview .posuv-account-btn:hover,
.posuv-editor.is-light-preview .posuv-account-btn:focus,
.posuv-editor.is-light-preview .posuv-account-btn:focus-visible,
.posuv-editor.is-light-preview .posuv-account-btn:active {
  color: #292930 !important;
  background-color: #f0f1f5 !important;
  background-image: none !important;
  border-color: rgba(24, 24, 29, .16) !important;
}

.posuv-editor.is-light-preview .posuv-account-btn:hover,
.posuv-editor.is-light-preview .posuv-account-btn:focus-visible {
  color: #17171b !important;
  background-color: #fff !important;
  border-color: rgba(118, 70, 221, .4) !important;
}

.posuv-text-card select option {
  color: #e7e7e9;
  background: #29292c;
}

.posuv-text-card input[type="number"] {
  appearance: textfield;
}

.posuv-text-card input[type="number"]::-webkit-inner-spin-button,
.posuv-text-card input[type="number"]::-webkit-outer-spin-button,
.posuv-sidebar-right .posuv-inline-fields input[type="number"]::-webkit-inner-spin-button,
.posuv-sidebar-right .posuv-inline-fields input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.posuv-text-full-select {
  width: 100%;
  padding: 0 9px;
}

.posuv-text-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
}

.posuv-text-weight-size > select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  box-sizing: border-box;
}

.posuv-text-weight-size > label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  height: 34px;
  border: 1px solid #414146;
  border-radius: 7px;
  background: #29292c;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.posuv-text-field-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-bottom: -3px;
  color: #aaaab0;
  font-size: 9px;
  line-height: 1.2;
}

.posuv-text-field-labels > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-text-weight-size input {
  width: 100%;
  min-width: 0;
  padding: 0 4px;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  text-align: center;
}

.posuv-text-weight-size label > span {
  color: #85858b;
  font-size: 9px;
}

.posuv-text-keyframe {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: #77777d;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.posuv-text-keyframe:hover {
  color: #4778ff;
}

.posuv-text-keyframe.is-animated {
  color: #2087ff;
  font-size: 13px;
}

.posuv-text-keyframe.is-current {
  color: #fff;
  filter: drop-shadow(0 0 3px #2087ff);
}

.posuv-text-range > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-text-range output {
  color: #929298;
  font-size: 10px;
}

.posuv-text-range input[type="range"] {
  margin-top: 3px;
}

.posuv-text-labelled {
  display: grid;
  gap: 5px;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-text-labelled select {
  width: 100%;
  padding: 0 9px;
}

.posuv-text-uppercase {
  min-height: 30px;
  margin: -1px 0 0;
  padding: 2px 0;
}

.posuv-text-uppercase i {
  width: 34px;
  height: 19px;
}

.posuv-text-uppercase i::after {
  width: 13px;
  height: 13px;
}

.posuv-text-spacing > label {
  display: grid;
  gap: 5px;
  color: #aaaab0;
  font-size: 9px;
}

.posuv-text-spacing > label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 34px;
  border: 1px solid #414146;
  border-radius: 7px;
  background: #29292c;
}

.posuv-text-spacing input {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 0 !important;
  background: transparent !important;
}

.posuv-text-spacing i {
  color: #77777d;
  font-style: normal;
  font-size: 9px;
}

.posuv-text-align {
  display: grid;
  gap: 5px;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-text-align > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 7px;
  background: #29292c;
}

.posuv-text-align button {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #96969c;
  background: transparent;
  cursor: pointer;
}

.posuv-text-align button.is-active {
  color: #fff;
  border-color: #49494e;
  background: #242426;
}

.posuv-text-align button i::before {
  content: "≡";
  display: block;
  font-style: normal;
  font-size: 19px;
  line-height: 1;
}

.posuv-text-align button[aria-label="Align left"] i {
  transform: translateX(-4px);
}

.posuv-text-align button[aria-label="Align right"] i {
  transform: translateX(4px);
}

.posuv-text-position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.posuv-text-position > div:first-child {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 4px;
}

.posuv-position-grid button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #29292c;
  cursor: pointer;
}

.posuv-position-grid button:hover,
.posuv-position-grid button.is-active {
  background: #1687ff;
}

.posuv-add-text {
  min-height: 34px !important;
  margin-top: 10px !important;
}

.posuv-file-note {
  display: none;
}

.posuv-sidebar-right .posuv-segmented button,
.posuv-sidebar-right .posuv-ratio-grid button,
.posuv-sidebar-right .posuv-motion-grid button {
  min-height: 28px;
}

.posuv-sidebar-right .posuv-inline-fields {
  gap: 7px;
  margin-top: 8px;
}

.posuv-sidebar-right .posuv-inline-fields label {
  height: 34px;
}

.posuv-text-selection {
  position: absolute;
  z-index: 6;
  min-width: 18px;
  min-height: 12px;
  border: 1.5px solid #1687ff;
  cursor: move;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(22,135,255,.12);
  outline: 0;
}

.posuv-text-selection[hidden] {
  display: none;
}

.posuv-text-selection > span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  background: #1687ff;
  touch-action: none;
}

.posuv-text-selection > span:nth-of-type(1) { top: -4px; left: -4px; cursor: nwse-resize; }
.posuv-text-selection > span:nth-of-type(2) { top: -4px; right: -4px; cursor: nesw-resize; }
.posuv-text-selection > span:nth-of-type(3) { bottom: -4px; left: -4px; cursor: nesw-resize; }
.posuv-text-selection > span:nth-of-type(4) { right: -4px; bottom: -4px; cursor: nwse-resize; }

.posuv-text-rotate-handle {
  position: absolute;
  top: -21px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #1687ff;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
}

.posuv-text-selection.is-rotate .posuv-text-rotate-handle {
  cursor: grabbing;
}

.posuv-text-selection.is-transforming {
  user-select: none;
}

.posuv-text-rotate-handle::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 1px;
  height: 12px;
  background: #1687ff;
}

.is-light-preview {
  filter: invert(.91) hue-rotate(180deg);
}

.is-light-preview canvas,
.is-light-preview img,
.is-light-preview video {
  filter: invert(1) hue-rotate(180deg);
}

/* 3.7 — compact reference inspector */
.posuv-sidebar-right .posuv-section-toggle {
  color: #8b8b91;
  font-weight: 750;
}

.posuv-sidebar-right .posuv-wide-btn {
  color: #aaaab0;
  font-weight: 500;
}

.posuv-template-controls .posuv-section-body {
  padding-bottom: 16px;
}

.posuv-template-controls .posuv-param {
  display: grid;
  grid-template-columns: 26px minmax(62px, .9fr) minmax(78px, 1.45fr) minmax(42px, auto);
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin: 0;
}

.posuv-template-controls .posuv-param + .posuv-param {
  margin-top: 0;
}

.posuv-template-controls .posuv-param-head,
.posuv-template-controls .posuv-param-head > span {
  display: contents;
}

.posuv-template-controls .posuv-param-head label {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #aaaab0;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-template-controls .posuv-param-head output {
  grid-column: 4;
  min-width: 42px;
  color: #aaaab0;
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

.posuv-template-controls .posuv-param .posuv-keyframe {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  color: #55555a;
  font-size: 18px;
}

.posuv-template-controls .posuv-param input[type="range"] {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
}

.posuv-text-range {
  display: grid;
  grid-template-columns: 26px minmax(62px, auto) minmax(78px, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.posuv-text-range > div {
  display: contents;
}

.posuv-text-range .posuv-text-keyframe {
  grid-column: 1;
  grid-row: 1;
}

.posuv-text-range > div > span {
  grid-column: 2;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-text-range input[type="range"] {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.posuv-text-range output {
  grid-column: 4;
  grid-row: 1;
  min-width: 42px;
  text-align: right;
}

.posuv-text-card-head svg,
.posuv-text-align svg {
  width: 15px;
  height: 15px;
}

.posuv-text-collapse svg {
  width: 14px;
  height: 14px;
}

.posuv-text-align button i::before {
  content: none;
}

.posuv-text-align button i {
  display: grid;
  place-items: center;
  transform: none !important;
}

.posuv-text-position-note {
  margin: 2px 0 0;
  color: #77777d;
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}

.posuv-template-controls .posuv-card-ratio-control {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--posuv-line);
}

.posuv-template-controls .posuv-subcontrol {
  margin-bottom: 10px;
}

.posuv-template-controls .posuv-subcontrol > span {
  margin-bottom: 5px;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-template-controls .posuv-ratio-grid,
.posuv-template-controls .posuv-motion-grid {
  display: grid;
  gap: 0;
  padding: 3px;
  border-radius: 8px;
  background: #29292c;
}

.posuv-template-controls .posuv-ratio-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.posuv-template-controls .posuv-motion-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.is-globe-template .posuv-template-controls .posuv-sphere-motion .posuv-motion-grid,
.is-globe-template .posuv-template-controls .posuv-sphere-direction .posuv-motion-grid {
  width: 60%;
}

.is-globe-template .posuv-template-controls .posuv-sphere-motion .posuv-motion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.posuv-template-controls .posuv-ratio-grid button,
.posuv-template-controls .posuv-motion-grid button {
  min-width: 0;
  min-height: 28px;
  padding: 3px 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #96969c;
  background: transparent;
  font-size: 8px;
  line-height: 1.1;
}

.posuv-template-controls .posuv-ratio-grid button:hover,
.posuv-template-controls .posuv-ratio-grid button.is-active,
.posuv-template-controls .posuv-motion-grid button:hover,
.posuv-template-controls .posuv-motion-grid button.is-active {
  color: #fff;
  border-color: #49494e;
  background: #242426;
}

.posuv-color-fields {
  grid-template-columns: 1fr 1fr;
}

.posuv-editor[data-bg-mode="color"] .posuv-color-fields {
  grid-template-columns: 1fr;
}

.posuv-color-fields label {
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.posuv-color-fields label > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.posuv-color-fields input[type="text"] {
  width: 76px;
  height: 32px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid #414146;
  border-radius: 7px;
  outline: 0;
  color: #aaaab0;
  background: #29292c;
  font-size: 10px;
  text-align: right;
}

.posuv-color-fields input[type="color"] {
  flex: 0 0 38px;
  width: 38px !important;
  height: 32px !important;
  border: 1px solid #414146 !important;
  border-radius: 7px !important;
  background: #29292c !important;
}

.posuv-editor[data-bg-mode="color"] .posuv-background-position,
.posuv-editor[data-bg-mode="gradient"] .posuv-background-position {
  display: none !important;
}

/* 3.8 — reference timeline: visible played/unplayed segments and blue thumb */
.posuv-scrub-wrap > input[type="range"] {
  --posuv-scrub-progress: 0%;
  height: 20px;
  margin: 0;
  background: transparent;
}

.posuv-scrub-wrap > input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #2087ff 0,
    #2087ff var(--posuv-scrub-progress),
    #eeeef0 var(--posuv-scrub-progress),
    #eeeef0 100%
  );
}

.posuv-scrub-wrap > input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #2087ff;
  box-shadow: none;
}

.posuv-scrub-wrap > input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: #eeeef0;
}

.posuv-scrub-wrap > input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: #2087ff;
}

.posuv-scrub-wrap > input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #2087ff;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .posuv-workspace {
    grid-template-columns: 218px minmax(0, 1fr) 288px;
  }
  .posuv-topbar {
    grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  }
}

@media (max-width: 900px) {
  .posuv-shell {
    grid-template-rows: 48px minmax(0, 1fr) 52px;
  }
  .posuv-topbar {
    grid-template-columns: minmax(150px, 1fr) auto;
    height: 48px;
  }
  .posuv-brand > span:last-child,
  .posuv-top-divider,
  .posuv-projects-btn span,
  .posuv-account-btn span {
    display: none;
  }
  .posuv-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .posuv-sidebar {
    top: 48px;
    bottom: 52px;
  }
  .posuv-stage-wrap {
    padding: 22px 14px;
  }
  .posuv-stage {
    width: min(100%, calc((100vh - 192px) * var(--posuv-aspect)));
  }
  .is-keyframes-open .posuv-stage {
    width: min(100%, calc((100vh - 192px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
    width: min(100%, calc((100dvh - 192px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
  }
  .posuv-mobile-nav {
    display: grid;
    height: 52px;
    color: #b8b8bd;
    border-color: var(--posuv-line);
    background: #212121;
  }
  .posuv-projects-dialog {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
  }
}

@media (max-width: 560px) {
  .posuv-brand-zone { gap: 4px; }
  .posuv-theme-btn { display: none; }
  .posuv-export-btn,
  .posuv-account-btn,
  .posuv-projects-btn {
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .posuv-keyframes-toggle {
    bottom: 48px;
  }
}

/* 4.2.1 final cascade — balanced brand header and true light/dark palettes */
.posuv-shell {
  grid-template-rows: 56px minmax(0, 1fr);
}

.posuv-topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  height: 56px;
  padding: 0 14px;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, .08);
  background: #212121;
}

.posuv-brand-zone,
.posuv-top-actions {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
}

.posuv-brand {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 11px;
  color: inherit;
  background: #101014;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
  text-decoration: none !important;
}

.posuv-brand:hover {
  border-color: rgba(182, 104, 242, .7);
  box-shadow: 0 0 0 3px rgba(182, 104, 242, .14), inset 0 1px rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.posuv-brand-logo {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Posuv uses the supplied wordmark as a single brand asset. */
.posuv-topbar .posuv-brand {
  flex: 0 0 148px;
  width: 148px;
  height: 44px;
  padding: 3px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.posuv-topbar .posuv-brand-logo {
  flex-basis: 140px;
  width: 140px;
  height: 34px;
  object-fit: contain;
}

.posuv-brand-logo-dark {
  display: none;
}

.is-light-preview .posuv-brand-logo-white {
  display: none;
}

.is-light-preview .posuv-brand-logo-dark {
  display: block;
}

.posuv-project-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(400px, 36vw);
  transform: translate(-50%, -50%);
}

.posuv-project-title input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  color: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #29292c;
  font-size: 13px;
  text-align: center;
}

.posuv-project-title input:hover,
.posuv-project-title input:focus {
  border-color: rgba(255, 255, 255, .15);
  background: #303033;
}

.posuv-account-btn {
  min-width: 66px;
  color: #ededf0;
  border-color: rgba(255, 255, 255, .1);
  background: #29292c;
}

.posuv-account-btn:hover {
  color: #fff;
  border-color: rgba(182, 104, 242, .42);
  background: #303033;
}

.posuv-stage {
  width: min(100%, calc((100vh - 184px) * var(--posuv-aspect)));
  width: min(100%, calc((100dvh - 184px) * var(--posuv-aspect)));
}

.is-keyframes-open .posuv-stage {
  width: min(100%, calc((100vh - 184px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
  width: min(100%, calc((100dvh - 184px - var(--posuv-keyframe-drawer-height, 100px)) * var(--posuv-aspect)));
}

.posuv-editor.is-light-preview,
.is-light-preview .posuv-shell,
.is-light-preview .posuv-workspace {
  --posuv-ink: #17171b;
  --posuv-ink-2: #50505a;
  --posuv-ink-3: #777780;
  --posuv-paper: #f2f3f7;
  --posuv-panel: #fff;
  --posuv-panel-2: #f0f1f5;
  --posuv-white: #fff;
  --posuv-line: rgba(24, 24, 29, .1);
  --posuv-line-strong: rgba(24, 24, 29, .2);
  color: #17171b;
  background: #f2f3f7;
  filter: none;
}

.is-light-preview canvas,
.is-light-preview img,
.is-light-preview video {
  filter: none;
}

.is-light-preview .posuv-topbar,
.is-light-preview .posuv-sidebar,
.is-light-preview .posuv-timeline,
.is-light-preview .posuv-keyframes-drawer,
.is-light-preview .posuv-projects-dialog,
.is-light-preview .posuv-export-card,
.is-light-preview .posuv-projects-nav,
.is-light-preview .posuv-mobile-nav {
  color: #24242a;
  border-color: rgba(24, 24, 29, .1);
  background: rgba(255, 255, 255, .98);
}

.is-light-preview .posuv-main,
.is-light-preview .posuv-projects-main {
  background-color: #eceef3;
  background-image: radial-gradient(rgba(24, 24, 29, .13) .65px, transparent .65px);
}

.is-light-preview .posuv-project-title input {
  color: #17171b;
  border-color: transparent;
  background: #f0f1f5;
}

.is-light-preview .posuv-project-title input:hover,
.is-light-preview .posuv-project-title input:focus {
  border-color: rgba(24, 24, 29, .18);
  background: #fff;
}

.is-light-preview .posuv-projects-btn,
.is-light-preview .posuv-theme-btn,
.is-light-preview .posuv-icon-btn {
  color: #5c5c66;
}

.is-light-preview .posuv-projects-btn:hover,
.is-light-preview .posuv-theme-btn:hover,
.is-light-preview .posuv-icon-btn:hover {
  color: #17171b;
  border-color: rgba(24, 24, 29, .16);
  background: #f0f1f5;
}

.is-light-preview .posuv-account-btn {
  color: #292930;
  border-color: rgba(24, 24, 29, .13);
  background: #f0f1f5;
}

.is-light-preview .posuv-account-btn:hover {
  color: #17171b;
  border-color: rgba(118, 70, 221, .34);
  background: #fff;
}

.is-light-preview .posuv-template-group h3,
.is-light-preview .posuv-section-toggle,
.is-light-preview .posuv-sidebar-left .posuv-sidebar-head {
  color: #66666f;
  background: #fff;
}

.is-light-preview .posuv-aspects,
.is-light-preview .posuv-segmented,
.is-light-preview .posuv-motion-grid button,
.is-light-preview .posuv-presets button,
.is-light-preview .posuv-ratio-grid button,
.is-light-preview .posuv-section textarea,
.is-light-preview .posuv-inline-fields label,
.is-light-preview .posuv-inline-fields input,
.is-light-preview .posuv-inline-template input,
.is-light-preview .posuv-select-row select,
.is-light-preview .posuv-color-fields input,
.is-light-preview .posuv-media-slot,
.is-light-preview .posuv-media-preview,
.is-light-preview .posuv-wide-btn,
.is-light-preview .posuv-project-card,
.is-light-preview .posuv-project-card-body button,
.is-light-preview .posuv-dialog-close,
.is-light-preview .posuv-export-summary > span,
.is-light-preview .posuv-export-options button {
  color: #4f4f58;
  border-color: rgba(24, 24, 29, .11);
  background: #f0f1f5;
}

.is-light-preview .posuv-aspect:hover,
.is-light-preview .posuv-aspect.is-active,
.is-light-preview .posuv-segmented button.is-active {
  color: #17171b;
  border-color: rgba(24, 24, 29, .18);
  background: #fff;
}

.is-light-preview .posuv-template-card,
.is-light-preview .posuv-template-card > strong,
.is-light-preview .posuv-media-copy strong,
.is-light-preview .posuv-param-head output,
.is-light-preview .posuv-keyframes-drawer header b {
  color: #26262c;
}

.is-light-preview .posuv-template-card:hover,
.is-light-preview .posuv-template-card.is-active {
  color: #17171b;
  border-color: rgba(118, 70, 221, .42);
  background: #f0f1f5;
  box-shadow: 0 0 0 2px rgba(118, 70, 221, .12);
}

.is-light-preview .posuv-count-row,
.is-light-preview .posuv-switch-row,
.is-light-preview .posuv-param-head,
.is-light-preview .posuv-subcontrol > span,
.is-light-preview .posuv-sidebar-right .posuv-wide-btn,
.is-light-preview .posuv-keyframe-row-label > span {
  color: #676771;
}

.is-light-preview .posuv-playback .posuv-icon-btn {
  color: #414149;
  background: #f0f1f5;
}

.is-light-preview .posuv-scrub-wrap > input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #2087ff 0, #2087ff var(--posuv-scrub-progress), #c7cad2 var(--posuv-scrub-progress), #c7cad2 100%);
}

@media (max-width: 900px) {
  .posuv-shell {
    grid-template-rows: 48px minmax(0, 1fr) 52px;
  }

  .posuv-topbar {
    min-height: 48px;
    height: 48px;
    padding: 0 8px;
  }

  .posuv-brand {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .posuv-brand-logo {
    width: 30px;
    height: 30px;
  }

  .posuv-project-title {
    display: none;
  }

  .posuv-stage {
    width: min(100%, calc((100vh - 192px) * var(--posuv-aspect)));
    width: min(100%, calc((100dvh - 192px) * var(--posuv-aspect)));
  }
}

/* 4.2.2 — functional multi-format export */
.posuv-export-dialog {
  width: min(650px, calc(100vw - 28px));
  max-width: 650px;
}

.posuv-export-card {
  padding: 30px;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, .16);
  background: #212121;
}

.posuv-export-card h2 {
  color: #f5f5f7;
}

.posuv-export-card > p {
  color: #b5b5ba;
}

.posuv-export-settings {
  display: grid;
  gap: 16px;
  margin: 18px 0 14px;
}

.posuv-export-setting {
  display: grid;
  gap: 7px;
}

.posuv-export-setting > span {
  color: #b5b5ba;
  font-size: 11px;
  font-weight: 600;
}

.posuv-export-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: #29292c;
}

.posuv-export-pills.posuv-export-resolution {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.posuv-export-pills button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #929299;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.posuv-export-pills button:hover {
  color: #fff;
  background: #343438;
}

.posuv-export-pills button.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, #7646dd, #4778ff);
  box-shadow: 0 4px 14px rgba(71, 120, 255, .18);
}

.posuv-export-pills button:disabled,
.posuv-export-actions button:disabled {
  opacity: .48;
  cursor: wait;
}

.posuv-export-output {
  margin: -3px 0 0 !important;
  color: #8d8d93 !important;
  font-size: 10px !important;
}

.posuv-export-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

.posuv-export-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  color: #eeeef0;
  background: #29292c;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.posuv-export-actions button:hover {
  border-color: rgba(182, 104, 242, .62);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(118, 70, 221, .13);
}

.posuv-export-actions .posuv-export-primary {
  border-color: rgba(118, 70, 221, .42);
  background: linear-gradient(135deg, rgba(118, 70, 221, .22), rgba(71, 120, 255, .14)), #29292c;
}

.posuv-export-actions button > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.posuv-export-actions b {
  color: inherit;
  font-size: 12px;
}

.posuv-export-actions small {
  margin-top: 3px;
  color: #8d8d93;
  font-size: 9px;
  line-height: 1.35;
}

.posuv-export-progress b {
  min-height: 14px;
}

.is-light-preview .posuv-export-card {
  color: #24242a;
  border-color: rgba(24, 24, 29, .12);
  background: #fff;
}

.is-light-preview .posuv-export-card h2 {
  color: #17171b;
}

.is-light-preview .posuv-export-card > p,
.is-light-preview .posuv-export-setting > span {
  color: #676771;
}

.is-light-preview .posuv-export-pills {
  background: #f0f1f5;
}

.is-light-preview .posuv-export-pills button {
  color: #777780;
}

.is-light-preview .posuv-export-pills button:hover {
  color: #17171b;
  background: #fff;
}

.is-light-preview .posuv-export-pills button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7646dd, #4778ff);
}

.is-light-preview .posuv-export-actions button {
  color: #34343b;
  border-color: rgba(24, 24, 29, .11);
  background: #f0f1f5;
}

.is-light-preview .posuv-export-actions .posuv-export-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7646dd, #4778ff);
}

.is-light-preview .posuv-export-actions .posuv-export-primary small {
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 560px) {
  .posuv-export-card {
    padding: 22px 16px 18px;
  }

  .posuv-export-card h2 {
    max-width: calc(100% - 42px);
    font-size: 25px;
  }

  .posuv-export-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .posuv-export-summary > span:last-child {
    display: flex;
  }

  .posuv-export-actions {
    grid-template-columns: 1fr;
  }
}

/* Commercial demo controls and localized utility UI. */
.posuv-language select,
.posuv-reset-demo {
  height: 34px;
  border: 1px solid var(--posuv-line-strong);
  border-radius: 999px;
  color: var(--posuv-ink-2);
  background: var(--posuv-panel-2);
  font-size: 10px;
  font-weight: 700;
}

.posuv-language select {
  max-width: 118px;
  padding: 0 26px 0 11px;
}

.posuv-reset-demo {
  padding: 0 12px;
  cursor: pointer;
}

.posuv-reset-demo:hover {
  border-color: var(--posuv-accent);
  color: var(--posuv-accent-2);
}

.posuv-export-pills button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Keep host WordPress themes from repeating their native select arrow. */
.posuv-editor select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8f8f98 50%),
    linear-gradient(135deg, #8f8f98 50%, transparent 50%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position:
    calc(100% - 13px) 50%,
    calc(100% - 9px) 50% !important;
  background-size: 4px 4px, 4px 4px !important;
}

.is-light-preview .posuv-language select,
.is-light-preview .posuv-reset-demo {
  color: #171319;
  background: #fff;
}

@media (max-width: 980px) {
  .posuv-language,
  .posuv-reset-demo {
    display: none;
  }
}

.posuv-demo-privacy {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 130;
  transform: translateX(-50%);
  max-width: min(620px, calc(100vw - 28px));
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #c7c3cd;
  background: rgba(20, 19, 24, .84);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  font: 500 11px/1.35 Inter, system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}

/* 1.0.7 — mobile controls, collision-free drawers, and short-height dialogs. */
.posuv-export-icon,
.posuv-account-icon {
  display: none;
}

.posuv-export-icon svg,
.posuv-account-icon svg {
  width: 16px;
  height: 16px;
}

.posuv-export-dialog {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  .posuv-topbar .posuv-brand {
    flex: 0 0 118px;
    width: 118px;
    height: 36px;
  }

  .posuv-topbar .posuv-brand-logo {
    width: 112px;
    height: 28px;
  }

  .posuv-account-btn {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }

  .posuv-account-btn .posuv-account-icon {
    display: inline-grid;
    place-items: center;
  }

  .posuv-account-btn .posuv-account-label {
    display: none;
  }

  .posuv-demo-privacy {
    bottom: 66px;
    width: min(620px, calc(100vw - 28px));
    max-width: none;
  }
}

@media (max-width: 560px) {
  .posuv-export-btn {
    width: auto;
    min-width: 92px;
    padding: 0 10px;
  }

  .posuv-export-btn .posuv-export-label {
    display: inline;
  }

  .posuv-demo-privacy {
    padding: 7px 10px;
    border-radius: 16px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .posuv-topbar .posuv-brand {
    flex-basis: 92px;
    width: 92px;
  }

  .posuv-topbar .posuv-brand-logo {
    width: 88px;
  }

  .posuv-export-btn {
    min-width: 62px;
    padding: 0 7px;
  }

  .posuv-export-btn .posuv-export-icon {
    display: inline-grid;
    place-items: center;
  }

  .posuv-export-btn .posuv-export-label {
    display: none;
  }
}

/* Final 1.0.0 canvas-first layer selection and balanced logo controls. */
.posuv-editor .posuv-logo-actions {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.posuv-editor .posuv-logo-actions .posuv-wide-btn,
.posuv-editor .posuv-logo-actions .posuv-logo-delete {
  box-sizing: border-box !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
}

.posuv-editor .posuv-logo-actions .posuv-wide-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  gap: 7px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.posuv-editor .posuv-logo-actions .posuv-wide-btn > span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-logo-actions .posuv-logo-delete {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  line-height: 1 !important;
}

.posuv-editor .posuv-logo-file {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 3px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  padding: 9px 11px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  text-align: left !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

.posuv-editor .posuv-logo-file > span,
.posuv-editor .posuv-logo-file > small {
  box-sizing: border-box !important;
  display: block !important;
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-logo-file > span {
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
}

.posuv-editor .posuv-logo-file > small {
  color: #96969d !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.posuv-editor .posuv-logo-file.is-active {
  border-color: #a95def !important;
  background: rgba(169, 93, 239, .12) !important;
  box-shadow: 0 0 0 2px rgba(169, 93, 239, .14) !important;
}

.posuv-editor :is(.posuv-text-section, .posuv-logo-section).is-active-layer > .posuv-section-toggle > span {
  color: #c77cff !important;
}

.posuv-editor.is-light-preview .posuv-logo-file > small {
  color: #6d6d78 !important;
}

.posuv-editor.is-light-preview .posuv-logo-file.is-active {
  color: #29232f !important;
  border-color: #9e55e8 !important;
  background: #f4eaff !important;
  box-shadow: 0 0 0 2px rgba(126, 75, 219, .12) !important;
}

.posuv-editor.is-light-preview :is(.posuv-text-section, .posuv-logo-section).is-active-layer > .posuv-section-toggle > span {
  color: #6f38bd !important;
}

@media (pointer: coarse) {
  .posuv-editor .posuv-logo-actions {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .posuv-editor .posuv-logo-actions .posuv-wide-btn,
  .posuv-editor .posuv-logo-actions .posuv-logo-delete {
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .posuv-editor .posuv-logo-actions .posuv-logo-delete {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }

  .posuv-editor .posuv-logo-file {
    min-height: 60px !important;
    padding: 10px 12px !important;
  }
}

/* 1.0.28 — editable, animated logo layer. */
.posuv-editor .posuv-logo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: stretch;
  gap: 7px;
}

.posuv-editor .posuv-logo-actions .posuv-wide-btn {
  min-width: 0;
  margin-top: 0;
}

.posuv-editor .posuv-logo-delete {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #414146;
  border-radius: 8px;
  color: #aaaab0;
  background: #29292c;
  cursor: pointer;
}

.posuv-editor .posuv-logo-delete[hidden],
.posuv-editor .posuv-logo-file[hidden],
.posuv-editor .posuv-logo-controls[hidden] {
  display: none !important;
}

.posuv-editor .posuv-logo-delete svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.posuv-editor .posuv-logo-delete:is(:hover, :focus-visible) {
  color: #fff;
  border-color: #9f52ee;
}

.posuv-editor .posuv-logo-file {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  margin: 7px 0 0;
  padding: 7px 10px;
  border: 1px solid #414146;
  border-radius: 8px;
  color: #e4e4e8;
  background: #29292c;
  text-align: left;
  cursor: pointer;
}

.posuv-editor .posuv-logo-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posuv-editor .posuv-logo-file small,
.posuv-editor .posuv-logo-help {
  color: #8f8f96;
  font-size: 9px;
  line-height: 1.35;
}

.posuv-editor .posuv-logo-controls {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #38383c;
}

.posuv-editor .posuv-logo-number,
.posuv-editor .posuv-logo-position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #aaaab0;
  font-size: 10px;
}

.posuv-editor .posuv-logo-number label {
  display: grid;
  grid-template-columns: 24px 54px 18px;
  align-items: center;
  min-height: 34px;
  border: 1px solid #414146;
  border-radius: 8px;
  background: #29292c;
}

.posuv-editor .posuv-logo-number input {
  width: 100%;
  min-width: 0;
  padding: 0 4px;
  border: 0 !important;
  color: #f5f5f7 !important;
  background: transparent !important;
  text-align: center;
}

.posuv-editor .posuv-logo-number i {
  color: #77777d;
  font-style: normal;
}

.posuv-editor .posuv-logo-keyframe {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #77777d;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.posuv-editor .posuv-logo-keyframe.is-animated {
  color: #2087ff;
  font-size: 13px;
}

.posuv-editor .posuv-logo-keyframe.is-current {
  color: #fff;
  filter: drop-shadow(0 0 3px #2087ff);
}

.posuv-editor .posuv-logo-range {
  display: grid;
  grid-template-columns: 26px minmax(62px, auto) minmax(78px, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.posuv-editor .posuv-logo-range > div {
  display: contents;
}

.posuv-editor .posuv-logo-range .posuv-logo-keyframe { grid-column: 1; grid-row: 1; }
.posuv-editor .posuv-logo-range > div > span { grid-column: 2; color: #aaaab0; font-size: 10px; }
.posuv-editor .posuv-logo-range input[type="range"] {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.posuv-editor .posuv-logo-range output { grid-column: 4; grid-row: 1; min-width: 42px; color: #929298; font-size: 10px; text-align: right; }
.posuv-editor .posuv-logo-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: #39393d; }
.posuv-editor .posuv-logo-range input[type="range"]::-webkit-slider-thumb { width: 22px; height: 14px; margin-top: -5px; border: 0; border-radius: 8px; appearance: none; background: #f7f7f8; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.posuv-editor .posuv-logo-range input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: #39393d; }
.posuv-editor .posuv-logo-range input[type="range"]::-moz-range-thumb { width: 22px; height: 14px; border: 0; border-radius: 8px; background: #f7f7f8; }

.posuv-editor .posuv-logo-position > div:first-child {
  display: flex;
  align-items: center;
  gap: 2px;
}

.posuv-editor .posuv-logo-help {
  margin: 2px 0 0;
}

.posuv-editor .posuv-logo-selection {
  position: absolute;
  z-index: 7;
  min-width: 18px;
  min-height: 12px;
  border: 1.5px solid #b668f2;
  outline: 0;
  cursor: move;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(182,104,242,.18);
}

.posuv-editor .posuv-logo-selection[hidden] { display: none; }
.posuv-editor .posuv-logo-selection > span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  background: #b668f2;
  touch-action: none;
}
.posuv-editor .posuv-logo-selection > span:nth-of-type(1) { top: -4px; left: -4px; cursor: nwse-resize; }
.posuv-editor .posuv-logo-selection > span:nth-of-type(2) { top: -4px; right: -4px; cursor: nesw-resize; }
.posuv-editor .posuv-logo-selection > span:nth-of-type(3) { bottom: -4px; left: -4px; cursor: nesw-resize; }
.posuv-editor .posuv-logo-selection > span:nth-of-type(4) { right: -4px; bottom: -4px; cursor: nwse-resize; }
.posuv-editor .posuv-logo-rotate-handle {
  position: absolute;
  top: -21px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #b668f2;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
}
.posuv-editor .posuv-logo-rotate-handle::after { content: ""; position: absolute; top: 8px; left: 3px; width: 1px; height: 12px; background: #b668f2; }
.posuv-editor .posuv-logo-selection.is-transforming { user-select: none; }
.posuv-editor .posuv-logo-selection.is-rotate .posuv-logo-rotate-handle { cursor: grabbing; }

.posuv-editor.is-light-preview .posuv-logo-file,
.posuv-editor.is-light-preview .posuv-logo-delete,
.posuv-editor.is-light-preview .posuv-logo-number label {
  color: #303038;
  border-color: #d7d7de;
  background: #fff;
}
.posuv-editor.is-light-preview .posuv-logo-number input { color: #24242b !important; }

@media (pointer: coarse) {
  .posuv-editor .posuv-logo-range { min-height: 48px; }
  .posuv-editor .posuv-logo-range input[type="range"] { height: 36px; touch-action: pan-y; }
  .posuv-editor .posuv-logo-range input[type="range"]::-webkit-slider-thumb { width: 28px; height: 24px; margin-top: -10px; border-radius: 10px; }
  .posuv-editor .posuv-logo-range input[type="range"]::-moz-range-thumb { width: 28px; height: 24px; border-radius: 10px; }
  .posuv-editor .posuv-logo-selection > span { width: 13px; height: 13px; }
  .posuv-editor .posuv-logo-selection > span:nth-of-type(1) { top: -7px; left: -7px; }
  .posuv-editor .posuv-logo-selection > span:nth-of-type(2) { top: -7px; right: -7px; }
  .posuv-editor .posuv-logo-selection > span:nth-of-type(3) { bottom: -7px; left: -7px; }
  .posuv-editor .posuv-logo-selection > span:nth-of-type(4) { right: -7px; bottom: -7px; }
  .posuv-editor .posuv-logo-rotate-handle { top: -31px; width: 15px; height: 15px; }
  .posuv-editor .posuv-logo-rotate-handle::after { top: 14px; left: 6px; height: 16px; }
  .posuv-editor .posuv-logo-selection.is-pinching { border-color: #1687ff; box-shadow: 0 0 0 3px rgba(22,135,255,.2); }
}

/* 1.0.24 — the editor UI also lives in an open shadow root, so host-theme
   selectors cannot cross into its controls. These rules fix two intrinsic
   light-preview states and keep the non-shadow fallback fully usable. */
.posuv-editor :is(button, input, select, textarea, label, a) {
  text-transform: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.posuv-editor .posuv-switch-row {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.posuv-editor .posuv-switch-row > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-switch-row > i {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #444449 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-switch-row > i::after {
  box-sizing: border-box !important;
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #f7f7f8 !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: translateX(0) !important;
}

.posuv-editor .posuv-switch-row > input[type="checkbox"]:checked + i {
  background-color: #6558ef !important;
}

.posuv-editor .posuv-switch-row > input[type="checkbox"]:checked + i::after {
  transform: translateX(16px) !important;
}

.posuv-editor.is-light-preview .posuv-text-align > div {
  border: 1px solid #d7d7de !important;
  background-color: #f0f1f5 !important;
  background-image: none !important;
}

.posuv-editor.is-light-preview .posuv-text-align button {
  color: #54545d !important;
  border-color: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.posuv-editor.is-light-preview .posuv-text-align button:is(:hover, :focus, :focus-visible, :active),
.posuv-editor.is-light-preview .posuv-text-align button.is-active {
  color: #fff !important;
  border-color: #6558ef !important;
  background-color: #6558ef !important;
}

.posuv-editor .posuv-text-align svg,
.posuv-editor .posuv-text-align svg path {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  stroke: currentColor !important;
}

/* 1.0.13 — keep mobile editing controls inside the real Safari viewport. */
@media (max-width: 900px) {
  .posuv-editor {
    height: var(--posuv-viewport-height, 100svh);
    min-height: var(--posuv-viewport-height, 100svh);
    max-height: var(--posuv-viewport-height, 100svh);
  }

  .posuv-shell {
    grid-template-rows: 48px minmax(0, 1fr) calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .posuv-workspace {
    min-height: 0;
  }

  .posuv-sidebar {
    top: 0;
    bottom: 0;
    z-index: 70;
  }

  .posuv-sidebar-left .posuv-sidebar-head,
  .posuv-sidebar-right > .posuv-sidebar-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex !important;
    min-height: 58px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--posuv-line);
    background: var(--posuv-panel);
  }

  .posuv-panel-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .posuv-mobile-nav {
    position: relative;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 60px;
    height: auto;
    padding: 4px 6px max(4px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(28, 28, 30, .98);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
  }

  .posuv-mobile-nav button {
    min-width: 0;
    min-height: 50px;
    padding: 5px 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #b8b8bd;
    background: transparent;
    font-size: 10px;
    line-height: 1.1;
    cursor: pointer;
  }

  .posuv-mobile-nav button span {
    font-size: 19px;
  }

  .posuv-mobile-nav button:hover,
  .posuv-mobile-nav button:focus-visible,
  .posuv-mobile-nav button.is-active {
    color: #fff;
    border-color: rgba(182, 104, 242, .42);
    background: rgba(118, 70, 221, .2);
  }

  .is-light-preview .posuv-mobile-nav {
    border-color: rgba(24, 24, 29, .1);
    background: rgba(255, 255, 255, .98);
  }

  .is-light-preview .posuv-mobile-nav button {
    color: #5f5f68;
  }

  .is-light-preview .posuv-mobile-nav button:hover,
  .is-light-preview .posuv-mobile-nav button:focus-visible,
  .is-light-preview .posuv-mobile-nav button.is-active {
    color: #3d2463;
    border-color: rgba(118, 70, 221, .28);
    background: rgba(118, 70, 221, .11);
  }

  .posuv-demo-privacy {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .posuv-sidebar {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    border-inline: 0;
  }

  .posuv-sidebar-left {
    transform: translateX(-105%);
  }

  .posuv-sidebar-right {
    transform: translateX(105%);
  }

  .is-left-open .posuv-sidebar-left,
  .is-right-open .posuv-sidebar-right {
    transform: translateX(0);
  }
}

/* 1.0.15 — unified editor controls, editable titles and mobile history tools. */
.posuv-editor .posuv-mobile-project-title {
  display: none;
}

@media (min-width: 901px) {
  .posuv-editor .posuv-shell {
    grid-template-rows: 56px minmax(0, 1fr);
  }

  .posuv-editor .posuv-topbar {
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 12px;
  }

  .posuv-editor .posuv-brand-zone,
  .posuv-editor .posuv-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
  }

  .posuv-editor .posuv-top-actions {
    justify-content: flex-end;
  }

  .posuv-editor .posuv-topbar .posuv-brand {
    min-height: 36px !important;
    height: 36px !important;
  }

  .posuv-editor .posuv-topbar :is(.posuv-projects-btn, .posuv-icon-btn, .posuv-reset-demo, .posuv-theme-btn, .posuv-export-btn, .posuv-account-btn) {
    box-sizing: border-box;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0;
    border-radius: 12px;
    line-height: 1;
  }

  .posuv-editor .posuv-topbar .posuv-language {
    display: flex;
    align-items: center;
    min-height: 36px;
    height: 36px;
  }

  .posuv-editor .posuv-topbar .posuv-language select {
    box-sizing: border-box;
    min-height: 0 !important;
    height: 36px !important;
    margin: 0;
    padding: 0 34px 0 12px;
    border-radius: 12px;
    font-size: 11px !important;
    line-height: 34px;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .posuv-editor .posuv-topbar .posuv-brand {
    flex-basis: 120px;
    width: 120px;
  }

  .posuv-editor .posuv-topbar .posuv-brand-logo {
    flex-basis: 112px;
    width: 112px;
  }

  .posuv-editor .posuv-projects-btn {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }

  .posuv-editor .posuv-projects-btn span,
  .posuv-editor .posuv-reset-demo,
  .posuv-editor .posuv-account-btn .posuv-account-label {
    display: none;
  }

  .posuv-editor .posuv-account-btn {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }

  .posuv-editor .posuv-account-btn .posuv-account-icon {
    display: inline-grid;
    place-items: center;
  }

  .posuv-editor .posuv-project-title {
    width: min(300px, 34vw);
  }
}

.posuv-editor .posuv-project-title::after {
  content: "✎";
  position: absolute;
  top: 50%;
  right: 12px;
  color: #8f8f96;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .15s ease;
}

.posuv-editor .posuv-project-title:focus-within::after {
  opacity: 0;
}

.posuv-editor .posuv-project-title input {
  box-sizing: border-box;
  min-height: 0 !important;
  height: 36px !important;
  margin: 0;
  padding: 0 34px 0 14px;
  border-radius: 11px;
  color: #f5f5f7 !important;
  background-color: #29292c !important;
  font-size: 13px !important;
  line-height: 34px;
  cursor: text;
}

.posuv-editor .posuv-project-title input:hover,
.posuv-editor .posuv-project-title input:focus,
.posuv-editor .posuv-project-title input:focus-visible {
  color: #fff !important;
  border-color: rgba(182, 104, 242, .58) !important;
  background-color: #303033 !important;
  outline: 3px solid rgba(182, 104, 242, .13);
  outline-offset: 0;
}

.posuv-editor.is-light-preview .posuv-project-title input {
  color: #24242a !important;
  border-color: rgba(24, 24, 29, .18) !important;
  background-color: #f0f1f5 !important;
}

.posuv-editor.is-light-preview .posuv-project-title input:hover,
.posuv-editor.is-light-preview .posuv-project-title input:focus,
.posuv-editor.is-light-preview .posuv-project-title input:focus-visible {
  color: #17171b !important;
  border-color: rgba(118, 70, 221, .45) !important;
  background-color: #fff !important;
}

.posuv-editor .posuv-text-card,
.posuv-editor .posuv-text-card * {
  box-sizing: border-box;
}

.posuv-editor .posuv-text-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.posuv-editor .posuv-text-card :is(.posuv-text-full-select, .posuv-text-weight-size > select, .posuv-text-labelled > select),
.posuv-editor .posuv-text-weight-size > label,
.posuv-editor .posuv-text-spacing > label > div {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 9px;
}

.posuv-editor .posuv-text-weight-size > label,
.posuv-editor .posuv-text-spacing > label > div {
  color: #f4f4f6;
  border-color: #414146;
  background-color: #29292c;
}

.posuv-editor .posuv-text-weight-size input,
.posuv-editor .posuv-text-spacing input {
  min-height: 0 !important;
  height: 40px !important;
  margin: 0;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.posuv-editor.is-light-preview .posuv-text-weight-size > label,
.posuv-editor.is-light-preview .posuv-text-spacing > label > div {
  color: #24242a;
  border-color: rgba(24, 24, 29, .18);
  background-color: #f0f1f5;
}

.posuv-editor.is-light-preview .posuv-text-weight-size input,
.posuv-editor.is-light-preview .posuv-text-spacing input {
  color: #24242a !important;
  background: transparent !important;
}

.posuv-editor .posuv-text-card :is(button, select, input, textarea):focus-visible {
  border-color: rgba(182, 104, 242, .7) !important;
  outline: 3px solid rgba(182, 104, 242, .14);
  outline-offset: 1px;
}

@media (max-width: 900px) {
  .posuv-editor .posuv-shell {
    grid-template-rows: 48px minmax(0, 1fr) calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .posuv-editor .posuv-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .posuv-editor .posuv-mobile-nav button {
    gap: 2px;
    min-height: 50px;
    padding: 4px 2px;
    font-size: 8.5px;
  }

  .posuv-editor .posuv-mobile-nav button span {
    font-size: 17px;
  }

  .posuv-editor .posuv-mobile-nav button:disabled {
    opacity: .36;
    cursor: default;
  }

  .posuv-editor .posuv-mobile-project-title {
    display: grid;
    gap: 7px;
    padding: 12px;
    color: #aaaab0;
    border-bottom: 1px solid var(--posuv-line);
    font-size: 10px;
  }

  .posuv-editor .posuv-mobile-project-title input {
    box-sizing: border-box;
    width: 100%;
    min-height: 0 !important;
    height: 44px !important;
    margin: 0;
    padding: 0 12px;
    color: #f5f5f7 !important;
    border: 1px solid #414146;
    border-radius: 10px;
    background: #29292c !important;
    font-size: 14px !important;
  }

  .posuv-editor.is-light-preview .posuv-mobile-project-title {
    color: #676771;
  }

  .posuv-editor.is-light-preview .posuv-mobile-project-title input {
    color: #24242a !important;
    border-color: rgba(24, 24, 29, .18);
    background: #f0f1f5 !important;
  }
}

/* 1.0.18 — keep template cards and close controls immune to host-theme geometry. */
.posuv-editor .posuv-template-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 13px 10px !important;
}

.posuv-editor .posuv-template-card {
  box-sizing: border-box !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 4px !important;
  overflow: visible !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 12px !important;
  text-align: left !important;
  white-space: normal !important;
  line-height: normal !important;
}

.posuv-editor .posuv-template-card .posuv-template-thumb {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.posuv-editor .posuv-template-card > strong {
  box-sizing: border-box !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 4px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 7px 2px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}

.posuv-editor .posuv-dialog-close,
.posuv-editor .posuv-panel-close {
  box-sizing: border-box !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 999px !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.posuv-editor .posuv-dialog-close {
  display: grid !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
}

.posuv-editor .posuv-panel-close {
  display: none !important;
}

.posuv-editor :is(.posuv-dialog-close, .posuv-panel-close) svg {
  box-sizing: content-box !important;
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

.posuv-editor :is(.posuv-dialog-close, .posuv-panel-close) svg path {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

@media (max-width: 900px) {
  .posuv-editor .posuv-panel-close {
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
}

/* 1.0.19 — touch-first text editing and a non-covering tablet inspector. */
.posuv-editor .posuv-export-card {
  position: relative !important;
}

.posuv-editor .posuv-export-card > .posuv-dialog-close {
  position: absolute !important;
  inset: 18px 18px auto auto !important;
  z-index: 5 !important;
  float: none !important;
  transform: none !important;
}

.posuv-editor .posuv-export-card > h2 {
  padding-right: 56px;
}

@media (min-width: 700px) and (max-width: 900px) {
  .posuv-editor .posuv-workspace {
    grid-template-columns: minmax(0, 1fr) 0 !important;
    transition: grid-template-columns .22s ease;
  }

  .posuv-editor.is-right-open .posuv-workspace {
    grid-template-columns: minmax(0, 1fr) min(304px, 40vw) !important;
  }

  .posuv-editor .posuv-main {
    grid-column: 1;
    min-width: 0;
  }

  .posuv-editor .posuv-sidebar-right {
    position: relative !important;
    inset: auto !important;
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
    transition: opacity .16s ease, visibility 0s linear .22s;
  }

  .posuv-editor.is-right-open .posuv-sidebar-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .posuv-editor.is-right-open .posuv-stage-wrap {
    padding-inline: 10px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .posuv-editor .posuv-sidebar-right .posuv-color-fields {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .posuv-editor .posuv-sidebar-right .posuv-color-fields > label {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .posuv-editor .posuv-sidebar-right .posuv-color-fields > label > span:last-child {
    min-width: 0;
  }

  .posuv-editor .posuv-sidebar-right .posuv-color-fields input[type="text"] {
    min-width: 0 !important;
  }
}

@media (pointer: coarse) {
  .posuv-editor .posuv-text-range {
    min-height: 48px;
  }

  .posuv-editor .posuv-text-range input[type="range"] {
    height: 36px;
    touch-action: pan-y;
  }

  .posuv-editor .posuv-text-range input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 24px;
    margin-top: -10px;
    border-radius: 10px;
  }

  .posuv-editor .posuv-text-range input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 24px;
    border-radius: 10px;
  }

  .posuv-editor .posuv-text-selection > span {
    width: 13px;
    height: 13px;
  }

  .posuv-editor .posuv-text-selection > span:nth-of-type(1) { top: -7px; left: -7px; }
  .posuv-editor .posuv-text-selection > span:nth-of-type(2) { top: -7px; right: -7px; }
  .posuv-editor .posuv-text-selection > span:nth-of-type(3) { bottom: -7px; left: -7px; }
  .posuv-editor .posuv-text-selection > span:nth-of-type(4) { right: -7px; bottom: -7px; }

  .posuv-editor .posuv-text-rotate-handle {
    top: -31px;
    width: 15px;
    height: 15px;
  }

  .posuv-editor .posuv-text-rotate-handle::after {
    top: 14px;
    left: 6px;
    height: 16px;
  }

  .posuv-editor .posuv-text-selection.is-pinching {
    border-color: #b668f2;
    box-shadow: 0 0 0 3px rgba(182, 104, 242, .2);
  }
}

/* 1.0.20 — autoplay controls and position anchors stay independent of host themes. */
.posuv-editor .posuv-timeline {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: auto minmax(100px, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #d7d7db !important;
  border-width: 1px 0 0 !important;
  border-style: solid !important;
  border-color: var(--posuv-line) !important;
  border-radius: 0 !important;
  background-color: #212121 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-playback {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 73px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #dedee1 !important;
  -webkit-text-fill-color: currentColor !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 999px !important;
  background-color: #29292c !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn:is(:hover, :focus, :focus-visible, :active) {
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: rgba(255, 255, 255, .22) !important;
  background-color: #3a3a3e !important;
  background-image: none !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn.is-filled {
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #29292c !important;
  background-color: #29292c !important;
  background-image: none !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn svg,
.posuv-editor .posuv-playback .posuv-icon-btn svg path {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

.posuv-editor .posuv-playback .posuv-icon-btn svg path.fill {
  fill: currentColor !important;
  stroke: none !important;
}

.posuv-editor .posuv-timeline .posuv-scrub-wrap,
.posuv-editor .posuv-timeline .posuv-time {
  visibility: visible !important;
  opacity: 1 !important;
}

.posuv-editor .posuv-position-grid {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(3, 22px) !important;
  gap: 4px !important;
  width: 74px !important;
  min-width: 74px !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.posuv-editor .posuv-position-grid button {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 5px !important;
  background-color: #29292c !important;
  background-image: none !important;
  box-shadow: none !important;
}

.posuv-editor .posuv-position-grid button > span {
  box-sizing: border-box !important;
  display: block !important;
  width: 5px !important;
  min-width: 5px !important;
  height: 5px !important;
  min-height: 5px !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #aaaab0 !important;
  background-image: none !important;
}

.posuv-editor .posuv-position-grid button:is(:hover, :focus, :focus-visible, :active),
.posuv-editor .posuv-position-grid button.is-active {
  border-color: #1687ff !important;
  background-color: #1687ff !important;
  background-image: none !important;
}

.posuv-editor .posuv-position-grid button:is(:hover, :focus, :focus-visible, :active) > span,
.posuv-editor .posuv-position-grid button.is-active > span {
  background-color: #fff !important;
}

.posuv-editor.is-light-preview .posuv-timeline {
  color: #42424a !important;
  border-color: #dedee6 !important;
  background-color: #f7f7fa !important;
}

.posuv-editor.is-light-preview .posuv-playback .posuv-icon-btn {
  color: #25252b !important;
  border-color: #d7d7de !important;
  background-color: #fff !important;
}

.posuv-editor.is-light-preview .posuv-playback .posuv-icon-btn:is(:hover, :focus, :focus-visible, :active),
.posuv-editor.is-light-preview .posuv-playback .posuv-icon-btn.is-filled {
  color: #fff !important;
  border-color: #25252b !important;
  background-color: #25252b !important;
}

.posuv-editor.is-light-preview .posuv-position-grid button {
  border-color: #d7d7de !important;
  background-color: #fff !important;
}

.posuv-editor.is-light-preview .posuv-position-grid button > span {
  background-color: #686870 !important;
}

.posuv-editor.is-light-preview .posuv-position-grid button:is(:hover, :focus, :focus-visible, :active),
.posuv-editor.is-light-preview .posuv-position-grid button.is-active {
  border-color: #1687ff !important;
  background-color: #1687ff !important;
}

.posuv-editor.is-light-preview .posuv-position-grid button:is(:hover, :focus, :focus-visible, :active) > span,
.posuv-editor.is-light-preview .posuv-position-grid button.is-active > span {
  background-color: #fff !important;
}

@media (max-width: 560px) {
  .posuv-editor .posuv-timeline {
    grid-template-columns: auto minmax(80px, 1fr) !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }
}

/* A low-specificity geometry reset blocks generic theme rules while allowing
   the component-specific rules below to keep each Posuv control's own shape. */
.posuv-editor :where(button) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 8px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
}

.posuv-editor :where(label) {
  box-sizing: border-box !important;
  border-width: 0 !important;
  border-style: solid !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.posuv-editor :where(input, select, textarea) {
  box-sizing: border-box !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.posuv-editor :where(input[type="range"], input[type="checkbox"], input[type="radio"]) {
  padding: 0 !important;
  border-width: 0 !important;
  border-style: solid !important;
  box-shadow: none !important;
}

.posuv-editor :where(input[type="color"]) {
  padding: 0 !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-shadow: none !important;
}

.posuv-editor :is(.posuv-projects-btn, .posuv-account-btn) {
  display: inline-flex !important;
  gap: 6px !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-width: 1px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-topbar :is(.posuv-icon-btn, .posuv-theme-btn) {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 999px !important;
}

.posuv-editor .posuv-export-btn {
  display: inline-flex !important;
  gap: 7px !important;
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-keyframes-toggle {
  display: inline-flex !important;
  gap: 7px !important;
  width: auto !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-section-toggle {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 49px !important;
  min-height: 49px !important;
  padding: 0 16px !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  text-align: left !important;
}

.posuv-editor .posuv-aspect {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 8px 1px 5px !important;
  border-width: 1px !important;
  border-radius: 8px !important;
}

.posuv-editor .posuv-count-row button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

.posuv-editor :is(.posuv-drag, .posuv-media-remove) {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-width: 0 !important;
  border-radius: 6px !important;
}

.posuv-editor .posuv-media-pick {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  justify-content: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  text-align: left !important;
}

.posuv-editor .posuv-wide-btn {
  display: flex !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 34px !important;
  margin-top: 10px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
}

.posuv-editor :is(.posuv-keyframe, .posuv-text-keyframe) {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border-width: 0 !important;
  border-radius: 6px !important;
}

.posuv-editor :is(.posuv-presets, .posuv-ratio-grid, .posuv-motion-grid, .posuv-segmented) button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 4px 5px !important;
  border-width: 1px !important;
  border-radius: 7px !important;
  line-height: 1.1 !important;
}

.posuv-editor .posuv-text-collapse {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-width: 0 !important;
}

.posuv-editor .posuv-text-card-title {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  border-width: 0 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.posuv-editor .posuv-text-card-actions button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-width: 0 !important;
}

.posuv-editor .posuv-text-align button {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 7px !important;
}

.posuv-editor :is(.posuv-dialog-close, .posuv-panel-close) {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.posuv-editor .posuv-export-pills button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  white-space: nowrap !important;
}

.posuv-editor :is(.posuv-export-actions, .posuv-export-options) button {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 78px !important;
  padding: 13px !important;
  border-radius: 15px !important;
  text-align: left !important;
}

@media (max-width: 900px) {
  .posuv-editor .posuv-mobile-nav button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    overflow: visible !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 12px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .posuv-editor .posuv-mobile-nav button > span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .posuv-editor .posuv-topbar {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(92px, 118px) auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone,
  .posuv-editor .posuv-topbar .posuv-top-actions {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone {
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .posuv-editor .posuv-topbar .posuv-top-actions {
    justify-content: flex-end !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone > :is(.posuv-projects-btn, .posuv-icon-btn, .posuv-top-divider),
  .posuv-editor .posuv-topbar .posuv-top-actions > :is(.posuv-reset-demo, .posuv-language, .posuv-theme-btn) {
    display: none !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .posuv-editor .posuv-topbar .posuv-export-btn {
    flex: 0 0 auto !important;
    min-width: 88px !important;
    height: 38px !important;
    padding: 0 11px !important;
    white-space: nowrap !important;
  }

  .posuv-editor .posuv-topbar .posuv-account-btn {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
  }

  .posuv-editor .posuv-mobile-utilities {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    border-bottom: 1px solid var(--posuv-line) !important;
  }

  .posuv-editor .posuv-mobile-utilities label {
    display: grid !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    color: #aaaab0 !important;
    font-size: 10px !important;
  }

  .posuv-editor .posuv-mobile-utilities select,
  .posuv-editor .posuv-mobile-utilities button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    border: 1px solid #414146 !important;
    border-radius: 9px !important;
    color: #f4f4f6 !important;
    background-color: #29292c !important;
    background-image: none !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .posuv-editor .posuv-mobile-utilities button svg {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
  }

  .posuv-editor.is-light-preview .posuv-mobile-utilities label {
    color: #676771 !important;
  }

  .posuv-editor.is-light-preview .posuv-mobile-utilities select,
  .posuv-editor.is-light-preview .posuv-mobile-utilities button {
    color: #24242a !important;
    border-color: #d6d7df !important;
    background-color: #f0f1f5 !important;
  }
}

.posuv-editor .posuv-mobile-utilities {
  display: none;
}

@media (max-width: 360px) {
  .posuv-editor .posuv-topbar {
    grid-template-columns: minmax(82px, 92px) auto !important;
    gap: 6px !important;
    padding-inline: 6px !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand {
    flex-basis: 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  .posuv-editor .posuv-topbar .posuv-export-btn {
    min-width: 80px !important;
    padding-inline: 9px !important;
  }

  .posuv-editor .posuv-topbar .posuv-top-actions {
    gap: 5px !important;
  }
}

/* 1.0.25 — complete mobile header, reliable light fields, and keyframe UX. */
.posuv-editor.is-light-preview .posuv-sidebar-right :where(
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  textarea,
  select
) {
  color: #24242a !important;
  -webkit-text-fill-color: #24242a !important;
  caret-color: #6558ef !important;
  border-color: #d2d4dc !important;
  background-color: #fff !important;
}

.posuv-editor.is-light-preview .posuv-sidebar-right :where(input, textarea)::placeholder {
  color: #777781 !important;
  -webkit-text-fill-color: #777781 !important;
  opacity: 1 !important;
}

.posuv-editor.is-light-preview .posuv-text-color-row input[type="text"] {
  color: #24242a !important;
  -webkit-text-fill-color: #24242a !important;
  border-color: #c9cbd4 !important;
  background-color: #fff !important;
}

.posuv-editor.is-light-preview .posuv-text-color-row input[type="color"] {
  border-color: #c9cbd4 !important;
  background-color: #f0f1f5 !important;
}

.posuv-editor.is-light-preview .posuv-text-weight-size > label,
.posuv-editor.is-light-preview .posuv-text-spacing > label > div {
  color: #24242a !important;
  border-color: #d2d4dc !important;
  background-color: #f0f1f5 !important;
}

.posuv-editor.is-light-preview :is(.posuv-text-weight-size, .posuv-text-spacing) input[type="number"] {
  color: #24242a !important;
  -webkit-text-fill-color: #24242a !important;
  border-color: transparent !important;
  background-color: transparent !important;
}

.posuv-editor.is-light-preview .posuv-text-card :is(
  .posuv-text-field-labels,
  .posuv-text-range > div,
  .posuv-text-labelled,
  .posuv-text-spacing > label,
  .posuv-text-align,
  .posuv-text-position > div:first-child,
  output
) {
  color: #61616b !important;
}

@media (max-width: 900px) {
  .posuv-editor .posuv-topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone {
    gap: 4px !important;
    overflow: visible !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    overflow: visible !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-logo {
    display: block;
    flex: 0 0 108px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  .posuv-editor.is-light-preview .posuv-topbar .posuv-brand-logo-white,
  .posuv-editor:not(.is-light-preview) .posuv-topbar .posuv-brand-logo-dark {
    display: none !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone > .posuv-projects-btn {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone > .posuv-projects-btn > span {
    display: none !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone > .posuv-projects-btn svg {
    width: 17px !important;
    height: 17px !important;
  }
}

@media (max-width: 360px) {
  .posuv-editor .posuv-topbar .posuv-brand {
    flex-basis: 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-logo {
    flex-basis: 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  .posuv-editor .posuv-topbar .posuv-brand-zone > .posuv-projects-btn {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }
}
