html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body,
button,
input,
select,
textarea {
  font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Space Grotesk", sans-serif;
}

body.app-shell {
  background: #f5f7fa;
  color: #1a202c;
  min-height: 100vh;
}

body.layout-modal-open {
  overflow: hidden;
}

.app-header {
  background: #ffffff;
  border-color: #e2e8f0 !important;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1a202c;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
}

.stat-card .stat-label,
.meta-label {
  display: block;
  color: #64748b;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.small-title {
  font-size: 1.15rem !important;
}

.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: #16a34a;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: .92rem;
}

.empty-state,
.image-placeholder {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.content-box {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .85rem;
  padding: 1rem;
  color: #374151;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

a {
  color: #16a34a;
}

a:hover {
  color: #15803d;
}

.btn-success {
  background: linear-gradient(135deg, #f4b942 0%, #ef7f45 100%);
  border-color: transparent;
  color: #151515;
  font-weight: 700;
}

.btn-outline-light {
  border-color: #d1d5db;
  color: #374151;
}

.btn-outline-light:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a5b 0%, #f15d73 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: #293241;
}

.table tbody tr td, .text-secondary {
    color: #333 !important;
    font-weight: normal;
}

.table thead tr th {
    background: #fe865d;
    text-align: center;
    font-weight: 200;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: #333;
    --bs-table-bg-state: #fff;
}

.form-control,
.form-select {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1a202c;
}

.form-control:focus,
.form-select:focus {
  background: #ffffff;
  color: #1a202c;
  border-color: #f4b942;
  box-shadow: 0 0 0 .2rem rgba(244,185,66,.15);
}

.editor-area {
  background: #11161d;
  border-color: #293241;
  color: #eef2f7;
}

.status-draft { background: #6c757d; }
.status-pendingreview { background: #f59e0b; color: #111; }
.status-approved { background: #22c55e; }
.status-scheduled { background: #3b82f6; }
.status-published { background: #8b5cf6; }
.status-failed { background: #ef4444; }

.generation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, .82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.generation-overlay.is-visible {
  display: flex;
}

.generation-overlay-card {
  width: min(560px, 100%);
  background: #171c24;
  border: 1px solid #293241;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 1.5rem;
}

.generation-overlay-label {
  color: #8f9bad;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: .6rem;
}

.generation-overlay-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.generation-overlay-subtitle {
  color: #b3becc;
  margin-bottom: 1rem;
}

.generation-overlay-step {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.generation-overlay-progress {
  width: 100%;
  height: 12px;
  background: #0f141b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #293241;
  margin-bottom: .75rem;
}

.generation-overlay-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #84cc16 0%, #9cff2e 100%);
  transition: width .45s ease;
}

.generation-overlay-hint {
  color: #8f9bad;
  font-size: .92rem;
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.workspace-nav-button {
  border: 1px solid #334155;
  background: #171c24;
  color: #cfd7e4;
  border-radius: 999px;
  padding: .8rem 1rem;
  font-weight: 800;
}

.workspace-nav-button.is-active {
  background: linear-gradient(135deg, rgba(156,255,46,.16) 0%, rgba(255,191,141,.12) 100%);
  border-color: rgba(156,255,46,.38);
  color: #f4f8fb;
}

.workspace-panel {
  display: none;
}

.workspace-panel.is-active {
  display: block;
}

.details-hero {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(156,255,46,.12), transparent 24%),
    linear-gradient(135deg, rgba(24, 29, 38, .98) 0%, rgba(12, 16, 22, .98) 100%);
  display: grid;
  gap: 1rem;
}

.details-hero-kicker {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: #ffbf8d;
  font-weight: 800;
  margin-bottom: .45rem;
}

.details-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.details-hero-chip {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 1rem;
  padding: .75rem .9rem;
  min-width: 120px;
}

.details-hero-chip span {
  display: block;
  color: #8f9bad;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.details-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-content: start;
}

.editor-workflow,
.slide-editor-stack {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 22, 29, .98) 0%, rgba(12, 17, 23, .98) 100%);
  padding: 1rem;
}

.editor-workflow {
  display: none;
}

.workspace-context {
  display: none;
}

.workspace-context > div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .9rem;
  padding: .8rem .9rem;
  background: rgba(255,255,255,.02);
}

.workspace-context span {
  display: block;
  color: #8f9bad;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.workspace-context strong {
  display: block;
  font-size: .94rem;
  color: #f3f7fb;
  line-height: 1.5;
}

.editor-workflow-kicker,
.layout-studio-status-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: #ffbf8d;
  font-weight: 800;
  margin-bottom: .45rem;
}

.editor-workflow-steps {
  display: grid;
  gap: .75rem;
}

.editor-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .95rem;
  background: rgba(255,255,255,.03);
}

.editor-step span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: #eef2f7;
  font-weight: 800;
}

.editor-step strong,
.editor-step small {
  grid-column: 2;
}

.editor-step small {
  color: #8f9bad;
}

.editor-step.is-active {
  border-color: rgba(156,255,46,.28);
  background: linear-gradient(135deg, rgba(156,255,46,.12) 0%, rgba(255,191,141,.08) 100%);
}

.slide-editor-stack {
  display: grid;
  gap: 1rem;
}

.editor-form-grid {
  display: grid;
  gap: 1rem;
}

.slide-editor-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.slide-editor-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
}

.slide-editor-tab {
  border: 1px solid #334155;
  background: #0f141b;
  color: #eef2f7;
  border-radius: 1rem;
  padding: .85rem .9rem;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.slide-editor-tab span,
.slide-editor-tab small {
  display: block;
}

.slide-editor-tab span {
  font-weight: 800;
  margin-bottom: .2rem;
}

.slide-editor-tab small {
  color: #8f9bad;
}

.slide-editor-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.2);
}

.slide-editor-tab.is-active {
  background: rgba(156,255,46,.12);
  border-color: rgba(156,255,46,.4);
  box-shadow: 0 0 0 .12rem rgba(156,255,46,.14);
}

.slide-editor-tab.is-active small {
  color: #d8ffb0;
}

.carousel-phrase-grid {
  display: block;
}

.carousel-phrase-card {
  background: #11161d;
  border: 1px solid #293241;
  border-radius: 1rem;
  padding: 1rem;
  display: none;
}

.carousel-phrase-card.is-active {
  display: block;
}

.slide-editor-hint {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: .9rem;
  padding: .75rem .9rem;
  color: #c7d0dc;
}

.slide-writing-grid {
  display: grid;
  gap: .75rem;
}

.slide-writing-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: .9rem;
  padding: .8rem .9rem;
}

.slide-writing-card span {
  display: block;
  color: #8f9bad;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.slide-writing-card strong {
  display: block;
  margin-bottom: .25rem;
}

.slide-writing-card small {
  color: #aeb9c7;
  display: block;
  line-height: 1.5;
}

.slide-writing-tip {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: .9rem;
  padding: .8rem .9rem;
  color: #d5dde8;
  line-height: 1.5;
}

.technical-editor {
  border: 1px solid #293241;
  border-radius: 1rem;
  padding: 1rem;
  background: #11161d;
}

.technical-editor summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: .75rem;
}

.technical-editor[open] summary {
  margin-bottom: 1rem;
}

.carousel-preview-stage {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #11161d;
  border: 1px solid #293241;
  min-height: 420px;
  touch-action: pan-y;
  user-select: none;
}

.carousel-preview-slide {
  display: none;
  padding: .75rem;
}

.carousel-preview-slide.is-active {
  display: block;
}

.carousel-preview-stage.is-dragging {
  cursor: grabbing;
}

.carousel-preview-slide img {
  width: 100%;
  display: block;
}

.carousel-live-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: .9rem;
  overflow: hidden;
  background: #0f141b;
}

.carousel-live-preview-bg,
.carousel-live-preview-vignette,
.carousel-live-preview-layers,
.carousel-preview-thumb-bg,
.carousel-preview-thumb-vignette,
.carousel-preview-thumb-layers {
  position: absolute;
  inset: 0;
}

.carousel-live-preview-bg,
.carousel-preview-thumb-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-live-preview-vignette,
.carousel-preview-thumb-vignette {
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
}

.carousel-live-preview-layers,
.carousel-preview-thumb-layers {
  pointer-events: none;
}

.carousel-live-layer,
.carousel-thumb-layer {
  position: absolute;
  white-space: pre-wrap;
  overflow: hidden;
  word-break: break-word;
}

.carousel-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 18, .72);
  color: #eef2f7;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-preview-nav.prev { left: 14px; }
.carousel-preview-nav.next { right: 14px; }

.carousel-preview-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(8, 12, 18, .72);
  color: #eef2f7;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .9rem;
  font-weight: 700;
}

.carousel-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
}

.carousel-preview-thumb {
  background: #11161d;
  border: 1px solid #293241;
  border-radius: .8rem;
  padding: .25rem;
}

.carousel-preview-thumb.is-active {
  border-color: #9cff2e;
  box-shadow: 0 0 0 .12rem rgba(156,255,46,.18);
}

.carousel-preview-thumb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: .55rem;
  overflow: hidden;
  background: #0f141b;
}

.video-preview-shell {
  width: min(420px, 100%);
  padding: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(156,255,46,.12), transparent 32%),
    linear-gradient(180deg, rgba(18,24,33,.98) 0%, rgba(7,10,15,.98) 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.video-preview-screen {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  background: #05080c;
}

.details-sticky-panel {
  position: static;
}

@media (min-width: 1200px) {
  .details-sticky-panel {
    position: sticky;
    top: 1rem;
  }
}

.layout-studio {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 22, 29, .98) 0%, rgba(10, 15, 20, .98) 100%);
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.layout-studio-body {
  display: block;
}

.layout-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.layout-studio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.layout-studio-status strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
}

.layout-studio-tips {
  max-width: 460px;
  color: #8f9bad;
  font-size: .95rem;
}

.layout-studio-workbench {
  display: grid;
  gap: 1rem;
}

.layout-stage-column,
.layout-side-column {
  min-width: 0;
}

.layout-stage-shell {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: #0c1117;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

.layout-stage-viewport {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: .85rem;
  background: #0a0f14;
}

.layout-stage-viewport.is-media-drop {
  outline: 2px dashed rgba(156,255,46,.72);
  outline-offset: -10px;
}

.layout-stage-surface {
  width: 1080px;
  height: 1350px;
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
  background: #0a0f14;
}

.layout-stage-background,
.layout-stage-tint,
.layout-stage-vignette,
.layout-stage-layers,
.layout-stage-transition-black {
  position: absolute;
  inset: 0;
}

.layout-stage-background {
  width: 1080px;
  height: 1350px;
  object-fit: cover;
  display: none;
}

.layout-stage-background.has-image {
  display: block;
}

.layout-stage-tint {
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.layout-stage-background-next,
.layout-stage-tint-next,
.layout-stage-layers-next {
  opacity: 0;
  pointer-events: none;
}

.layout-stage-vignette {
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
}

.layout-stage-transition-black {
  background: #05080c;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}


.layout-layer {
  position: absolute;
  border: 1px solid transparent;
  cursor: move;
  user-select: none;
}

.layout-layer.is-selected {
  border-color: #9cff2e;
  box-shadow: 0 0 0 .15rem rgba(156,255,46,.18);
}

.layout-stage-layers-next .layout-layer {
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: default;
}

.layout-layer-text {
  width: 100%;
  height: 100%;
  white-space: pre-wrap;
  overflow: hidden;
  word-break: break-word;
}

.layout-layer-media {
  width: 100%;
  height: 100%;
  display: block;
  object-position: center center;
  pointer-events: none;
}

.layout-layer-media-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(11,18,25,.72);
  border: 1px solid rgba(255,255,255,.08);
}

.layout-layer-media-frame.is-audio {
  background: linear-gradient(135deg, rgba(156,255,46,.10), rgba(0,0,0,.12));
}

.layout-layer-audio {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(156,255,46,.10), rgba(0,0,0,.12));
  color: #f5f7fa;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  padding: 1rem;
}

.layout-layer-text.is-editing {
  cursor: text;
  outline: 1px dashed rgba(156,255,46,.8);
  outline-offset: 4px;
  overflow: visible;
  min-height: 1.2em;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.layout-layer-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  bottom: -9px;
  border-radius: 999px;
  background: #9cff2e;
  border: 2px solid #0a0f14;
  cursor: nwse-resize;
}

.layout-layer-handle.is-tl {
  left: -9px;
  top: -9px;
  right: auto;
  bottom: auto;
  cursor: nwse-resize;
}

.layout-layer-handle.is-tr {
  right: -9px;
  top: -9px;
  bottom: auto;
  cursor: nesw-resize;
}

.layout-layer-handle.is-bl {
  left: -9px;
  bottom: -9px;
  right: auto;
  cursor: nesw-resize;
}

.layout-layer-handle.is-br {
  right: -9px;
  bottom: -9px;
  cursor: nwse-resize;
}

.layout-panel {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: #0f141b;
  padding: 1rem;
  width: 100%;
}

.layout-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.layout-preset-button {
  border: 1px solid #334155;
  background: #11161d;
  color: #eef2f7;
  border-radius: .8rem;
  padding: .6rem .7rem;
  font-size: .88rem;
  font-weight: 700;
}

.layout-preset-button:hover {
  border-color: rgba(156,255,46,.4);
  color: #d8ffb0;
}

.layout-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
  align-items: center;
}

.layout-rich-toolbar .btn {
  min-width: 2.2rem;
}

.layout-rich-color {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: .2rem;
}

.layout-rich-select {
  width: 11rem;
  min-width: 11rem;
}

.layout-rich-size {
  width: 4.4rem;
  min-width: 4.4rem;
}

.layout-rich-editor {
  min-height: 160px;
  white-space: pre-wrap;
  overflow: auto;
}

.layout-rich-editor:focus {
  outline: none;
}

.layout-layer-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.layout-layer-item {
  border: 1px solid #334155;
  background: #11161d;
  color: #eef2f7;
  border-radius: .8rem;
  padding: .55rem .7rem;
  text-align: left;
}

.layout-layer-item.is-selected {
  border-color: #9cff2e;
  color: #d8ffb0;
}

.workspace-secondary {
  margin-top: .5rem;
}

.workspace-drawer {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: #171c24;
  padding: 1rem;
}

.workspace-drawer summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-drawer summary::-webkit-details-marker {
  display: none;
}

.workspace-drawer summary span {
  font-weight: 800;
  font-size: 1.05rem;
}

.workspace-drawer summary small {
  color: #8f9bad;
}

@media (min-width: 992px) {
  .details-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
    align-items: start;
  }

  .editor-form-grid {
    grid-template-columns: minmax(320px, .7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .editor-form-grid > .slide-editor-stack {
    grid-column: 1;
  }

  .editor-form-grid > .layout-studio {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .editor-form-grid > .technical-editor,
  .editor-form-grid > .d-flex.justify-content-end {
    grid-column: 1 / -1;
  }

  .layout-panel {
    position: sticky;
    top: 1rem;
  }

  .layout-studio-workbench {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}

.layout-studio.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2100;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.layout-studio.is-fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, .82);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.layout-studio.is-fullscreen .layout-studio-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 20, 27, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #293241;
  padding: 1rem 1.25rem;
}

.layout-studio.is-fullscreen .layout-studio-body {
  display: block;
  height: calc(100vh - 96px);
  overflow: auto;
  padding: 1rem 1.25rem 1.25rem;
}

.layout-studio.is-fullscreen .layout-studio-actions > * {
  display: inline-flex;
}

.layout-studio.is-fullscreen .layout-studio-workbench {
  --bs-gutter-x: 1rem;
}

.layout-studio.is-fullscreen .layout-stage-shell {
  min-height: calc(100vh - 170px);
  padding: 1rem;
}

.layout-studio.is-fullscreen .layout-stage-viewport {
  width: min(100%, 820px);
  height: min(calc(100vh - 220px), 1025px);
  aspect-ratio: auto;
}

.layout-studio.is-fullscreen .layout-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

@media (min-width: 1200px) {
  .layout-studio.is-fullscreen .layout-studio-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }

  .layout-studio.is-fullscreen .layout-studio-workbench > div {
    width: auto;
  }
}

@media (min-width: 992px) {
  .editor-workflow {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
}

@media (max-width: 991.98px) {
  .layout-stage-shell {
    min-height: auto;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: #ffbf8d;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* ── Dashboard ── */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 .35rem;
}

.dash-subtitle {
  color: #98a4b5;
  font-size: .95rem;
  margin: 0;
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-kpi-card {
  padding: 20px 24px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}

.dash-kpi-label {
  display: block;
  color: #98a4b5;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.dash-kpi-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: #f7f9fc;
}

.dash-section-title {
  font-size: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}

/* ── Home shared ── */
.home-primary-btn,
.home-secondary-btn,
.home-batch-btn {
  min-height: 48px;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  font-weight: 800;
}

.home-secondary-btn {
  background: rgba(255,255,255,.03);
}

.home-input {
  min-height: 52px;
  border-radius: 1rem;
  background: rgba(7, 10, 14, .5);
  border-color: rgba(255,255,255,.08);
}

.home-input:focus {
  border-color: rgba(156,255,46,.42);
  box-shadow: 0 0 0 .2rem rgba(156,255,46,.12);
}

.home-badge {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255, 191, 141, .12);
  color: #ffd2b2;
  border: 1px solid rgba(255, 191, 141, .22);
  font-size: .85rem;
  font-weight: 700;
}

.home-badge-muted {
  background: rgba(255,255,255,.04);
  color: #c7d0dc;
  border-color: rgba(255,255,255,.08);
}

.home-post-card {
  border-radius: 1.35rem;
  padding: 20px;
  min-height: 100%;
}

.home-post-title {
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #f5f7fb;
  margin-bottom: .65rem;
}

.home-post-meta {
  color: #95a2b3;
  margin-bottom: 1.25rem;
}

.home-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .85rem;
  font-weight: 700;
}

.home-status.is-ready {
  background: rgba(94, 234, 146, .12);
  color: #9ef0ba;
  border: 1px solid rgba(94, 234, 146, .24);
}

.home-status.is-pending {
  background: rgba(255, 191, 141, .12);
  color: #ffd2b2;
  border: 1px solid rgba(255, 191, 141, .22);
}

.home-post-link {
  color: #f4b942;
  font-weight: 800;
}

.home-empty-state {
  padding: 48px 24px;
}

@media (max-width: 991.98px) {
  .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .dash-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

.details-hero {
  padding: 1rem 1.25rem;
}

.details-hero-copy h1 {
  letter-spacing: -.04em;
  line-height: 1.02;
}

.details-hero-actions form,
.details-hero-actions > a {
  margin: 0;
}

.slide-editor-stack,
.layout-studio,
.technical-editor {
  box-shadow: none;
}

.carousel-phrase-label {
  color: #8f9bad;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.editor-save-row {
  display: flex;
  justify-content: flex-end;
}

.layout-panel-group + .layout-panel-group {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .9rem;
}

.layout-stage-shell {
  min-height: 0;
  padding: .9rem;
}

.layout-stage-viewport {
  max-width: 720px;
  margin: 0 auto;
}

.layout-side-column {
  width: 100%;
}

.layout-panel {
  max-width: 100%;
}

.layout-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-preset-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.layout-layer-item {
  word-break: break-word;
}

@media (min-width: 992px) {
  .editor-form-grid {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .editor-form-grid > .slide-editor-stack {
    align-self: start;
  }

  .editor-form-grid > .layout-studio {
    grid-row: 1 / span 2;
  }

  .layout-studio-workbench {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
  }

  .layout-side-column {
    max-width: 320px;
    justify-self: end;
  }
}

@media (max-width: 991.98px) {
  .details-hero-actions {
    flex-direction: column;
  }

  .details-hero-actions form,
  .details-hero-actions > a {
    width: 100%;
  }

  .details-hero-actions .btn {
    width: 100%;
  }

  .layout-studio-workbench {
    grid-template-columns: 1fr;
  }

  .layout-preset-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contador de caracteres dos campos de slide */
.char-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  transition: color 0.15s;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.char-counter::after {
  content: " car.";
  font-weight: 400;
}

.char-counter.is-warn {
  color: #f59e0b;
}

.char-counter.is-over {
  color: #ef4444;
}

.char-counter.is-over::before {
  content: "–";
}

/* ===== ELEMENT LIBRARY ===== */
.element-library {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0 0;
}

.element-library-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.element-library-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.elem-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 7px 10px 5px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-width: 56px;
}

.elem-btn:hover {
  background: rgba(156,255,46,0.10);
  border-color: rgba(156,255,46,0.35);
  color: #9CFF2E;
}

.elem-btn:active {
  background: rgba(156,255,46,0.18);
}

.elem-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.elem-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== PROPERTY TABS ===== */
.prop-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 3px;
}

.prop-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 4px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.prop-tab:hover {
  color: #94a3b8;
}

.prop-tab.is-active {
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
}

.prop-panel {
  display: none;
}

.prop-panel.is-active {
  display: block;
}

/* ===== COLOR SWATCHES ===== */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, border-color 0.12s;
}

.swatch:hover {
  transform: scale(1.25);
  border-color: rgba(255,255,255,0.5);
}

/* ===== VISUAL TAB SECTIONS ===== */
.visual-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
}

.visual-section-header {
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.visual-section-body {
  padding: 10px;
}

.editor-slide-motion-card {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(156,255,46,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
}

.editor-slide-motion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.editor-slide-motion-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.editor-slide-motion-head small {
  color: #9fb0c3;
  font-size: 11px;
}

/* Undo/redo disabled state */
[data-layout-undo]:disabled,
[data-layout-redo]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =====================================================
   EDITOR APP — full-page visual editor (Posts/Details)
   ===================================================== */

.editor-page-main {
  padding: 0 !important;
  max-width: 100% !important;
}

.editor-app {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 58px);
  height: auto;
  overflow: visible;
  background: #060a10;
  position: relative;
}

/* --- Topbar --- */
.editor-topbar {
  flex: 0 0 auto;
  background: #0a0e17;
  border-bottom: 1px solid #18222e;
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  gap: .55rem;
  padding: .4rem .65rem;
  min-height: 64px;
  z-index: 60;
  overflow: visible;
}

.editor-topbar-start {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 240px;
}

.editor-back-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #5d6e84;
  text-decoration: none;
  font-size: .78rem;
  padding: .28rem .5rem;
  border-radius: .4rem;
  border: 1px solid transparent;
  transition: all .12s;
  white-space: nowrap;
}
.editor-back-link:hover {
  color: #eef2f7;
  border-color: #253040;
  background: rgba(255,255,255,.04);
}
.editor-back-link svg {
  flex: none;
}

.editor-post-info {
  min-width: 0;
}
.editor-post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: #eef2f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  line-height: 1.2;
}
.editor-post-meta {
  font-size: .67rem;
  color: #3d5068;
  white-space: nowrap;
  display: flex;
  gap: .4rem;
  align-items: center;
  line-height: 1;
  margin-top: 2px;
  display: none;
}
.editor-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f607a;
}
.editor-status-dot.is-published { background: #9cff2e; }
.editor-status-dot.is-scheduled { background: #ffbf8d; }

.editor-topbar-sep {
  display: none;
}

.editor-topbar-center {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.editor-tool-group {
  display: flex;
  gap: .3rem;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
  padding: .24rem;
  border: 1px solid #18222e;
  border-radius: .8rem;
  background: #0d141c;
}

.editor-tool-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: .26rem .38rem;
  border: 1px solid #18222e;
  border-radius: .38rem;
  background: #0c1118;
  color: #8f9bad;
  cursor: pointer;
  font-size: .6rem;
  min-width: 38px;
  transition: border-color .1s, color .1s, background .1s;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600;
}
.editor-topbar .editor-tool-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: .58rem;
}
.editor-topbar .editor-tool-btn span:not(.ti) {
  display: none;
}
.editor-tool-btn .ti {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
}
.editor-tool-btn:hover {
  border-color: #2a3a50;
  color: #eef2f7;
  background: #111922;
}
.editor-tool-btn:disabled {
  opacity: .32;
  cursor: default;
}
.editor-tool-btn.is-danger:hover {
  border-color: rgba(239,68,68,.45);
  color: #f87171;
  background: rgba(239,68,68,.07);
}
.editor-tool-btn.is-accent {
  color: #9CFF2E;
  border-color: rgba(156,255,46,.25);
}
.editor-tool-btn.is-accent:hover {
  border-color: rgba(156,255,46,.55);
  background: rgba(156,255,46,.08);
}
.editor-tool-btn.is-accent:disabled {
  color: rgba(156,255,46,.35);
  border-color: rgba(156,255,46,.12);
}

/* ── Save-model toolbar popover ── */
.editor-save-model-drop {
  position: relative;
}
.editor-save-model-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 300;
  background: #141928;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px;
  min-width: 220px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editor-save-model-actions {
  display: flex;
  gap: 6px;
}

/* ── Toast notification ── */
.editor-toast {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1e2535;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: #dde4ee;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 400;
}
.editor-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.editor-toast--success { border-color: rgba(156,255,46,.35); color: #9CFF2E; }
.editor-toast--error   { border-color: rgba(239,68,68,.35);  color: #f87171; }
.editor-toast--info    { border-color: rgba(148,163,184,.25); color: #94a3b8; }

/* ── Templates section ── */
.templates-save-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.templates-save-row .form-control {
  flex: 1;
  min-width: 0;
}
.templates-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.templates-empty {
  font-size: .78rem;
  color: #64748b;
  text-align: center;
  padding: 10px 0;
}
.template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.template-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.template-name {
  font-size: .8rem;
  font-weight: 600;
  color: #dde4ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.template-role-tag {
  font-size: .66rem;
  color: #64748b;
  font-weight: 500;
}
.template-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.media-library-card {
  align-items: stretch;
  gap: 10px;
  cursor: grab;
}

.media-library-card:active {
  cursor: grabbing;
}

.media-library-thumb {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-library-thumb img,
.media-library-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-library-thumb.is-audio {
  background: linear-gradient(135deg, rgba(156,255,46,.16), rgba(0,0,0,.22));
}

.library-audio-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(156,255,46,.5);
  background: rgba(156,255,46,.1);
  color: #9cff2e;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .1s;
  line-height: 1;
}
.library-audio-play-btn:hover {
  background: rgba(156,255,46,.25);
  border-color: #9cff2e;
  transform: scale(1.08);
}
.library-audio-play-btn.is-playing {
  background: rgba(156,255,46,.3);
  border-color: #9cff2e;
  animation: audio-pulse 1.2s ease-in-out infinite;
}
@keyframes audio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(156,255,46,.4); }
  50% { box-shadow: 0 0 0 6px rgba(156,255,46,.0); }
}

.media-library-card .template-row-info {
  justify-content: center;
}

.editor-selection-bar.is-media-mode .editor-selection-toolbar-group-font,
.editor-selection-bar.is-media-mode .editor-selection-toolbar-group-size,
.editor-selection-bar.is-media-mode .editor-selection-toolbar-group-color,
.editor-selection-bar.is-media-mode .editor-selection-toolbar-group:has([data-selection-action]) {
  display: none;
}

.editor-selection-bar.is-media-mode [data-selection-panel-toggle="spacing"],
.editor-selection-bar.is-media-mode [data-selection-panel-toggle="effects"],
.editor-selection-bar.is-media-mode [data-selection-panel-toggle="animate"],
.editor-selection-bar.is-media-mode [data-selection-panel-toggle="duration"] {
  display: none;
}

.editor-selection-bar.is-media-mode .editor-selection-toolbar {
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.editor-selection-bar.is-audio-mode .editor-selection-toolbar {
  flex-wrap: wrap;
}

.editor-selection-bar.is-audio-mode .editor-selection-toolbar-group {
  margin-bottom: .16rem;
}
.layout-preset-button.is-accent {
  color: #9CFF2E;
  border-color: rgba(156,255,46,.3);
}
.layout-preset-button.is-accent:hover {
  background: rgba(156,255,46,.1);
  border-color: rgba(156,255,46,.55);
}
.layout-preset-button.is-danger {
  color: #f87171;
  border-color: rgba(239,68,68,.3);
}
.layout-preset-button.is-danger:hover {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.5);
}

.editor-topbar-end {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.editor-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .18rem;
  border: 1px solid #253040;
  border-radius: .65rem;
  background: #0c1118;
}

.editor-mode-switch.is-locked {
  padding-right: .35rem;
}

.editor-mode-switch.is-locked .editor-mode-btn[disabled] {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.editor-mode-btn {
  border: 0;
  background: transparent;
  color: #8f9bad;
  font-size: .76rem;
  font-weight: 800;
  border-radius: .5rem;
  padding: .35rem .7rem;
}

.editor-mode-btn.is-active {
  background: rgba(156,255,46,.12);
  color: #d9ffb5;
}

.editor-discovery-bar {
  display: none !important;
}

.editor-topbar [data-layout-copy],
.editor-topbar [data-layout-paste],
.editor-topbar [data-save-model-drop] {
  display: none !important;
}

.editor-quick-actions {
  display: grid;
  gap: .8rem;
}

.editor-quick-actions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.editor-quick-actions-head span {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f9bad;
}

.editor-quick-actions-link {
  font-size: .78rem;
  font-weight: 700;
  color: #c8ff7c;
  text-decoration: none;
}

.editor-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}

.editor-quick-actions-grid .editor-tool-btn {
  min-width: 0;
  width: 100%;
  justify-content: center;
  padding: .45rem .35rem;
  font-size: .62rem;
}

.editor-quick-actions-grid .editor-tool-btn span:not(.ti) {
  display: inline;
}

.editor-save-btn {
  padding: .3rem .8rem;
  background: #9cff2e;
  border: 1px solid #9cff2e;
  border-radius: .4rem;
  color: #060c10;
  font-weight: 800;
  font-size: .78rem;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.editor-save-btn:hover {
  background: #b0ff50;
}

/* Actions dropdown */
.editor-actions-drop {
  position: relative;
  z-index: 140;
}
.editor-actions-toggle {
  padding: .3rem .65rem;
  border: 1px solid #253040;
  border-radius: .4rem;
  background: #0c1118;
  color: #8f9bad;
  font-size: .78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
}
.editor-actions-toggle:hover {
  color: #eef2f7;
  border-color: #2a3a50;
  background: #111922;
}
.editor-actions-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #0e1520;
  border: 1px solid #253040;
  border-radius: .55rem;
  min-width: 188px;
  z-index: 500;
  display: none;
  padding: .35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.editor-actions-drop.is-open .editor-actions-menu {
  display: block;
}
.editor-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .4rem .6rem;
  border-radius: .38rem;
  border: none;
  background: transparent;
  color: #aab3c1;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .1s;
}
.editor-menu-item:hover {
  background: rgba(255,255,255,.06);
  color: #eef2f7;
}
.editor-menu-label {
  display: block;
  padding: 6px 14px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
  pointer-events: none;
}

@media (max-width: 1480px) {
  .editor-topbar-center {
    justify-content: flex-start;
  }

  .editor-post-title {
    max-width: 160px;
  }
}

@media (max-width: 1280px) {
  .editor-topbar {
    flex-wrap: wrap;
    min-height: auto;
  }

  .editor-topbar-center {
    order: 3;
    width: 100%;
  }

  .editor-props {
    top: 146px;
  }
}

@media (max-width: 1100px) {
  .editor-topbar {
    min-height: 88px;
  }

  .editor-tool-btn {
    min-width: 34px;
    padding: .28rem .34rem;
  }

  .editor-tool-btn span:not(.ti) {
    display: none;
  }

  .editor-actions-toggle,
  .editor-save-btn,
  .editor-props-toggle {
    font-size: .74rem;
  }
}

@media (max-width: 760px) {
  .editor-topbar {
    padding: .45rem;
    min-height: auto;
  }

  .editor-topbar-start,
  .editor-topbar-end {
    width: 100%;
    justify-content: space-between;
  }

  .editor-post-meta {
    display: none;
  }

  .editor-post-title {
    max-width: 140px;
  }
}
.editor-menu-item.is-muted {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}
.editor-menu-item.is-danger:hover {
  background: rgba(239,68,68,.1);
  color: #f87171;
}
.editor-menu-divider {
  height: 1px;
  background: #1a2535;
  margin: .25rem 0;
}

/* --- Editor Body (3 columns) --- */
.editor-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 122px 1fr;
  overflow: visible;
  align-items: start;
}

/* --- Left: Filmstrip --- */
.editor-filmstrip {
  background: #080c12;
  border-right: 1px solid #18222e;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .55rem .4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  scrollbar-width: thin;
  scrollbar-color: #253040 transparent;
}

.filmstrip-slide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid #18222e;
  border-radius: .6rem;
  background: #090e14;
  cursor: pointer;
  transition: border-color .14s, background .14s;
  overflow: hidden;
  text-align: left;
  padding: 0;
  position: relative;
}
.filmstrip-slide:hover {
  border-color: #2a3a50;
  background: #0c121a;
}
.filmstrip-slide.is-active {
  border-color: #9cff2e;
  background: #0c121a;
}
.filmstrip-slide:focus-visible {
  outline: 2px solid #9cff2e;
  outline-offset: 2px;
}

.filmstrip-slide-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #060a10;
  overflow: hidden;
}
.filmstrip-slide-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filmstrip-slide-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.filmstrip-slide-info {
  padding: .22rem .4rem .28rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #0c111a;
}
.filmstrip-slide-num {
  font-size: .7rem;
  font-weight: 700;
  color: #c8d3e0;
  line-height: 1;
}
.filmstrip-slide.is-active .filmstrip-slide-num {
  color: #9cff2e;
}
.filmstrip-slide-role {
  font-size: .57rem;
  color: #3d5068;
  text-align: right;
  line-height: 1;
}

.filmstrip-regen-btn {
  position: absolute;
  top: .28rem;
  right: .28rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.18);
  color: #8f9bad;
  font-size: .68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, background .12s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.filmstrip-slide-wrap {
  position: relative;
}
.filmstrip-slide-wrap:hover .filmstrip-regen-btn {
  opacity: 1;
}
.filmstrip-regen-btn:hover {
  background: rgba(156,255,46,.28);
  border-color: #9cff2e;
  color: #9cff2e;
}

/* --- Center: Canvas area --- */
.editor-canvas-area {
  position: relative;
  background: #050910;
  overflow: visible;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto;
  align-items: stretch;
}

.editor-canvas-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(9,13,20,.86);
  color: #eef2f7;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(0,0,0,.32);
}

.editor-preview-overlay {
  display: none;
}

.editor-preview-overlay-controls {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: .9rem;
  width: min(920px, calc(100vw - 3rem));
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(7, 11, 18, .82);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
}

.editor-preview-overlay-play {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #eef2f7;
  font-size: 1rem;
  font-weight: 800;
}

.editor-preview-overlay-time {
  color: #d8e0ea;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

.editor-preview-overlay-scrubber,
.editor-preview-overlay-volume {
  accent-color: #ffffff;
}

.editor-preview-overlay-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #eef2f7;
}

.editor-preview-overlay-volume {
  width: 124px;
}

.editor-app.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #050910;
  margin: 0;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}

.editor-app.is-fullscreen .editor-body {
  height: 100vh;
  grid-template-columns: 1fr;
}

.editor-app.is-fullscreen .editor-filmstrip,
.editor-app.is-fullscreen .editor-props {
  display: none;
}

.editor-app.is-fullscreen .editor-canvas-area {
  min-height: 100vh;
  grid-template-rows: 1fr;
  background: #02050b;
  position: relative;
}

.editor-app.is-fullscreen .editor-topbar,
.editor-app.is-fullscreen .editor-discovery-bar,
.editor-app.is-fullscreen .editor-selection-bar,
.editor-app.is-fullscreen .editor-canvas-status,
.editor-app.is-fullscreen .editor-canvas-timeline {
  display: none;
}

.editor-app.is-fullscreen .editor-canvas-scroll {
  min-height: 100vh;
  padding: 1.25rem 1.25rem 7.5rem;
  overflow: auto;
  align-items: center;
}

.editor-app.is-fullscreen .editor-preview-overlay {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(100%, calc(100vw - 2rem));
  padding: 0 1rem;
  margin-top: 0;
  z-index: 30;
  pointer-events: none;
}

.editor-app.is-fullscreen .editor-preview-overlay-controls {
  pointer-events: auto;
}

.editor-app.is-fullscreen .editor-canvas-close {
  top: 1.25rem;
  left: 1.25rem;
  right: auto;
  width: auto;
  min-width: 52px;
  height: 44px;
  padding: 0 1rem;
  border-radius: .85rem;
  font-size: 1rem;
  z-index: 35;
}

.editor-app.is-fullscreen.mode-reels .editor-canvas-area .layout-stage-viewport {
  width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px) !important;
  height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px) !important;
  max-width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px);
  max-height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px);
  margin: 0 auto;
}

.editor-app.is-fullscreen.mode-post .editor-canvas-area .layout-stage-viewport {
  width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px) !important;
  height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px) !important;
  max-width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px);
  max-height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .editor-preview-overlay-controls {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    border-radius: 1.1rem;
    padding: .8rem .9rem;
  }

  .editor-preview-overlay-time {
    grid-column: 2;
    justify-self: end;
    font-size: .82rem;
  }

  .editor-preview-overlay-scrubber {
    grid-column: 1 / -1;
  }

  .editor-preview-overlay-volume-wrap {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

.editor-canvas-area > * {
  min-height: 0;
}

.editor-canvas-scroll {
  grid-row: 2;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem .85rem;
}

.editor-app.mode-post .editor-canvas-area {
  grid-template-rows: auto minmax(520px, 1fr) auto auto auto;
}

.editor-app.mode-post .editor-canvas-scroll {
  min-height: 520px;
  padding: 1rem;
  align-items: center;
}

.editor-app.mode-reels .editor-body {
  grid-template-columns: 98px 1fr;
}

.editor-app.mode-reels .editor-canvas-area {
  grid-template-rows: auto minmax(520px, auto) auto auto auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(156,255,46,.06), transparent 28%),
    linear-gradient(180deg, #060a10 0%, #050910 100%);
}

.editor-app.mode-reels .editor-canvas-scroll {
  min-height: 520px;
  padding: 1.2rem 1rem 1rem;
  align-items: flex-start;
}

/* Viewport inside the new editor: height-driven, not width-driven */
.editor-canvas-area .layout-stage-viewport {
  width: auto !important;
  height: 100% !important;
  max-height: 100%;
  aspect-ratio: 4/5 !important;
  flex: none;
}

.editor-app.mode-post .editor-canvas-area .layout-stage-viewport {
  width: min(100%, 760px) !important;
  height: auto !important;
  max-height: none;
}

.editor-app.mode-reels .editor-canvas-area .layout-stage-viewport {
  height: min(62vh, 760px) !important;
  max-height: min(62vh, 760px);
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 26px 64px rgba(0,0,0,.42);
  background:
    radial-gradient(circle at top right, rgba(156,255,46,.12), transparent 24%),
    linear-gradient(180deg, rgba(16,20,28,.98) 0%, rgba(8,12,18,.98) 100%);
}

.editor-app.is-fullscreen .editor-body {
  grid-template-columns: 1fr !important;
  height: 100vh !important;
  align-items: stretch !important;
}

.editor-app.is-fullscreen .editor-canvas-area {
  grid-template-rows: 1fr !important;
  min-height: 100vh !important;
}

.editor-app.is-fullscreen .editor-canvas-scroll {
  grid-row: auto !important;
  min-height: 100vh !important;
  overflow: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem 1.25rem 7.5rem !important;
}

.editor-app.is-fullscreen .editor-canvas-area .layout-stage-viewport {
  flex: 0 0 auto !important;
  width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px) !important;
  height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px) !important;
  max-width: min(calc(100vw - 4rem), calc((100vh - 10rem) * 0.8), 832px) !important;
  max-height: min(calc(100vh - 10rem), calc((100vw - 4rem) * 1.25), 1040px) !important;
  aspect-ratio: 4 / 5 !important;
  margin: 0 auto !important;
}

.editor-app.mode-reels .editor-canvas-status {
  padding-top: .45rem;
  justify-content: center;
  border-top: 0;
  background: transparent;
}

.editor-app.mode-reels .editor-canvas-status span {
  font-size: .74rem;
}

.editor-canvas-status {
  flex: 0 0 auto;
  padding: .28rem .65rem;
  border-top: 1px solid #12181f;
  background: #080c13;
  font-size: .68rem;
  color: #3d5068;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  overflow: hidden;
}
.editor-canvas-status strong {
  color: #6b7a8f;
  font-weight: 600;
}

.editor-selection-bar {
  position: relative;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: min(1120px, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  display: grid;
  gap: .34rem;
  margin: .9rem auto .25rem;
  padding: .36rem .62rem .48rem;
  border: 1px solid rgba(72,88,112,.42);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.26);
  background:
    linear-gradient(180deg, rgba(249,251,254,.98) 0%, rgba(240,244,249,.96) 100%);
  backdrop-filter: blur(16px);
  z-index: 24;
}

.editor-selection-bar[hidden] {
  display: none;
}

.editor-selection-bar-head {
  display: none;
}

.editor-app.mode-post .editor-selection-bar-head {
  cursor: move;
}

.editor-selection-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .34rem;
  overflow: hidden;
}

.editor-selection-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding-right: .15rem;
  border-right: 1px solid rgba(148,162,184,.28);
  flex: 0 0 auto;
}

.editor-selection-toolbar-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.editor-selection-toolbar-group-font {
  min-width: 154px;
}

.editor-selection-font-trigger {
  height: 30px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: 0 .66rem;
  border: 1px solid rgba(138,153,173,.28);
  border-radius: .64rem;
  background: rgba(255,255,255,.9);
  color: #192433;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.editor-selection-font-trigger span[data-selection-font-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-selection-font-caret {
  color: #607086;
  font-size: .7rem;
  flex: 0 0 auto;
}

.editor-selection-inline-select,
.editor-selection-inline-number,
.editor-selection-inline-color,
.editor-selection-icon-btn,
.editor-selection-pill-btn,
.editor-selection-position-btn {
  height: 30px;
  border-radius: .64rem;
  border: 1px solid rgba(138,153,173,.28);
  background: rgba(255,255,255,.9);
  color: #192433;
}

.editor-selection-inline-select,
.editor-selection-inline-number {
  padding: .22rem .5rem;
  font-weight: 700;
  font-size: .74rem;
}

.editor-selection-inline-select {
  min-width: 138px;
}

.editor-selection-inline-number {
  width: 50px;
  text-align: center;
}

.editor-selection-inline-color {
  width: 34px;
  padding: .1rem;
}

.editor-selection-icon-btn,
.editor-selection-pill-btn,
.editor-selection-position-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .52rem;
  font-weight: 800;
  font-size: .7rem;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}

.editor-selection-icon-btn {
  min-width: 30px;
  letter-spacing: .01em;
}

.editor-selection-icon-btn:hover,
.editor-selection-pill-btn:hover,
.editor-selection-position-btn:hover {
  background: #f4f7fb;
  border-color: rgba(138,153,173,.46);
}

.editor-selection-icon-btn.is-active,
.editor-selection-pill-btn.is-active,
.editor-selection-position-btn.is-active,
.editor-selection-effect-card.is-active {
  background: rgba(169,132,255,.14);
  border-color: rgba(145,104,255,.46);
  color: #5a33c9;
}

.editor-selection-panels {
  display: grid;
  gap: .45rem;
  position: relative;
}

.editor-selection-panel {
  border-top: 1px solid rgba(148,162,184,.2);
  padding-top: .55rem;
}

.editor-selection-panel-side {
  position: absolute;
  top: calc(100% + 10px);
  left: -220px;
  width: 360px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: .75rem;
  border: 1px solid rgba(148,162,184,.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(252,253,255,.98) 0%, rgba(241,245,250,.98) 100%);
  box-shadow: 0 22px 48px rgba(0,0,0,.24);
  z-index: 36;
}

.editor-selection-panel-side-wide {
  width: 420px;
}

.editor-selection-panel-side-compact {
  width: 320px;
}

.editor-selection-sidepanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.editor-selection-sidepanel-header strong {
  font-size: .96rem;
  color: #192433;
  font-weight: 800;
}

.editor-selection-sidepanel-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(138,153,173,.28);
  border-radius: .7rem;
  background: rgba(255,255,255,.9);
  color: #243244;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.editor-selection-sidepanel-close:hover {
  background: #f4f7fb;
  border-color: rgba(138,153,173,.46);
}


.editor-selection-font-panel {
  display: grid;
  gap: .5rem;
}

.editor-selection-font-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .34rem;
}

.editor-selection-font-tab {
  height: 28px;
  padding: 0 .62rem;
  border: 1px solid rgba(138,153,173,.24);
  border-radius: .72rem;
  background: rgba(255,255,255,.88);
  color: #334155;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-selection-font-tab.is-active {
  background: rgba(169,132,255,.14);
  border-color: rgba(145,104,255,.46);
  color: #5a33c9;
}

.editor-selection-font-search-wrap {
  display: block;
}

.editor-selection-font-search {
  width: 100%;
  height: 32px;
  border-radius: .72rem;
  border: 1px solid rgba(138,153,173,.28);
  background: #fff;
  color: #192433;
  padding: .2rem .62rem;
  font-size: .74rem;
}

.editor-selection-font-list {
  display: grid;
  gap: .32rem;
  max-height: 244px;
  overflow: auto;
  padding-right: .1rem;
}

.editor-selection-font-group {
  display: grid;
  gap: .28rem;
}

.editor-selection-font-group + .editor-selection-font-group {
  margin-top: .22rem;
}

.editor-selection-font-group-title {
  color: #607086;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 .2rem;
}

.editor-selection-font-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .42rem .56rem;
  border: 1px solid rgba(138,153,173,.2);
  border-radius: .72rem;
  background: rgba(255,255,255,.82);
  color: #192433;
  text-align: left;
  cursor: pointer;
}

.editor-selection-font-item strong {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

.editor-selection-font-item span {
  font-size: .64rem;
  color: #607086;
}

.editor-selection-font-item-info {
  display: grid;
  gap: .1rem;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  justify-items: start;
  appearance: none;
  cursor: pointer;
}

.editor-selection-font-favorite {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(138,153,173,.24);
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: .8rem;
  cursor: pointer;
}

.editor-selection-font-favorite.is-active {
  color: #f59e0b;
  border-color: rgba(245,158,11,.36);
  background: rgba(245,158,11,.08);
}

.editor-selection-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .58rem;
}

.editor-selection-effect-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .42rem;
}

.editor-selection-effects-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 92px minmax(0, 1.15fr) 92px minmax(0, 1.15fr) 92px;
  gap: .38rem;
  align-items: end;
}

.editor-selection-effects-row-extended {
  margin-top: .26rem;
}

.editor-selection-spacing-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, 1.2fr) 120px 108px;
  gap: .48rem;
  align-items: end;
}

.editor-selection-panel[data-selection-panel="effects"] .editor-selection-effect-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.editor-selection-panel[data-selection-panel="effects"] .editor-selection-effects-row,
.editor-selection-panel[data-selection-panel="effects"] .editor-selection-effects-row-extended {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: .42rem;
  margin-top: .42rem;
}

.editor-selection-panel[data-selection-panel="effects"] .editor-selection-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .42rem;
}

.editor-selection-panel[data-selection-panel="spacing"] .editor-selection-spacing-row {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: .42rem;
}

.editor-selection-panel[data-selection-panel="spacing"] .editor-selection-field-toggle {
  grid-column: 1 / -1;
}

.editor-selection-animate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 140px 92px 92px;
  gap: .38rem;
  align-items: end;
}

.editor-selection-animate-row-main {
  grid-template-columns: minmax(0, 1.75fr) 140px 92px 92px;
}

.editor-selection-animate-row-main .editor-selection-field {
  min-width: 0;
}

.editor-selection-animate-row-main .editor-selection-field-wide {
  grid-column: auto;
}

.editor-selection-animate-row-sliders {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editor-selection-animate-row-sliders .editor-selection-field-wide {
  grid-column: span 2;
}

.editor-selection-animate-row + .editor-selection-animate-row {
  margin-top: .26rem;
}

.editor-selection-effect-grid-animations {
  margin-bottom: .48rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.editor-selection-panel[data-selection-panel="animate"] .editor-selection-effect-card {
  min-height: 32px;
  padding: .22rem .36rem;
  gap: .22rem;
  border-radius: .62rem;
}

.editor-selection-panel[data-selection-panel="animate"] .editor-selection-effect-card strong {
  font-size: .69rem;
}

.editor-selection-panel[data-selection-panel="animate"] .editor-selection-effect-card span {
  font-size: .56rem;
}

.editor-selection-effect-card {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .28rem;
  padding: .26rem .42rem;
  border-radius: .72rem;
  border: 1px solid rgba(138,153,173,.28);
  background: #fff;
  color: #192433;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.editor-selection-effect-card strong {
  font-size: .72rem;
  line-height: 1;
  flex: 0 0 auto;
}

.editor-selection-effect-card span {
  font-size: .58rem;
  color: #607086;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-selection-panel-grid-effects-meta {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .38rem;
  margin-top: .26rem;
}

.editor-selection-position-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: .3rem;
  align-items: center;
}

.editor-selection-position-btn {
  height: 26px;
  min-height: 26px;
  min-width: 26px;
  padding: 0 .24rem;
  border-radius: .56rem;
  font-size: .78rem;
  font-weight: 700;
}

.editor-selection-panel[data-selection-panel="position"] .editor-selection-field span,
.editor-selection-panel[data-selection-panel="duration"] .editor-selection-field span,
.editor-selection-panel[data-selection-panel="animate"] .editor-selection-field span,
.editor-selection-panel[data-selection-panel="effects"] .editor-selection-field span,
.editor-selection-panel[data-selection-panel="opacity"] .editor-selection-field span,
.editor-selection-panel[data-selection-panel="spacing"] .editor-selection-field span {
  font-size: .62rem;
}

.editor-selection-panel[data-selection-panel="position"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="position"] .editor-selection-field select,
.editor-selection-panel[data-selection-panel="duration"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="duration"] .editor-selection-field select,
.editor-selection-panel[data-selection-panel="animate"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="animate"] .editor-selection-field select,
.editor-selection-panel[data-selection-panel="effects"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="effects"] .editor-selection-field select,
.editor-selection-panel[data-selection-panel="opacity"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="opacity"] .editor-selection-field select,
.editor-selection-panel[data-selection-panel="spacing"] .editor-selection-field input,
.editor-selection-panel[data-selection-panel="spacing"] .editor-selection-field select {
  height: 28px;
  padding: .12rem .38rem;
  font-size: .66rem;
}

.editor-selection-field {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.editor-selection-field-compact {
  gap: .16rem;
}

.editor-selection-field-number {
  max-width: 104px;
}

.editor-selection-field-wide {
  grid-column: span 2;
}

.editor-selection-field-toggle {
  align-content: end;
}

.editor-selection-field span {
  color: #607086;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.editor-selection-field input,
.editor-selection-field select {
  width: 100%;
  height: 34px;
  border-radius: .75rem;
  border: 1px solid rgba(138,153,173,.28);
  background: #fff;
  color: #192433;
  padding: .22rem .5rem;
}

.editor-selection-field input[type="color"] {
  padding: .2rem;
}

.editor-selection-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(138,153,173,.28);
  background: #fff;
  padding: 3px;
}

.editor-selection-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.editor-selection-switch span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform .14s ease, background .14s ease;
}

.editor-selection-switch input:checked + span {
  transform: translateX(22px);
  background: #9cff2e;
}

@media (max-width: 1200px) {
  .editor-selection-bar {
    width: min(1040px, calc(100% - 1.5rem));
  }

  .editor-selection-effect-grid,
  .editor-selection-panel-grid,
  .editor-selection-position-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.editor-selection-field-wide {
  grid-column: span 2;
}

.editor-canvas-timeline {
  display: grid;
  gap: .65rem;
  padding: .5rem .65rem .65rem;
  border-top: 1px solid #10161d;
  background: #0a1017;
  min-height: 180px;
  max-height: none;
  overflow: visible;
}

.editor-app.mode-reels .editor-canvas-timeline {
  margin: 0 .8rem 1rem;
  padding: .8rem .85rem .85rem;
  border: 1px solid #18222e;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(11,18,25,.98) 0%, rgba(8,16,24,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.editor-app.mode-post .editor-canvas-timeline {
  display: none;
}

.editor-timeline-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .8rem;
}

.editor-app.mode-reels .editor-timeline-toolbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding-bottom: .15rem;
}

.editor-timeline-play {
  min-width: 70px;
  border: 1px solid #253040;
  background: #0d141c;
  color: #dbe4ee;
  border-radius: .55rem;
  padding: .42rem .7rem;
  font-size: .78rem;
  font-weight: 800;
}

.editor-app.mode-reels .editor-timeline-play {
  min-width: 92px;
  min-height: 42px;
  border-radius: 999px;
  font-size: .9rem;
}

.editor-timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  font-size: .74rem;
  color: #7f91a8;
}

.editor-app.mode-reels .editor-timeline-meta {
  font-size: .82rem;
}

.editor-timeline-toggle,
.editor-timeline-zoom {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #b7c3d1;
  font-size: .76rem;
  white-space: nowrap;
}

.editor-timeline-zoom input {
  width: 120px;
  accent-color: #9cff2e;
}

.editor-timeline-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #16202b;
  border-radius: .85rem;
  background: linear-gradient(180deg, #0b1219 0%, #081018 100%);
  scrollbar-width: thin;
  min-height: 0;
  cursor: crosshair;
}

.editor-app.mode-reels .editor-timeline-viewport {
  border-radius: 1rem;
}

.editor-timeline-content {
  position: relative;
  min-height: 0;
  padding: .5rem .6rem .6rem;
}

.editor-timeline-ruler {
  position: relative;
  height: 22px;
  margin-bottom: .35rem;
}

.editor-timeline-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.editor-timeline-tick span {
  position: absolute;
  top: 0;
  left: 6px;
  font-size: .68rem;
  color: #5f7389;
}

.editor-timeline-slide-block,
.editor-timeline-layer-block {
  position: absolute;
  border-radius: .65rem;
  border: 1px solid #24303c;
  background: #101823;
  color: #dce6f2;
  overflow: hidden;
}

.editor-timeline-slide-block {
  top: 4px;
  height: 30px;
  padding: 0 .5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.editor-timeline-slide-block.is-active {
  border-color: rgba(156,255,46,.45);
  background: rgba(156,255,46,.08);
}

.editor-timeline-slide-add {
  border-style: dashed;
  border-color: rgba(156,255,46,.34);
  background: rgba(156,255,46,.05);
  color: #9cff2e;
}

.editor-timeline-slide-add:hover {
  background: rgba(156,255,46,.1);
  border-color: rgba(156,255,46,.5);
}

.slide-block-duration {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  color: #9cff2e;
  background: rgba(156,255,46,.12);
  border: 1px solid rgba(156,255,46,.3);
  border-radius: 5px;
  padding: 1px 5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  line-height: 1.4;
}
.slide-block-duration:hover {
  background: rgba(156,255,46,.25);
  border-color: rgba(156,255,46,.6);
}

.slide-block-title {
  font-size: .72rem;
  font-weight: 600;
  color: #dce6f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.editor-timeline-slide-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
  background: linear-gradient(to left, rgba(156,255,46,.4), transparent);
  border-radius: 0 6px 6px 0;
}
.editor-timeline-slide-resize-handle:hover {
  background: linear-gradient(to left, rgba(156,255,46,.7), transparent);
}
body.timeline-slide-resizing * { cursor: col-resize !important; }

.slide-block-duration {
  text-decoration: underline dotted rgba(156,255,46,.5);
  cursor: pointer;
  transition: color .15s;
}
.slide-block-duration:hover { color: #9cff2e; }

/* Modal de duração do slide */
/* ===== MEDIA LIBRARY MODAL ===== */
.medialib-open-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(156,255,46,.08);
  border: 1px dashed rgba(156,255,46,.3);
  border-radius: 10px;
  color: #9cff2e;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.medialib-open-btn:hover { background: rgba(156,255,46,.16); border-color: rgba(156,255,46,.55); }

.medialib-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s;
  padding: 16px;
}
.medialib-overlay.is-visible { opacity: 1; }

.medialib-dialog {
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transform: scale(.97) translateY(10px);
  transition: transform .22s;
  overflow: hidden;
}
.medialib-overlay.is-visible .medialib-dialog { transform: scale(1) translateY(0); }

.medialib-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.medialib-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #e2eaf4;
  margin: 0;
}
.medialib-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.medialib-upload-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(156,255,46,.12);
  border: 1px solid rgba(156,255,46,.35);
  border-radius: 8px;
  color: #9cff2e;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.medialib-upload-trigger:hover { background: rgba(156,255,46,.22); }
.medialib-close-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #8da0b6;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.medialib-close-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.medialib-tabs {
  display: flex;
  gap: 2px;
  padding: 12px 22px 0;
  flex-shrink: 0;
}
.medialib-tab {
  padding: 7px 16px;
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  color: #8da0b6;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.medialib-tab:hover { color: #c5d3e0; background: rgba(255,255,255,.04); }
.medialib-tab.is-active {
  background: rgba(156,255,46,.08);
  border-color: rgba(156,255,46,.2);
  color: #9cff2e;
  font-weight: 600;
}

.medialib-dropzone {
  margin: 0 22px 12px;
  border: 1.5px dashed rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8da0b6;
  font-size: .8rem;
  cursor: default;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.medialib-dropzone.is-drag-over {
  border-color: #9cff2e;
  background: rgba(156,255,46,.07);
  color: #9cff2e;
}

.medialib-grid {
  flex: 1;
  overflow-y: auto;
  padding: 4px 22px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  align-content: start;
}
.medialib-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #8da0b6;
  font-size: .85rem;
  padding: 40px 0;
}

/* Media cards */
.ml-card {
  background: #1a2233;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.ml-card:hover { border-color: rgba(156,255,46,.3); box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.ml-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ml-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ml-delete-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(13,17,23,.75);
  backdrop-filter: blur(4px);
  color: #8da0b6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s, border-color .15s;
  z-index: 3;
}
.ml-card:hover .ml-delete-btn { opacity: 1; }
.ml-delete-btn:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.5); color: #f87171; }
.ml-delete-btn.is-confirm { background: rgba(239,68,68,.85); border-color: #ef4444; color: #fff; opacity: 1; animation: delete-pulse .4s ease; }
@keyframes delete-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

.ml-img-dims {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.7);
  color: #c5d3e0;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Audio card thumb */
.ml-audio .ml-thumb {
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #0f1c14 0%, #0d1117 100%);
  padding: 14px;
}

.ml-play-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(156,255,46,.5);
  background: rgba(156,255,46,.1);
  color: #9cff2e;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, transform .1s;
  z-index: 1;
  flex-shrink: 0;
}
.ml-play-btn:hover { background: rgba(156,255,46,.25); border-color: #9cff2e; transform: scale(1.08); }
.ml-play-btn.is-playing { background: rgba(156,255,46,.2); border-color: #9cff2e; }

.ml-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  width: 100%;
}
.ml-wave span {
  flex: 1;
  background: rgba(156,255,46,.5);
  border-radius: 2px;
  height: var(--h, 40%);
  transition: height .1s;
}
.ml-play-btn.is-playing ~ .ml-wave span {
  animation: wave-bar 0.8s ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes wave-bar {
  0%   { height: 15%; }
  100% { height: var(--h, 40%); }
}

.ml-dur {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: #9cff2e;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.ml-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ml-name {
  font-size: .78rem;
  font-weight: 600;
  color: #dce6f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-meta { font-size: .68rem; color: #8da0b6; }

.ml-insert-btn {
  margin-top: 8px;
  width: 100%;
  padding: 7px;
  background: rgba(156,255,46,.12);
  border: 1px solid rgba(156,255,46,.3);
  border-radius: 8px;
  color: #9cff2e;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.ml-insert-btn:hover { background: rgba(156,255,46,.24); }

.ml-actions { display: flex; gap: 6px; margin-top: 8px; }
.ml-actions .ml-insert-btn { margin-top: 0; flex: 1; }
.ml-edit-btn {
  flex: 1;
  padding: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #c5d3e0;
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s;
}
.ml-edit-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ===== IMAGE EDITOR MODAL ===== */
.imgedit-overlay { z-index: 9600; }

.imgedit-dialog {
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: min(1020px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  transform: scale(.97) translateY(10px);
  transition: transform .22s;
  overflow: hidden;
}
.imgedit-overlay.is-visible .imgedit-dialog { transform: scale(1) translateY(0); }

.imgedit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.imgedit-title { font-size: .95rem; font-weight: 700; color: #e2eaf4; margin: 0; }

.imgedit-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.imgedit-canvas-wrap {
  flex: 1;
  background: #0a0f18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#imgEditorCanvas {
  max-width: 100%;
  max-height: 100%;
  cursor: crosshair;
  display: block;
}

.imgedit-sidebar {
  width: 230px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.07);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: #111827;
}
.imgedit-section { display: flex; flex-direction: column; gap: 8px; }
.imgedit-section-title { font-size: .72rem; font-weight: 700; color: #8da0b6; text-transform: uppercase; letter-spacing: .06em; }

.imgedit-field-row { display: flex; gap: 6px; }
.imgedit-field-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .68rem;
  color: #8da0b6;
}
.imgedit-field-row input[type="number"] {
  width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #e2eaf4;
  font-size: .82rem;
  padding: 5px 6px;
  outline: none;
  transition: border-color .15s;
}
.imgedit-field-row input[type="number"]:focus { border-color: #9cff2e; }

.imgedit-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: #8da0b6;
  cursor: pointer;
}
.imgedit-checkbox-label input { accent-color: #9cff2e; }

.imgedit-btn-secondary {
  padding: 7px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #c5d3e0;
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s;
}
.imgedit-btn-secondary:hover { background: rgba(255,255,255,.12); }

.imgedit-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.imgedit-btn-primary {
  padding: 10px;
  background: #9cff2e;
  border: none;
  border-radius: 10px;
  color: #0d1117;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.imgedit-btn-primary:hover { background: #b5ff5c; }
.imgedit-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.slide-duration-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.slide-duration-modal-overlay.is-visible { opacity: 1; }

.slide-duration-modal {
  position: relative;
  background: #1a2233;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 28px 32px 24px;
  min-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transform: scale(.97);
  transition: transform .2s;
}
.slide-duration-modal-overlay.is-visible .slide-duration-modal { transform: scale(1); }

.slide-duration-modal h4 {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #e2eaf4;
  font-weight: 600;
}

.slide-duration-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #8da0b6;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.slide-duration-modal-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.slide-duration-modal-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.slide-duration-input {
  width: 100px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #e2eaf4;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 10px;
  outline: none;
  transition: border-color .15s;
}
.slide-duration-input:focus { border-color: #9cff2e; }
.slide-duration-unit { color: #8da0b6; font-size: .85rem; }

.slide-duration-modal-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.slide-duration-modal-presets button {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #c5d3e0;
  font-size: .8rem;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.slide-duration-modal-presets button:hover {
  background: rgba(156,255,46,.12);
  border-color: rgba(156,255,46,.4);
  color: #9cff2e;
}

.slide-duration-modal-actions {
  display: flex;
  gap: 10px;
}
.slide-duration-modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
}
.btn-apply-one {
  background: rgba(156,255,46,.15);
  color: #9cff2e;
  border: 1px solid rgba(156,255,46,.3) !important;
}
.btn-apply-one:hover { background: rgba(156,255,46,.25); }
.btn-apply-all {
  background: #9cff2e;
  color: #0d1117;
}
.btn-apply-all:hover { background: #b5ff5c; }

.editor-timeline-transition-tail {
  position: absolute;
  top: 10px;
  height: 18px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.editor-timeline-layer-stack {
  display: grid;
  gap: .34rem;
}

.editor-timeline-track-separator {
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-timeline-track-separator::before {
  content: "";
  width: 100%;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  height: 18px;
  pointer-events: none;
}

.editor-timeline-layer-row {
  position: relative;
  height: 28px;
  border-radius: .65rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
}

.editor-timeline-layer-row.is-empty {
  background: rgba(156,255,46,.02);
  border-style: dashed;
  border-color: rgba(156,255,46,.14);
}

.editor-timeline-layer-block {
  top: 4px;
  height: 20px;
  padding: 0 1rem 0 .42rem;
  cursor: grab;
  background: rgba(0,212,255,.08);
  border-color: rgba(0,212,255,.18);
  display: flex;
  align-items: center;
}

.editor-timeline-layer-block:active,
body.timeline-dragging .editor-timeline-layer-block {
  cursor: grabbing;
}

body.timeline-scrubbing .editor-timeline-viewport {
  cursor: ew-resize;
}

.editor-timeline-layer-block.is-selected {
  border-color: rgba(156,255,46,.48);
  background: rgba(156,255,46,.12);
}

.editor-timeline-layer-block span {
  display: block;
  font-size: .64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-timeline-layer-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.12);
}

.editor-timeline-layer-resize {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  cursor: ew-resize;
  z-index: 2;
}

.editor-timeline-playhead {
  position: absolute;
  top: .3rem;
  bottom: .45rem;
  width: 2px;
  background: #9cff2e;
  box-shadow: 0 0 0 1px rgba(156,255,46,.18);
  pointer-events: none;
  z-index: 5;
}

.editor-timeline-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #9cff2e;
}

/* --- Right: Properties panel (floating) --- */
.editor-props {
  position: fixed;
  top: 114px;
  right: 0;
  bottom: 0;
  width: 248px;
  background: rgba(6, 10, 19, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.55);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed: slides out to the right */
.editor-app.props-collapsed .editor-props {
  transform: translateX(100%);
}

/* Toggle button (shown inside topbar) */
.editor-props-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  border: 1px solid #253040;
  border-radius: .4rem;
  color: #64748b;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .55rem;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.editor-props-toggle:hover {
  color: #94a3b8;
  border-color: #374456;
}
.editor-app:not(.props-collapsed) .editor-props-toggle {
  background: rgba(156, 255, 46, 0.08);
  border-color: rgba(156, 255, 46, 0.3);
  color: #9CFF2E;
}

.editor-props-block {
  border-bottom: 1px solid #10171f;
  flex: 0 0 auto;
}

.editor-props-summary-card {
  margin: 0 .65rem .85rem;
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .95rem;
  background: linear-gradient(180deg, rgba(17,22,29,.96) 0%, rgba(11,16,22,.96) 100%);
}

.editor-props-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .4rem;
}

.editor-props-summary-head span,
.editor-props-summary-head small {
  color: #8f9bad;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.editor-props-summary-name {
  color: #eef2f7;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .35rem;
}

.editor-props-summary-copy {
  color: #a8b4c4;
  font-size: .82rem;
  line-height: 1.45;
}

.editor-props-clean .editor-props-summary-card {
  display: none !important;
}

.editor-props-legacy .prop-panel[data-prop-panel="text"] .layout-rich-toolbar {
  display: none !important;
}

.editor-props-legacy .prop-panel[data-prop-panel="text"] > .row,
.editor-props-legacy .prop-panel[data-prop-panel="text"] > .d-flex,
.editor-props-legacy .prop-panel[data-prop-panel="text"] > .mb-2:not(:first-child) {
  display: none !important;
}
.editor-props-block.is-grow {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #253040 transparent;
  min-height: 0;
}

.editor-props-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .45rem .45rem;
  border-bottom: 1px solid #10171f;
}

.editor-props-nav-btn {
  border: 1px solid #253040;
  background: #0b121a;
  color: #7f91a8;
  border-radius: .58rem;
  padding: .46rem .55rem;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.editor-props-nav-btn.is-active {
  background: rgba(156,255,46,.1);
  border-color: rgba(156,255,46,.35);
  color: #d9ffb5;
}

.sidebar-mode-panel {
  display: none;
  min-height: 0;
}

.sidebar-mode-panel.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.sidebar-mode-panel[data-sidebar-panel="video"] {
  overflow-y: auto;
}

.sidebar-mode-panel[data-sidebar-panel="layer"] .editor-slide-motion-card {
  display: none;
}

.editor-video-lab {
  padding: .65rem .55rem .72rem;
  display: grid;
  gap: .6rem;
}

.editor-video-lab-head {
  display: grid;
  gap: .15rem;
}

.editor-video-lab-head strong {
  font-size: .96rem;
  line-height: 1.2;
  color: #eef2f7;
}

.editor-video-lab-head span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8f9bad;
  font-weight: 700;
}

.editor-video-lab-player .video-preview-screen {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}

.editor-video-lab-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.editor-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: .7rem;
  border: 1px solid rgba(156,255,46,.28);
  background: rgba(156,255,46,.08);
  color: #d9ffb5;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  padding: .45rem .6rem;
}

.editor-video-link.is-secondary {
  border-color: #253040;
  background: #0b121a;
  color: #c8d3e0;
}

.editor-video-lab-empty,
.editor-video-lab-note {
  border-radius: .8rem;
  padding: .7rem .8rem;
  font-size: .8rem;
  line-height: 1.5;
}

.editor-video-lab-empty {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: #c6d0dc;
}

.editor-video-lab-note {
  background: rgba(156,255,46,.07);
  border: 1px solid rgba(156,255,46,.16);
  color: #d7e8c2;
}

.editor-props-title {
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #3d5068;
  font-weight: 700;
  margin-bottom: .4rem;
}

/* ── Collapsible panel sections (Photoshop-style) ── */
.props-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .48rem .65rem;
  color: #64748b;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: color .12s;
  user-select: none;
}
.props-section-header:hover {
  color: #94a3b8;
}
.props-chevron {
  font-size: .7rem;
  transition: transform .18s ease;
  opacity: .5;
}
.props-section.is-collapsed .props-chevron {
  transform: rotate(-90deg);
}
.props-section-body {
  padding: 0 .65rem .55rem;
  overflow: hidden;
}
.props-section.is-collapsed .props-section-body {
  display: none;
}

/* --- Bottom: Text editing bar --- */
.editor-bottom {
  flex: 0 0 auto;
  background: #0a0e17;
  border-top: 1px solid #18222e;
  padding: .45rem .65rem;
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  min-height: 72px;
  z-index: 5;
}

.editor-app.bottom-collapsed .editor-bottom {
  display: none;
}

.editor-app.mode-post .editor-bottom {
  display: flex;
}

.editor-app.mode-post [data-editor-bottom-toggle] {
  display: none;
}

.editor-slide-text {
  display: none;
  flex: 1;
  gap: .5rem;
  align-items: flex-end;
  min-width: 0;
}
.editor-slide-text.is-active {
  display: flex;
}

.editor-text-field {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
  flex: 1;
}
.editor-text-field.is-body {
  flex: 2;
}

.editor-field-lbl {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #3d5068;
  font-weight: 700;
  line-height: 1;
}

.editor-bottom-save {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-self: flex-end;
}

/* --- Extra sections below the editor (scroll to access) --- */
.editor-extra {
  border-top: 1px solid #18222e;
}

.editor-extra-section {
  display: none;
  border-bottom: 1px solid #18222e;
  background: #080c13;
}
body.editor-extra-visible .editor-extra-section {
  display: block;
}
.editor-extra-section > summary {
  padding: .75rem 1rem;
  cursor: pointer;
  font-size: .82rem;
  color: #6b7a8f;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
}
.editor-extra-section > summary::-webkit-details-marker { display: none; }
.editor-extra-section > summary::before {
  content: '▶';
  font-size: .6rem;
  color: #3d5068;
  transition: transform .15s;
}
.editor-extra-section[open] > summary::before { transform: rotate(90deg); }
.editor-extra-section > summary:hover { color: #aab3c1; }
.editor-extra-section > summary small {
  color: #3d5068;
  font-size: .72rem;
  font-weight: 400;
}
.editor-extra-section-body {
  padding: 0 1rem 1rem;
}

/* --- Responsive fallback for editor --- */
@media (max-width: 1100px) {
  .editor-body {
    grid-template-columns: 112px 1fr;
  }
}
@media (max-width: 860px) {
  .editor-body {
    grid-template-columns: 90px 1fr;
  }
  .editor-topbar-center {
    display: none;
  }
  /* Oculta painel flutuante em telas pequenas por padrão */
  .editor-props {
    top: 0;
    transform: translateX(100%);
  }
  .editor-app:not(.props-collapsed) .editor-props {
    transform: translateX(0);
  }
}

/* ── App navbar (light) ── */
.app-header .navbar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  color: #1a202c;
  font-size: 1.1rem;
}
.app-header .navbar-brand:hover { color: #16a34a; }
.app-header .nav-link {
  color: #4a5568;
  font-weight: 600;
  font-size: .9rem;
}
.app-header .nav-link:hover { color: #1a202c; }
.app-logout-btn {
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
  border-radius: .5rem;
  padding: .3rem .75rem;
}
.app-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ── Dashboard KPI (light override) ── */
.dash-kpi-card {
  background: #ffffff;
  border-color: #e2e8f0;
  backdrop-filter: none;
}
.dash-kpi-label { color: #64748b; }
.dash-kpi-value { color: #1a202c; }
.dash-title { color: #1a202c; }
.dash-subtitle { color: #64748b; }

/* ── Home post cards (light override) ── */
.home-post-title { color: #1a202c; }
.home-post-meta { color: #6b7280; }
.home-post-link { color: #16a34a; font-weight: 700; }
.home-empty-state { background: #f8fafc; color: #64748b; }
.home-input {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1a202c;
}
.home-input:focus {
  border-color: #f4b942;
  box-shadow: 0 0 0 .2rem rgba(244,185,66,.15);
  background: #ffffff;
}
.home-badge {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}
.home-badge-muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}
.home-status.is-ready {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.home-status.is-pending {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

/* ── Brand button ── */
.btn-brand {
  background: linear-gradient(135deg, #f4b942 0%, #ef7f45 100%);
  border-color: transparent;
  color: #1a1a1a;
  font-weight: 700;
}
.btn-brand:hover {
  background: linear-gradient(135deg, #e6a832 0%, #df6f35 100%);
  border-color: transparent;
  color: #1a1a1a;
}

/* ── Auth shell ── */
.auth-shell {
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.auth-logo { margin-bottom: 1.5rem; }
.auth-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a202c;
  text-decoration: none;
}
.auth-brand:hover { color: #16a34a; }
.auth-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #1a202c;
  margin-bottom: .4rem;
}
.auth-subtitle {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 1.75rem;
}
.auth-form .form-control {
  min-height: 48px;
  border-radius: .75rem;
}
.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ── Landing page shell ── */
.lp-shell {
  background: #ffffff;
  color: #1a202c;
}
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lp-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a202c;
  text-decoration: none;
}
.lp-brand:hover { color: #16a34a; }
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Hero ── */
.lp-hero {
  padding: 7rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(244,185,66,.1), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(239,127,69,.08), transparent 36%),
    #ffffff;
}
.lp-hero-inner { max-width: 760px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-block;
  background: #fef9c3;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  margin-bottom: 1.5rem;
}
.lp-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.04;
  color: #0f172a;
  margin-bottom: 1.25rem;
}
.lp-hero-sub {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}
.lp-hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features ── */
.lp-features {
  padding: 5rem 0;
  background: #f8fafc;
}
.lp-features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.lp-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #0f172a;
  margin-bottom: .75rem;
}
.lp-section-sub {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}
.lp-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lp-feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.lp-feature-icon {
  font-size: 1.5rem;
  color: #f4b942;
  margin-bottom: 1rem;
}
.lp-feature-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .65rem;
}
.lp-feature-text {
  color: #64748b;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── How it works ── */
.lp-how {
  padding: 5rem 0;
}
.lp-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.lp-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.lp-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4b942, #ef7f45);
  color: #1a1a1a;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .35rem;
  font-size: 1rem;
}
.lp-step-text {
  color: #64748b;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── CTA section ── */
.lp-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  border-top: 1px solid #fde68a;
}
.lp-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.lp-cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #1a202c;
  margin-bottom: .75rem;
}
.lp-cta-sub {
  color: #78350f;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ── Landing footer ── */
.lp-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}
.lp-footer-text {
  color: #94a3b8;
  font-size: .88rem;
  text-align: center;
  margin: 0;
}
.btn-xs { padding: .15rem .4rem; font-size: .72rem; line-height: 1.3; }
