/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --pink: #ec5f92;
  --pink-strong: #e2477f;
  --pink-soft: #fde8f1;
  --pink-line: #f6b7ce;
  --green: #4caf50;
  --green-dark: #3e9142;
  --ink: #2b2b2b;
  --ink-soft: #5c5c5c;
  --muted: #8a8a8a;
  --line: #e9e9e9;
  --line-strong: #dcdcdc;
  --bg: #f1f1f1;
  --panel: #ffffff;
  --gold: #c9a227;
  --font-ui: "Jost", "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #f9c9dc;
}

/* ============ Landing ============ */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, #fdf0f5 0, transparent 34%),
    radial-gradient(circle at 85% 16%, #f3f6ee 0, transparent 32%),
    #fbfaf7;
}

.l-nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.l-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.l-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink-soft);
  display: grid;
  place-items: center;
  color: var(--pink-strong);
}

.l-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: #565656;
}

.l-nav-cta {
  border: 1px solid #dcd4cd;
  border-radius: 999px;
  padding: 9px 18px;
  background: #fff;
  font-size: 13px;
}

.l-hero {
  max-width: 1180px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-gap: 56px;
  gap: 56px;
  padding: 28px 28px 70px;
  align-items: center;
}

.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #8e7b69;
  background: #fff;
  border: 1px solid #eee4d8;
  padding: 8px 14px;
  border-radius: 999px;
}

.l-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.02;
  margin: 22px 0 20px;
  color: #2d2923;
  letter-spacing: -0.02em;
}

.l-title em {
  font-family: "Alex Brush", cursive;
  font-style: normal;
  color: var(--pink-strong);
  font-size: 1.12em;
}

.l-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #6b665f;
  max-width: 470px;
}

.l-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.l-cta {
  background: #23211e;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(35, 33, 30, 0.16);
}

.l-cta:hover {
  background: #000;
}

.l-cta-ghost {
  background: transparent;
  border: 1px solid #d9d1c7;
  color: #4b463f;
  box-shadow: none;
}

.l-note {
  margin-top: 16px;
  font-size: 12px;
  color: #9b948c;
  display: flex;
  align-items: center;
  gap: 7px;
}

.l-preview-shell {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.l-preview-glow {
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, #f6d9e4 0, transparent 66%);
  filter: blur(28px);
  z-index: 0;
}

.l-preview-card {
  position: relative;
  z-index: 1;
  width: 356px;
  height: 620px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(78, 64, 51, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.l-preview-badge {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6a6257;
  white-space: nowrap;
}

.l-features {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
  gap: 18px;
}

.l-feature {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ece6dd;
  border-radius: 18px;
  padding: 24px;
}

.l-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f8eee8;
  color: #9b7257;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.l-feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
}

.l-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #78716a;
}

.l-footer {
  border-top: 1px solid #ece8e1;
  padding: 26px 28px;
  text-align: center;
  color: #98918a;
  font-size: 12px;
}

/* ============ Wizard ============ */
.wizard {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, #fdf1f6 0, transparent 42%),
    #f8f6f2;
  padding: 28px 20px 70px;
}

.wizard-top {
  max-width: 1060px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #6b665f;
}

.wizard-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee7dd;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(66, 54, 42, 0.1);
  padding: 42px 48px 36px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.step-dot {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #eee6dc;
  transition: all 0.2s;
}

.step-dot.on {
  background: var(--pink);
  width: 54px;
}

.wizard-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 8px;
}

.wizard-sub {
  text-align: center;
  color: #8a837b;
  margin: 0 0 30px;
  font-size: 14px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.type-card {
  border: 1px solid #e9e1d6;
  background: #fff;
  border-radius: 14px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: all 0.16s;
}

.type-card:hover {
  border-color: #e3c8b2;
  transform: translateY(-2px);
}

.type-card.active {
  border-color: var(--pink);
  background: #fff8fb;
  box-shadow: 0 0 0 3px #fde8f1;
}

.type-emoji {
  font-size: 26px;
}

.wizard-fields {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.wizard-fields.two {
  max-width: 620px;
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #918a82;
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #e4ddd4;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px #fde8f1;
}

.wizard-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 18px rgba(236, 95, 146, 0.24);
}

.btn-primary:hover {
  background: var(--pink-strong);
}

.btn-secondary {
  border: 1px solid #ddd5cb;
  background: #fff;
  color: #5d564e;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: #6e675f;
  padding: 8px 10px;
  font-size: 13px;
}

/* ============ Template gallery ============ */
.gallery {
  min-height: 100vh;
  background: #f7f4ef;
  padding: 26px 20px 80px;
}

.gallery-head {
  max-width: 1120px;
  margin: 0 auto 26px;
  text-align: center;
}

.gallery-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 42px;
  margin: 12px 0 8px;
}

.gallery-head p {
  color: #847c73;
  font-size: 14px;
  margin: 0;
}

.gallery-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 18px;
  gap: 18px;
}

.gt-card {
  background: #fff;
  border: 1px solid #eae1d6;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: all 0.18s;
  position: relative;
}

.gt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(70, 58, 46, 0.14);
  border-color: #d8c5b1;
}

.gt-thumb {
  height: 238px;
  overflow: hidden;
  background: #eee9e1;
  position: relative;
}

.gt-info {
  padding: 12px 13px 14px;
}

.gt-name {
  font-size: 13px;
  font-weight: 500;
  color: #2f2b26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-cat {
  margin-top: 4px;
  font-size: 10px;
  color: #9a9187;
  letter-spacing: 0.4px;
}

.gt-crown {
  position: absolute;
  top: 9px;
  right: 9px;
  background: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #b08d20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.gt-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 10px;
  letter-spacing: 0.8px;
  opacity: 0;
  transition: 0.16s;
  z-index: 2;
  white-space: nowrap;
}

.gt-card:hover .gt-preview {
  opacity: 1;
}

/* ============ Editor base ============ */
.ed-root {
  height: 100vh;
  display: grid;
  grid-template-rows: 56px 1fr 56px;
  background: var(--bg);
  overflow: hidden;
}

.ed-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  z-index: 40;
  position: relative;
}

.ed-icon-btn {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4a4a4a;
}

.ed-icon-btn:hover {
  background: #f5f5f5;
}

.ed-icon-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 4px;
  min-width: 118px;
}

.ed-brand-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.2px;
  color: #2f2b27;
  line-height: 1;
}

.ed-brand-dot {
  color: var(--pink);
  font-size: 25px;
}

.ed-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1;
  justify-content: center;
  min-width: 0;
}

.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #3f3f3f;
  background: #fff;
  white-space: nowrap;
  max-width: 260px;
}

.ed-pill:hover {
  border-color: #d8d8d8;
  background: #fcfcfc;
}

.ed-pill svg {
  opacity: 0.45;
  flex-shrink: 0;
}

.ed-pill-sep {
  font-size: 12px;
  color: #777;
}

.ed-pill input {
  border: 0;
  outline: none;
  background: #fff;
  font-size: 12px;
  min-width: 70px;
  width: 100%;
}

.ed-pill input[type="date"] {
  min-width: 118px;
}

.ed-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ed-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dedede;
  background: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: #2f2f2f;
}

.ed-btn-preview:hover {
  background: #f8f8f8;
}

.ed-btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
}

.ed-btn-continue:hover {
  background: var(--green-dark);
}

.save-state {
  font-size: 10px;
  color: #9a9a9a;
  white-space: nowrap;
  padding: 0 6px;
}

.ed-body {
  display: flex;
  min-height: 0;
  position: relative;
}

.ed-rail {
  width: 72px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: none;
}

.ed-rail::-webkit-scrollbar {
  display: none;
}

.rail-btn {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6f6f6f;
  position: relative;
  padding: 8px 2px;
}

.rail-btn:hover {
  background: #fafafa;
}

.rail-btn.active {
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.rail-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--pink);
  border-radius: 0 3px 3px 0;
}

.rail-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.rail-txt {
  font-size: 9.5px;
  letter-spacing: 0.1px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.rail-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

/* ============ Panels ============ */
.ed-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 25;
  animation: panelIn 0.16s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  padding: 17px 16px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin: 0;
  line-height: 1.2;
}

.panel-sub {
  font-size: 10.5px;
  color: #8f8f8f;
  margin: 4px 0 0;
  line-height: 1.35;
}

.panel-close {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #939393;
  flex-shrink: 0;
}

.panel-close:hover {
  background: #f4f4f4;
}

.panel-scroll {
  flex: 1 1;
  overflow-y: auto;
  padding: 4px 16px 26px;
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 99px;
}

.panel-section-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #3c3c3c;
  text-transform: none;
  margin: 17px 0 8px;
}

.panel-hint {
  font-size: 10.5px;
  color: #9b9b9b;
  margin: 0 0 10px;
  line-height: 1.4;
}

.notice {
  background: #fde8f1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #525252;
  margin: 8px 0 12px;
}

.search-box {
  position: relative;
  margin: 4px 0 10px;
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b9b9b;
}

.search-box input {
  width: 100%;
  height: 38px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 12px 0 33px;
  font-size: 11.5px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--pink-line);
  box-shadow: 0 0 0 2px #fde8f1;
}

/* Templates panel */
.tmpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 9px;
  gap: 9px;
  padding-top: 4px;
}

.tmpl-card {
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  position: relative;
  transition: 0.14s;
}

.tmpl-card:hover {
  border-color: #cfcfcf;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.tmpl-thumb {
  height: 108px;
  overflow: hidden;
  background: #f1eee8;
  position: relative;
}

.tmpl-meta {
  padding: 7px 8px 8px;
}

.tmpl-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #2e2e2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmpl-cat {
  display: inline-block;
  margin-top: 3px;
  font-size: 8.5px;
  color: #9b9b9b;
  background: #f7f7f7;
  border-radius: 3px;
  padding: 1px 5px;
}

.tmpl-crown {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #b08d20;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* Elements panel */
.elem-category {
  margin-bottom: 2px;
}

.elem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
}

.elem-card {
  border: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  position: relative;
  transition: transform 0.14s, box-shadow 0.14s;
}

.elem-card:hover:not(.disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.elem-card:hover:not(.disabled) .elem-preview {
  background: #f3f3f3;
}

.elem-card.disabled {
  cursor: not-allowed;
}

.elem-card.disabled .elem-preview,
.elem-card.disabled .elem-label {
  opacity: 0.55;
}

.elem-preview {
  height: 134px;
  background: #fafafa;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.elem-preview svg {
  width: 30px;
  height: 30px;
  color: #5f5f5f;
}

.elem-preview.text-preview {
  background: #f7f7f8;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.elem-label {
  padding: 8px 2px 6px;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  min-height: 34px;
  display: flex;
  align-items: center;
}

.elem-status {
  padding: 0 2px 8px;
  margin-top: -4px;
  font-size: 11px;
  line-height: 1.25;
  color: #83621e;
  text-align: center;
}

.elem-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 8px;
  padding: 2px 5px;
  z-index: 2;
}

.elem-badge.premium {
  background: #fff;
  color: #9d7b13;
  border: 1px solid #e8d8a2;
  display: flex;
  align-items: center;
  gap: 2px;
}

.elem-plus {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e4e4;
  display: grid;
  place-items: center;
  color: #8c8c8c;
}

/* Figures panel */
.fig-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 7px;
  gap: 7px;
}

.fig-cat {
  border: 1px solid #ececec;
  border-radius: 7px;
  background: #fff;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 74px;
  transition: 0.14s;
}

.fig-cat:hover,
.fig-cat.active {
  border-color: var(--pink-line);
  background: #fffafc;
}

.fig-cat-thumb {
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #9c8266;
}

.fig-cat-name {
  font-size: 8.5px;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

.fig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 6px;
  gap: 6px;
  margin-top: 8px;
}

.fig-tile {
  border: 1px solid #ececec;
  background: #fcfcfc;
  border-radius: 7px;
  height: 86px;
  display: grid;
  place-items: center;
  padding: 7px;
  position: relative;
  transition: 0.14s;
}

.fig-tile:hover {
  border-color: var(--pink-line);
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.fig-tile svg {
  max-width: 100%;
  max-height: 100%;
}

.fig-premium {
  position: absolute;
  top: 4px;
  right: 4px;
  color: #b08d20;
}

.view-more {
  width: 100%;
  border: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 10px;
  padding: 12px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Images panel */
.upload-tile {
  width: 100%;
  height: 108px;
  border: 1px dashed #d9d9d9;
  background: #fbfbfb;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8f8f8f;
  font-size: 10px;
}

.upload-tile:hover {
  border-color: var(--pink-line);
  background: #fffafc;
  color: var(--pink-strong);
}

.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 7px;
  gap: 7px;
  margin-top: 8px;
}

.stock-tile {
  height: 86px;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.stock-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.stock-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 6px 5px;
  color: #fff;
  font-size: 8.5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation panel */
.anim-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 8px;
}

.anim-switch-title {
  font-size: 11.5px;
  font-weight: 500;
}

.anim-switch-desc {
  font-size: 10px;
  color: #9a9a9a;
  margin-top: 2px;
}

.switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: #d8d8d8;
  position: relative;
  flex-shrink: 0;
  transition: 0.18s;
}

.switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: 0.18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch.on {
  background: var(--pink);
}

.switch.on::after {
  transform: translateX(18px);
}

.anim-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 6px;
  gap: 6px;
}

.anim-type {
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 7px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #666;
}

.anim-type.active {
  border-color: var(--pink);
  background: #fff8fb;
  color: var(--pink-strong);
}

.anim-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 6px;
  gap: 6px;
}

.anim-bg {
  height: 58px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.anim-bg.active {
  border: 2px solid var(--pink);
}

.anim-bg span {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7.5px;
  color: #6f6f6f;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
}

.color-row input[type="color"] {
  width: 38px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
}

.color-row input[type="text"] {
  flex: 1 1;
  height: 32px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 10.5px;
  font-family: monospace;
  outline: none;
}

.small-note {
  font-size: 9.5px;
  line-height: 1.45;
  color: #9b9b9b;
  margin: 7px 0 10px;
}

/* Sections panel */
.sec-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sec-card {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.14s;
}

.sec-card.selected {
  border-color: #d8b979;
  box-shadow: 0 0 0 1px #efe2c2;
  background: #fffdf8;
}

.sec-grip {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: -webkit-grab;
  cursor: grab;
  flex-shrink: 0;
}

.sec-index {
  font-size: 10px;
  color: #777;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.sec-name {
  flex: 1 1;
  min-width: 0;
  height: 28px;
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  padding: 0 7px;
  font-size: 10.5px;
  outline: none;
  background: #fff;
}

.sec-name:focus {
  border-color: var(--pink-line);
}

.sec-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.sec-mini {
  border: 0;
  background: transparent;
  width: 21px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8d8d8d;
  border-radius: 4px;
}

.sec-mini:hover {
  background: #f4f4f4;
  color: #555;
}

.sec-mini.danger:hover {
  background: #fdecec;
  color: #c23b3b;
}

.add-section {
  margin-top: 9px;
  width: 100%;
  min-height: 46px;
  border: 1px dashed var(--pink-line);
  border-radius: 8px;
  background: #fff8fb;
  color: var(--pink-strong);
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.add-section:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.add-section:not(:disabled):hover {
  background: #fdeef5;
}

/* Layers panel */
.layers-hint {
  font-size: 10px;
  color: #9a9a9a;
  margin: 6px 0 10px;
  line-height: 1.4;
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-row {
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.layer-row.selected {
  border-color: var(--pink);
  background: #fff7fa;
  box-shadow: 0 0 0 1px #f8cbdd;
}

.layer-row:hover {
  border-color: #d7d7d7;
}

.layer-grip {
  color: #a0a0a0;
  flex-shrink: 0;
  cursor: -webkit-grab;
  cursor: grab;
}

.layer-info {
  min-width: 0;
  flex: 1 1;
}

.layer-name {
  font-size: 10.5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.layer-type {
  font-size: 8.5px;
  color: #9b9b9b;
  margin-top: 2px;
}

/* ============ Canvas ============ */
.ed-canvas-area {
  flex: 1 1;
  min-width: 0;
  position: relative;
  background: #f0f0f0;
  overflow: auto;
}

.ed-canvas-scroll {
  min-height: 100%;
  padding: 44px 40px 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.doc-page {
  position: relative;
  background: #fff;
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.16);
  transform-origin: top center;
  flex-shrink: 0;
}

.section-shell {
  position: relative;
  width: 400px;
  overflow: hidden;
  cursor: default;
}

.section-shell.selected {
  outline: 2px solid #e0b94d;
  outline-offset: -2px;
}

.section-shell.selected-empty {
  outline: 2px dashed #e0b94d;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.prim {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.prim.selected {
  outline: 1.5px solid var(--pink);
  outline-offset: 0;
}

.prim.locked {
  cursor: not-allowed;
}

.prim-text {
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.prim-text-inner {
  width: 100%;
}

.inline-text-edit {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1.5px var(--pink), 0 6px 18px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  caret-color: var(--pink);
  -webkit-text-fill-color: currentColor;
}

.inline-text-edit::selection,
.inline-text-edit *::selection {
  background: rgba(226, 121, 169, 0.28);
}

.prim-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.prim-image img,
.prim-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prim-figure {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.prim-figure svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.selection-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--pink);
  z-index: 60;
}

.selection-handle.nw { left: -5px; top: -5px; cursor: nwse-resize; }
.selection-handle.ne { right: -5px; top: -5px; cursor: nesw-resize; }
.selection-handle.sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.selection-handle.se { right: -5px; bottom: -5px; cursor: nwse-resize; }

.selection-tag {
  position: absolute;
  top: -20px;
  left: 0;
  background: var(--pink);
  color: #fff;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 60;
  pointer-events: none;
}

.text-editor-overlay {
  position: absolute;
  z-index: 80;
  background: #fff;
  border: 1.5px solid var(--pink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  padding: 3px;
}

.text-editor-overlay textarea {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  text-align: inherit;
}

.section-drop-hint {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(224, 185, 77, 0.55);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(120, 100, 50, 0.65);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
}

/* ============ Bottom bar ============ */
.ed-bottom {
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 14px;
  z-index: 30;
}

.zoom-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 4px 8px;
  height: 36px;
}

.zoom-label {
  font-size: 10px;
  color: #777;
  margin-right: 2px;
}

.zoom-range {
  width: 130px;
  accent-color: var(--pink);
}

.zoom-input {
  width: 38px;
  height: 24px;
  border: 0;
  background: transparent;
  font-size: 10px;
  text-align: right;
  outline: none;
}

.zoom-pct {
  font-size: 10px;
  color: #777;
}

.zoom-fit {
  border: 0;
  background: transparent;
  color: #7a7a7a;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  height: 36px;
  padding: 0 8px;
  font-size: 10.5px;
  color: #555;
}

.section-nav button {
  border: 0;
  background: transparent;
  width: 22px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #777;
  border-radius: 4px;
}

.section-nav button:hover {
  background: #f4f4f4;
}

.section-nav .nav-count {
  min-width: 48px;
  text-align: center;
  color: #333;
}

/* ============ Toolbar ============ */
.ed-toolbar {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d2d2d;
  color: #fff;
  border-radius: 999px;
  height: 48px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  max-width: calc(100vw - 460px);
}

.tb-btn {
  border: 0;
  background: transparent;
  color: #efefef;
  height: 34px;
  min-width: 32px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  white-space: nowrap;
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tb-btn.active {
  background: rgba(255, 255, 255, 0.18);
}

.tb-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 4px;
  flex-shrink: 0;
}

.tb-font {
  font-size: 11px;
  font-style: italic;
  padding: 0 10px;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-sizeinput {
  width: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 10.5px;
  outline: none;
}

.tb-color {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
}

.tb-label {
  font-size: 10px;
  color: #eee;
  padding: 0 6px;
}

.tb-more {
  width: 34px;
}

.tb-spacer {
  width: 2px;
}

/* Floating popovers */
.floating-popover {
  position: absolute;
  z-index: 120;
  top: 70px;
  right: 22px;
  width: 250px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  padding: 13px;
}

.fp-title {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 10px;
}

.fp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.fp-row label {
  font-size: 10px;
  color: #666;
  min-width: 66px;
}

.fp-row input[type="range"] {
  flex: 1 1;
  accent-color: var(--pink);
}

.fp-row input[type="number"] {
  width: 52px;
  height: 28px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 10px;
}

.fp-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 5px;
  gap: 5px;
  margin-top: 8px;
}

.fp-presets button {
  height: 26px;
  border: 1px solid #e4e4e4;
  background: #fff;
  border-radius: 5px;
  font-size: 9px;
  color: #666;
}

.fp-presets button:hover {
  border-color: var(--pink-line);
  color: var(--pink-strong);
}

.fp-slider-val {
  font-size: 9px;
  color: #888;
  min-width: 34px;
  text-align: right;
}

/* More menu */
.more-menu {
  position: absolute;
  z-index: 130;
  top: 70px;
  right: 22px;
  width: 218px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  padding: 5px;
}

.more-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  color: #333;
  text-align: left;
}

.more-item:hover:not(:disabled) {
  background: #f5f5f5;
}

.more-item:disabled {
  opacity: 0.38;
  cursor: default;
}

.more-item.danger {
  color: #c23b3b;
}

.more-sep {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.more-footer {
  padding: 7px 9px;
  border-top: 1px solid #eee;
  margin-top: 4px;
  font-size: 9px;
  color: #999;
}

.more-link-form {
  padding: 8px 9px 6px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.more-link-form label {
  display: block;
  font-size: 9px;
  color: #888;
  margin-bottom: 4px;
}

.more-link-form input {
  width: 100%;
  height: 30px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 10px;
  outline: none;
}

/* Color and typography panels */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 10px;
}

.chip {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 9px;
  color: #666;
}

.chip.active {
  background: #2f2f2f;
  border-color: #2f2f2f;
  color: #fff;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 5px;
  gap: 5px;
  margin-bottom: 12px;
}

.swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  position: relative;
}

.swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pink);
}

.swatch.gradient {
  border-radius: 5px;
}

.color-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  margin: 13px 0 7px;
}

.color-block-title button {
  border: 0;
  background: transparent;
  font-size: 9px;
  color: var(--pink-strong);
}

.font-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f1f1f1;
  background: #fff;
  text-align: left;
  padding: 9px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.font-row:hover {
  background: #fafafa;
}

.font-row-name {
  font-size: 11px;
  color: #333;
}

.font-row-sample {
  font-size: 15px;
  color: #999;
  white-space: nowrap;
}

.font-row.active {
  background: #fff7fa;
}

.font-row.active .font-row-name {
  color: var(--pink-strong);
  font-weight: 600;
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 7px;
  gap: 7px;
}

.style-card {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 7px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #555;
}

.style-card .sample {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #333;
}

.style-card.active {
  border-color: var(--pink);
  background: #fff8fb;
  color: var(--pink-strong);
}

.anim-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 6px;
  gap: 6px;
}

.anim-style {
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 7px;
  padding: 9px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #555;
}

.anim-style.active {
  border-color: var(--pink);
  background: #fff8fb;
  color: var(--pink-strong);
}

.anim-preview-dot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #f5e8ee;
  display: grid;
  place-items: center;
  color: var(--pink-strong);
  flex-shrink: 0;
}

.segmented {
  display: flex;
  border: 1px solid #e4e4e4;
  border-radius: 7px;
  overflow: hidden;
  margin: 7px 0 10px;
}

.segmented button {
  flex: 1 1;
  border: 0;
  background: #fff;
  height: 30px;
  font-size: 9px;
  color: #666;
}

.segmented button.active {
  background: #2f2f2f;
  color: #fff;
}

.photo-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 7px;
  gap: 7px;
}

.photo-shape {
  height: 76px;
  border: 1px solid #e7e7e7;
  background: #fafafa;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 7px;
}

.photo-shape.active {
  border-color: var(--pink);
  background: #fff8fb;
}

.photo-shape-demo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d9c6b2, #a88e74);
}

/* ============ Modals ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.42);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fadeIn 0.16s ease both;
}

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

.modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  width: min(880px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.18s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.modal-sub {
  font-size: 10.5px;
  color: #8d8d8d;
  margin: 3px 0 0;
}

.modal-close {
  border: 0;
  background: #f5f5f5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #777;
}

.modal-body {
  overflow: auto;
  padding: 18px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.template-modal {
  width: min(1000px, 96vw);
}

.template-modal-body {
  display: grid;
  grid-template-columns: 430px 1fr;
  grid-gap: 22px;
  gap: 22px;
  padding: 18px;
  overflow: hidden;
  min-height: 0;
}

.template-preview-box {
  background: #f2efe9;
  border-radius: 10px;
  height: min(78vh, 720px);
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.template-preview-notes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-right: 10px;
}

.template-preview-notes h4 {
  font-family: var(--font-serif);
  font-size: 23px;
  margin: 0;
}

.template-preview-notes p {
  font-size: 12px;
  line-height: 1.6;
  color: #6f6f6f;
  margin: 0;
}

.template-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fact {
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  color: #777;
}

/* Preview mode */
.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(24, 24, 24, 0.55);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease both;
}

.preview-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 0 16px;
  color: #2f2b27;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.preview-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  color: #2f2b27;
  line-height: 1;
  min-width: 96px;
}

.preview-brand span {
  color: var(--pink);
}

.preview-bar-title {
  flex: 1 1;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #8c857c;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-bar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-back {
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 500;
}

.preview-back:hover {
  background: var(--pink-dark, #d94f80);
}

.preview-continue {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 500;
}

.preview-continue:hover {
  background: var(--green-dark);
}

.preview-stage {
  flex: 1 1;
  overflow: auto;
  padding: 26px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.preview-phone {
  width: 400px;
  max-height: calc(100vh - 146px);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: #fff;
  scrollbar-width: thin;
}

.preview-phone::-webkit-scrollbar {
  width: 6px;
}

.preview-phone::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

/* Publish */
.publish-modal {
  width: min(540px, 96vw);
}

.publish-summary {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.publish-summary-icon {
  width: 38px;
  height: 38px;
  background: #fde8f1;
  color: var(--pink-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.publish-summary b {
  display: block;
  font-size: 12px;
}

.publish-summary span {
  font-size: 10px;
  color: #8a8a8a;
}

.publish-link {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 7px 8px 7px 11px;
  font-size: 11px;
  color: #4f4f4f;
  margin: 10px 0;
  background: #fff;
}

.publish-link span {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eee;
  border-radius: 9px;
  padding: 11px 13px;
  margin: 12px 0;
}

.plan-switch-row b {
  font-size: 11.5px;
  display: block;
}

.plan-switch-row small {
  font-size: 9.5px;
  color: #999;
}

.upgrade-modal {
  width: min(500px, 96vw);
}

.upgrade-hero {
  text-align: center;
  padding: 6px 10px 16px;
}

.upgrade-crown {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fdf6df;
  color: #b08d20;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.upgrade-hero h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 6px;
}

.upgrade-hero p {
  font-size: 12px;
  color: #7a7a7a;
  line-height: 1.55;
  margin: 0;
}

.upgrade-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.upgrade-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #555;
}

.upgrade-list svg {
  color: var(--green);
}

/* ============ Intro animation ============ */
.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.intro-overlay.fullscreen {
  position: fixed;
  z-index: 300;
}

.intro-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-name {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 18px;
  font-family: "Alex Brush", cursive;
  font-size: 34px;
  letter-spacing: 0.5px;
}

.intro-hint {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: breathe 2.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.intro-envelope {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 130px;
  perspective: 600px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

.intro-envelope-body {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
}

.intro-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  transform-origin: top center;
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: flapOpen 3.4s ease-in-out infinite;
  z-index: 3;
}

@keyframes flapOpen {
  0%, 20% { transform: rotateX(0deg); }
  50%, 70% { transform: rotateX(180deg); }
  100% { transform: rotateX(0deg); }
}

.intro-seal {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.intro-flower {
  position: absolute;
  width: 170px;
  height: 170px;
  opacity: 0.95;
  z-index: 2;
}

.intro-flower.left { left: -32px; bottom: -26px; transform: rotate(8deg); }
.intro-flower.right { right: -32px; top: -16px; transform: rotate(190deg); }

.intro-balloon {
  position: absolute;
  width: 44px;
  height: 58px;
  border-radius: 50% 50% 46% 46%;
  z-index: 2;
  animation: floatBalloon 4.5s ease-in-out infinite;
}

.intro-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 80px;
  background: rgba(0, 0, 0, 0.18);
}

@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* ============ Public invitation ============ */
.pub-root {
  min-height: 100vh;
  background: #e8e4dc;
  display: flex;
  justify-content: center;
  padding: 0;
}

.pub-phone {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #fff;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.14);
}

.pub-content {
  position: relative;
}

.pub-music-fab {
  position: fixed;
  right: max(18px, calc(50vw - 218px));
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 70;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pub-rsvp-fab {
  position: fixed;
  right: max(18px, calc(50vw - 218px));
  bottom: 74px;
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 11px;
  z-index: 70;
  box-shadow: 0 8px 20px rgba(236, 95, 146, 0.4);
}

.pub-footer {
  text-align: center;
  padding: 26px 18px 34px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(80, 80, 80, 0.55);
}

.rsvp-modal {
  width: min(430px, 94vw);
}

.rsvp-form {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.rsvp-form label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.rsvp-form textarea {
  min-height: 80px;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--pink-line);
  box-shadow: 0 0 0 2px #fde8f1;
}

.rsvp-success {
  text-align: center;
  padding: 14px 6px 20px;
}

.rsvp-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e9f7ea;
  color: #3e9142;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.toast {
  position: fixed;
  z-index: 400;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d2d2d;
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  animation: toastIn 0.2s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ Editor animations ============ */
@keyframes aFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes aFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aZoomIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
@keyframes aZoomOut { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
@keyframes aGrow { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes aShrink { from { transform: scale(1.4); } to { transform: scale(1); } }
@keyframes aPulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes aSoftZoom { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes aTinyZoom { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes aPan { from { transform: translateX(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aRise { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aPop { 0% { transform: scale(0.7); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes aDiagonal { from { transform: translate(-24px, 24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aBounce { 0% { transform: translateY(-50px); opacity: 0; } 60% { transform: translateY(8px); opacity: 1; } 80% { transform: translateY(-4px); } 100% { transform: none; } }
@keyframes aFall { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aSpin { from { transform: rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aRoll { from { transform: rotate(-180deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes aWobble { 0% { transform: rotate(-4deg); } 25% { transform: rotate(4deg); } 50% { transform: rotate(-3deg); } 75% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes aSqueeze { 0% { transform: scaleX(1.25) scaleY(0.8); opacity: 0; } 60% { transform: scaleX(0.96) scaleY(1.04); opacity: 1; } 100% { transform: none; } }
@keyframes aBlur { from { filter: blur(12px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
@keyframes aShine { 0% { opacity: 0; filter: brightness(2.2); } 100% { opacity: 1; filter: brightness(1); } }
@keyframes aRect { 0% { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); } 100% { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes aBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes aShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes aFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes aDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes aOrbit { 0% { transform: rotate(0) translateX(6px) rotate(0); } 100% { transform: rotate(360deg) translateX(6px) rotate(-360deg); } }
@keyframes aTransform { 0% { transform: skewX(-6deg) scale(0.95); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ============ Utility ============ */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spacer {
  flex: 1 1;
}

.muted {
  color: #8a8a8a;
}

.tiny {
  font-size: 9.5px;
  line-height: 1.45;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .ed-toolbar { max-width: calc(100vw - 420px); }
}

@media (max-width: 860px) {
  .l-hero { grid-template-columns: 1fr; gap: 26px; }
  .l-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-card { padding: 28px 20px; }
  .ed-panel { width: 280px; }
  .ed-brand { display: none; }
}

/* ============ Selection extras ============ */
.selection-handle.rot {
  left: 50%;
  top: -28px;
  margin-left: -5px;
  cursor: -webkit-grab;
  cursor: grab;
  background: #fff;
  border-color: var(--pink);
}

.selection-handle-line {
  position: absolute;
  left: 50%;
  top: -20px;
  width: 1px;
  height: 16px;
  background: var(--pink);
  z-index: 59;
  pointer-events: none;
}

.selection-handle.mid-n,
.selection-handle.mid-s,
.selection-handle.mid-w,
.selection-handle.mid-e {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.selection-handle.mid-n { left: 50%; top: -4px; margin-left: -3.5px; cursor: ns-resize; }
.selection-handle.mid-s { left: 50%; bottom: -4px; margin-left: -3.5px; cursor: ns-resize; }
.selection-handle.mid-w { left: -4px; top: 50%; margin-top: -3.5px; cursor: ew-resize; }
.selection-handle.mid-e { right: -4px; top: 50%; margin-top: -3.5px; cursor: ew-resize; }

/* ============ Panel form bits ============ */
.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding: 40px 18px;
  color: #9a938a;
}

.panel-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f3ee;
  color: #b4a894;
}

.panel-empty p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  max-width: 220px;
}

.num-field {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  flex: 1 1;
  min-width: 0;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #948c82;
}

.num-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e6e0d8;
  background: #fff;
  border-radius: 7px;
  padding: 0 8px;
  height: 32px;
}

.num-input-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 11.5px;
  color: #2f2b27;
  background: transparent;
}

.num-input-wrap i {
  font-style: normal;
  font-size: 9px;
  color: #a8a096;
}

.field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid #e6e0d8;
  background: #fff;
  color: #55504a;
  font-family: inherit;
  font-size: 9.5px;
  cursor: pointer;
  transition: 0.15s;
}

.btn-mini:hover {
  border-color: #d8cec0;
  background: #fbf8f4;
}

.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 5px;
  gap: 5px;
  margin-bottom: 6px;
}

.align-btn {
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e6e0d8;
  background: #fff;
  color: #5d574f;
  font-family: inherit;
  font-size: 9.5px;
  cursor: pointer;
  transition: 0.15s;
}

.align-btn:hover {
  border-color: #d8cec0;
  background: #fbf8f4;
}

/* ============ Not found ============ */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at 50% 20%, #fffaf4, #f4ece1 70%);
}

.notfound-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #efe5d8;
  border-radius: 18px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(80, 62, 40, 0.1);
}

.notfound-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #fdeef3;
  color: var(--pink);
}

.notfound-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #302b25;
}

.notfound-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #8b837a;
  margin: 0 0 20px;
}

.notfound-card .btn-primary {
  text-decoration: none;
}

/* ============ Element animation classes ============ */
.anim-zoom-in { animation-name: aZoomIn; }
.anim-zoom-out { animation-name: aZoomOut; }
.anim-grow { animation-name: aGrow; }
.anim-shrink { animation-name: aShrink; }
.anim-pulse { animation-name: aPulse; animation-iteration-count: infinite; }
.anim-soft-zoom { animation-name: aSoftZoom; animation-iteration-count: infinite; }
.anim-tiny-zoom { animation-name: aTinyZoom; animation-iteration-count: infinite; }
.anim-pan { animation-name: aPan; }
.anim-rise { animation-name: aRise; }
.anim-pop { animation-name: aPop; }
.anim-diagonal { animation-name: aDiagonal; }
.anim-bounce { animation-name: aBounce; }
.anim-fall { animation-name: aFall; }
.anim-spin { animation-name: aSpin; }
.anim-roll { animation-name: aRoll; }
.anim-wobble { animation-name: aWobble; }
.anim-squeeze { animation-name: aSqueeze; }
.anim-blur { animation-name: aBlur; }
.anim-fade { animation-name: aFadeIn; }
.anim-shine { animation-name: aShine; }
.anim-rect { animation-name: aRect; }
.anim-breathe { animation-name: aBreathe; animation-iteration-count: infinite; }
.anim-shake { animation-name: aShake; animation-iteration-count: infinite; }
.anim-float { animation-name: aFloat; animation-iteration-count: infinite; }
.anim-drift { animation-name: aDrift; animation-iteration-count: infinite; }
.anim-orbit { animation-name: aOrbit; animation-iteration-count: infinite; animation-timing-function: linear !important; }
.anim-transform { animation-name: aTransform; }

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ============ Template modal body ============ */
.template-modal .modal-body {
  padding: 0;
}

.template-modal-body {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 22px 24px;
  max-height: 70vh;
  overflow: auto;
}

.template-preview-box {
  width: 400px;
  max-height: 62vh;
  overflow: auto;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f4f0e9;
  padding: 14px;
  display: flex;
  justify-content: center;
}

.template-preview-notes {
  flex: 1 1;
  min-width: 220px;
  padding-top: 6px;
}

.template-preview-notes h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 500;
  color: #2f2b27;
  margin: 6px 0 10px;
}

.template-preview-notes p {
  font-size: 11.5px;
  line-height: 1.75;
  color: #7f776d;
  margin: 0 0 14px;
}

.template-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .template-modal-body { flex-direction: column; }
  .template-preview-box { width: 100%; }
}

.gt-thumb {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 1240px) {
  .ed-brand { display: none; }
  .save-state { display: none; }
  .ed-pill { max-width: 220px; }
  .ed-pill input { min-width: 54px; }
}

@media (max-width: 1000px) {
  .ed-top { gap: 6px; padding: 0 8px; }
  .ed-pills { gap: 5px; }
  .ed-pill { padding: 5px 9px; gap: 5px; font-size: 11px; }
  .ed-pill input { font-size: 11px; min-width: 44px; max-width: 90px; }
  .ed-pill input[type="date"] { min-width: 104px; font-size: 10.5px; }
  .ed-btn-preview { padding: 0 10px; font-size: 11px; }
  .ed-btn-continue { padding: 0 11px; font-size: 11px; }
}

@media (max-width: 860px) {
  .ed-pills .ed-pill:first-child .ed-pill-sep { display: none; }
  .ed-btn-preview { width: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .ed-btn-preview svg { width: 15px; height: 15px; }
}

@media (max-width: 1150px) {
  .ed-toolbar {
    max-width: calc(100vw - 420px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ed-toolbar::-webkit-scrollbar { display: none; }
  .tb-btn { font-size: 0; gap: 0; padding: 0 7px; min-width: 30px; }
  .tb-btn svg { width: 14px; height: 14px; }
  .tb-font { display: none; }
  .tb-label { display: none; }
  .tb-sizeinput { width: 26px; }
}

/* Top bar refinements */
.ed-brand {
  gap: 7px;
  min-width: 136px;
}

.ed-brand-mail {
  color: #2a2a2a;
  flex-shrink: 0;
}

.ed-pill-pencil {
  opacity: 0.38;
  flex-shrink: 0;
}

.ed-date-pill {
  position: relative;
  cursor: pointer;
}

.ed-date-text {
  font-size: 12px;
  white-space: nowrap;
}

.ed-date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0 !important;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ed-canvas-scroll {
  padding-top: 64px;
}

/* ============ Intro animation panel ============ */
.intro-kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.intro-kind {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.intro-kind-thumb {
  width: 100%;
  height: 56px;
  border-radius: 6px;
  border: 1px solid #e6e0d8;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  transition: 0.15s;
}

.intro-kind-thumb svg {
  width: 38px;
  height: 38px;
}

.intro-kind.active .intro-kind-thumb {
  border: 2px solid var(--pink);
  box-shadow: 0 0 0 2px #fdeef4;
}

.intro-kind-label {
  font-size: 9.5px;
  color: #7d7973;
  letter-spacing: 0.2px;
}

.intro-kind.active .intro-kind-label {
  color: var(--pink-strong);
  font-weight: 500;
}

.intro-kind-thumb.sobre {
  background: #f7f5f2;
}

.intro-kind-envelope {
  width: 34px;
  height: 24px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #ded8d0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.intro-kind-envelope::before,
.intro-kind-envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 48%, #ded8d0 49%, #ded8d0 51%, transparent 52%);
}

.intro-kind-envelope::after {
  background: linear-gradient(45deg, transparent 48%, #ded8d0 49%, #ded8d0 51%, transparent 52%);
}

.intro-kind-thumb.flores {
  background: linear-gradient(140deg, #fdf4f1, #f5e3dc);
}

.intro-kind-thumb.globos {
  background: linear-gradient(140deg, #fdf7ea, #f4e6c8);
}

.intro-kind-balloons {
  position: relative;
  width: 44px;
  height: 40px;
  display: block;
}

.intro-kind-balloons i {
  position: absolute;
  width: 12px;
  height: 15px;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 35% 30%, #f2d78a, #c8a24a);
}

.intro-kind-balloons i:nth-child(1) { left: 0; top: 8px; }
.intro-kind-balloons i:nth-child(2) { left: 11px; top: 2px; }
.intro-kind-balloons i:nth-child(3) { left: 22px; top: 10px; }
.intro-kind-balloons i:nth-child(4) { left: 31px; top: 4px; width: 11px; height: 14px; }
.intro-kind-balloons i:nth-child(5) { left: 16px; top: 20px; width: 11px; height: 14px; }

.color-block {
  margin-top: 16px;
}

.color-block-label {
  font-size: 10.5px;
  color: #6f6b66;
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.color-block-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.color-block-swatch {
  width: 74px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid #e2ddd6;
  padding: 0;
  flex-shrink: 0;
  background: #fff;
  cursor: pointer;
}

.color-block-swatch::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-block-swatch::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.color-block-right {
  flex: 1 1;
  min-width: 0;
}

.color-block-hex {
  width: 100%;
  height: 42px;
  border: 1px solid #e2ddd6;
  border-radius: 7px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 11.5px;
  color: #2f2b27;
  outline: none;
  background: #fff;
}

.color-block-hex:focus {
  border-color: var(--pink-line);
  box-shadow: 0 0 0 2px #fde8f1;
}

.color-block-hint {
  font-size: 10px;
  line-height: 1.55;
  color: #a09a92;
  margin: 6px 0 0;
}

.envelope-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 6px;
  gap: 6px;
}

.envelope-swatch {
  height: 30px;
  border-radius: 5px;
  border: 1px solid #e2ddd6;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.42);
  padding: 0;
  cursor: pointer;
  transition: 0.15s;
}

.envelope-swatch.active {
  box-shadow: 0 0 0 2px var(--pink);
  border-color: var(--pink);
}

.envelope-swatch[style*="#16295a"],
.envelope-swatch[style*="#5a5a5a"],
.envelope-swatch[style*="#3d2170"] {
  color: rgba(255, 255, 255, 0.72);
}

/* ============ Section animation grid ============ */
.anim-style-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.anim-style {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px 7px;
  height: 76px;
  text-align: center;
}

.anim-style-label {
  font-size: 9px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anim-pic {
  width: 38px;
  height: 26px;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.anim-pic i {
  position: absolute;
  display: block;
  background: var(--pink);
  opacity: 0.5;
  border-radius: 2px;
}

.anim-pic i:nth-child(1) { left: 3px; top: 7px; width: 10px; height: 12px; }
.anim-pic i:nth-child(2) { left: 15px; top: 3px; width: 12px; height: 20px; opacity: 0.85; }
.anim-pic i:nth-child(3) { left: 29px; top: 9px; width: 6px; height: 8px; opacity: 0.3; }

.anim-pic.p2 i:nth-child(1) { left: 12px; top: 14px; width: 14px; height: 4px; border-radius: 1px; }
.anim-pic.p2 i:nth-child(2) { left: 16px; top: 4px; width: 6px; height: 12px; }
.anim-pic.p2 i:nth-child(3) { left: 18px; top: 0; width: 2px; height: 4px; background: var(--pink-dark, #d94f80); }

.anim-pic.p3 i { border-radius: 50%; }
.anim-pic.p3 i:nth-child(1) { left: 4px; top: 4px; width: 12px; height: 12px; opacity: 0.3; }
.anim-pic.p3 i:nth-child(2) { left: 12px; top: -2px; width: 12px; height: 12px; }
.anim-pic.p3 i:nth-child(3) { left: 20px; top: 4px; width: 12px; height: 12px; opacity: 0.6; }

.anim-pic.p4 i { transform: rotate(-24deg); }
.anim-pic.p4 i:nth-child(1) { left: 2px; top: 10px; width: 26px; height: 10px; opacity: 0.9; border-radius: 2px; }
.anim-pic.p4 i:nth-child(2) { left: 4px; top: 10px; width: 12px; height: 10px; opacity: 0.35; }
.anim-pic.p4 i:nth-child(3) { left: 24px; top: 6px; width: 8px; height: 8px; opacity: 0.5; }

.anim-pic.p5 i:nth-child(1) { left: 4px; top: 8px; width: 7px; height: 12px; opacity: 0.4; }
.anim-pic.p5 i:nth-child(2) { left: 14px; top: 4px; width: 8px; height: 18px; opacity: 0.75; }
.anim-pic.p5 i:nth-child(3) { left: 25px; top: 10px; width: 8px; height: 9px; opacity: 0.55; }

.anim-pic.p6 i { border-radius: 50%; width: 10px; height: 10px; }
.anim-pic.p6 i:nth-child(1) { left: 4px; top: 12px; opacity: 0.3; }
.anim-pic.p6 i:nth-child(2) { left: 14px; top: 8px; opacity: 0.55; }
.anim-pic.p6 i:nth-child(3) { left: 24px; top: 4px; opacity: 0.9; }

.anim-pic.p7 i { border-radius: 50%; background: radial-gradient(circle, var(--pink) 0%, rgba(236, 95, 146, 0.25) 70%); }
.anim-pic.p7 i:nth-child(1) { left: 1px; top: 6px; width: 12px; height: 12px; }
.anim-pic.p7 i:nth-child(2) { left: 12px; top: 1px; width: 14px; height: 14px; opacity: 0.85; }
.anim-pic.p7 i:nth-child(3) { left: 25px; top: 8px; width: 10px; height: 10px; }

.anim-pic.p8 i:nth-child(1) { left: 13px; top: 0; width: 12px; height: 26px; border-radius: 6px 6px 0 0; opacity: 0.85; }
.anim-pic.p8 i:nth-child(2) { left: 5px; top: 14px; width: 28px; height: 5px; border-radius: 3px; opacity: 0.4; }
.anim-pic.p8 i:nth-child(3) { left: 17px; top: 20px; width: 4px; height: 6px; opacity: 0.25; }

.anim-pic.p9 i:nth-child(1) { left: 4px; top: 4px; width: 30px; height: 18px; border-radius: 4px; opacity: 0.18; background: transparent; border: 1.5px solid var(--pink); }
.anim-pic.p9 i:nth-child(2) { left: 8px; top: 8px; width: 22px; height: 10px; border-radius: 3px; opacity: 0.8; }
.anim-pic.p9 i:nth-child(3) { display: none; }

.anim-remove {
  width: 100%;
  height: 30px;
  margin-top: 10px;
  border: 1px solid #eeeae4;
  border-radius: 6px;
  background: #fbfaf8;
  color: #b8b2a9;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: 0.15s;
}

.anim-remove:not(:disabled):hover {
  color: var(--pink-strong);
  border-color: #f3c6d6;
  background: #fff8fb;
}

.anim-remove:disabled {
  cursor: default;
}

/* ============ Intro stage (canvas) ============ */
.intro-stage,
.intro-stage-empty {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-stage-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 30px;
}

.intro-stage-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: #2b2b2b;
  letter-spacing: 0.1px;
}

.intro-stage-empty p {
  margin: 0;
  max-width: 250px;
  font-size: 11px;
  line-height: 1.6;
  color: #8f8f8f;
}

.intro-stage-envelope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-stage-center {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  grid-gap: 12px;
  gap: 12px;
  pointer-events: none;
}

.intro-stage-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: inherit;
  white-space: nowrap;
}

.intro-stage-hand {
  opacity: 0.92;
}

.intro-stage-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-stage-flower {
  position: absolute;
  display: block;
  aspect-ratio: 1;
}

.intro-stage-flower svg {
  width: 100%;
  height: 100%;
}

.intro-stage-balloon {
  position: absolute;
  border-radius: 50% 50% 47% 47%;
  box-shadow: inset -8px -10px 22px rgba(0, 0, 0, 0.07), inset 8px 8px 20px rgba(255, 255, 255, 0.5);
  animation: introBalloon 6s ease-in-out infinite;
}

.intro-stage-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 90px;
  background: rgba(0, 0, 0, 0.12);
}

@keyframes introBalloon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.anim-bg {
  height: 54px;
  display: grid;
  place-items: center;
}

.anim-bg-flowers {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.anim-bg-flowers svg:nth-child(1) {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 36px;
  height: 36px;
}

.anim-bg-flowers svg:nth-child(2) {
  position: absolute;
  right: 2px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  opacity: 0.85;
}

.anim-bg-balloons {
  transform: scale(0.94);
}

.intro-stage-balloon {
  background-image: radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 46%);
}

/* Canvas wrapper keeps floating toolbars fixed while the page scrolls */
.ed-canvas-wrap {
  flex: 1 1;
  min-width: 0;
  position: relative;
  display: flex;
  overflow: hidden;
}

/* ============ Images panel ============ */
.upload-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.upload-tile-pink {
  width: 112px;
  height: 112px;
  border-radius: 9px;
  border: 1.5px dashed #f3a9c4;
  background: #fdeef4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--pink);
  font-size: 10.5px;
  font-weight: 500;
  transition: 0.15s;
}

.upload-tile-pink:hover {
  background: #fce6ef;
  border-color: var(--pink);
}

.upload-plus {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--pink);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  border: 1px solid #e7e1d9;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #a8a29a;
  margin-bottom: 4px;
}

.search-box input {
  border: 0;
  outline: none;
  flex: 1 1;
  min-width: 0;
  font-family: inherit;
  font-size: 11px;
  color: #3a352f;
  background: transparent;
}

.search-box input::placeholder {
  color: #b3ada4;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 7px;
  gap: 7px;
}

.cat-card {
  border: 1px solid #ece7e0;
  background: #fff;
  border-radius: 9px;
  padding: 8px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.cat-card:hover {
  border-color: #ded5ca;
  box-shadow: 0 4px 10px rgba(90, 76, 60, 0.06);
}

.cat-card.active {
  border-color: var(--pink);
  background: #fffcfe;
}

.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #8a7a5f;
}

.cat-label {
  font-size: 8.8px;
  line-height: 1.25;
  color: #5f5a53;
  text-align: center;
  letter-spacing: 0.1px;
}

.link-more {
  border: 0;
  background: transparent;
  color: var(--pink-strong);
  font-family: inherit;
  font-size: 10px;
  padding: 8px 0 2px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.link-more:hover {
  text-decoration: underline;
}

/* ============ Typography panel ============ */
.font-chips .chip {
  background: #f5f3f0;
  border-color: transparent;
  color: #5b564f;
  padding: 4px 10px;
  font-size: 9.5px;
}

.font-chips .chip:hover {
  background: #efece7;
}

.font-chips .chip.active {
  background: #fff;
  border-color: #d7cfc4;
  color: #2f2b27;
  font-weight: 500;
}

.font-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  padding: 1px 2px 4px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}

.font-list::-webkit-scrollbar {
  width: 5px;
}

.font-list::-webkit-scrollbar-thumb {
  background: #ddd5ca;
  border-radius: 999px;
}

.font-row {
  border: 1px solid #ece7e0;
  border-radius: 8px;
  background: #fff;
  padding: 0 11px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: 0.14s;
  flex-shrink: 0;
}

.font-row:hover {
  background: #fffdfb;
  border-color: #ded5ca;
}

.font-row.active {
  border-color: var(--pink);
  background: #fff7fa;
}

.font-row-name {
  font-size: 15px;
  color: #2f2b27;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-row.active .font-row-name {
  color: var(--pink-strong);
}

.font-row-sample {
  display: none;
}

/* ============ Colors panel extras ============ */
.color-block-title.as-button {
  border: 0;
  background: transparent;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 0 6px;
}

.ver-todos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: -2px;
  padding: 2px 0 8px;
  font-size: 10.5px;
}

/* ============ Effects panel ============ */
.style-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.style-card {
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e6e0d8;
  overflow: hidden;
  gap: 0;
  background: #fff;
  transition: 0.15s;
}

.style-card.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
  background: #fff;
}

.style-preview {
  width: 100%;
  height: 64px;
  background: #2b2b2b;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.5px;
}

.style-preview.eff-1 {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
}

.style-preview.eff-2 {
  background: #443345;
  color: #dfb9f2;
}

.style-preview.eff-3 {
  color: #f0d3fb;
  text-shadow: 0 0 7px #bb7ce8, 0 0 16px #a35fdf;
}

.style-preview.eff-4 {
  color: transparent;
  -webkit-text-stroke: 1px #e2b6f5;
}

.style-preview.shape svg {
  width: 58px;
  height: 26px;
}

.style-label {
  display: block;
  padding: 6px 2px 6px;
  font-size: 9px;
  line-height: 1.2;
  color: #5b564f;
  text-align: center;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.style-card.active .style-label {
  color: var(--pink-strong);
}

/* ============ Animation picker detail ============ */
.anim-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 12px;
  border-bottom: 1px solid #f0ece6;
  margin-bottom: 2px;
}

.anim-back {
  width: 24px;
  height: 24px;
  border: 1px solid #e8e2da;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #59544d;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.anim-back:hover {
  border-color: #d9d0c5;
  background: #fbf9f6;
}

.anim-detail-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fdeef4;
  color: var(--pink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.anim-detail-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.anim-detail-title {
  font-size: 12px;
  font-weight: 600;
  color: #2f2b27;
  line-height: 1.2;
}

.anim-detail-sub {
  font-size: 9.5px;
  color: #a39d94;
  margin-top: 1px;
}

.anim-variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 7px;
  gap: 7px;
}

.anim-variant {
  height: 34px;
  border: 1px solid #e9e3db;
  border-radius: 7px;
  background: #fff;
  font-family: inherit;
  font-size: 10px;
  color: #56514a;
  cursor: pointer;
  transition: 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  text-align: center;
  line-height: 1.15;
}

.anim-variant:hover {
  border-color: #dcd2c6;
  background: #fffdfa;
}

.anim-variant.active {
  border-color: var(--pink);
  background: #fff7fa;
  color: var(--pink-strong);
  font-weight: 500;
}

.anim-speed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #55504a;
  margin: 14px 0 0;
}

.anim-speed-head span:last-child {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: #8f8880;
}

.anim-direction-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.anim-direction {
  flex: 1 1;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #4c4740;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.anim-direction:hover {
  background: rgba(0, 0, 0, 0.03);
}

.anim-direction.active {
  border-color: var(--pink);
  background: rgba(255, 142, 195, 0.14);
  color: #b5477c;
}

/* ============ More menu (toolbar) ============ */
.more-menu {
  top: 58px;
  right: 16px;
  width: 224px;
  padding: 6px;
  border-radius: 10px;
  border-color: #ececec;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.more-item {
  gap: 10px;
  padding: 7px 10px;
  font-size: 11px;
  color: #3d3d3d;
}

.more-item svg {
  color: #6f6f6f;
  flex-shrink: 0;
}

.more-sep {
  margin: 3px 0;
  background: #f0f0f0;
}

.more-footer {
  text-align: right;
  border-top: 0;
  margin-top: 2px;
  padding: 8px 10px 4px;
  font-size: 9.5px;
  color: #b3b3b3;
}

.more-link-pop {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  width: 252px;
  background: #1c1c1c;
  border-radius: 8px;
  padding: 12px 13px 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.more-link-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 9px;
}

.more-link-field {
  border: 1px solid var(--pink);
  border-radius: 6px;
  padding: 0 9px;
  height: 32px;
  display: flex;
  align-items: center;
  background: #141414;
}

.more-link-field input {
  flex: 1 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
}

.more-link-field input::placeholder {
  color: #7a7a7a;
}

.more-link-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.more-link-save,
.more-link-remove {
  height: 26px;
  border-radius: 5px;
  border: 1px solid #3a3a3a;
  background: #2a2a2a;
  color: #e8e8e8;
  font-family: inherit;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  cursor: pointer;
}

.more-link-save {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.more-link-remove {
  color: #b7b7b7;
}

/* ============ Toolbar popovers ============ */
.tool-pop {
  position: absolute;
  z-index: 140;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 252px;
  background: #1c1c1c;
  border-radius: 9px;
  padding: 12px 13px 11px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.tool-pop-spacing {
  width: 236px;
  left: 46%;
}

.tool-pop-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #f2f2f2;
  margin-bottom: 8px;
}

.tool-pop-head + .tool-pop-range {
  margin-bottom: 12px;
}

.tool-pop-value {
  margin-left: auto;
  font-size: 10.5px;
  color: #cfcfcf;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.tool-pop-close {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

.tool-pop-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tool-pop-mini {
  font-size: 9px;
  color: #d7d7d7;
  border: 1px solid #4a4a4a;
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1;
}

.tool-pop-mini.lines {
  border: 0;
  font-size: 12px;
  padding: 0;
}

.tool-pop-range {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  outline: none;
  margin: 0;
}

.tool-pop-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: #ec5f92;
}

.tool-pop-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ec5f92;
  margin-top: -4.5px;
  cursor: pointer;
}

.tool-pop-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: #ec5f92;
}

.tool-pop-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ec5f92;
  cursor: pointer;
}

.tool-pop-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.tool-pop-chips button {
  border: 1px solid #3d3d3d;
  background: #262626;
  color: #d4d4d4;
  border-radius: 5px;
  height: 24px;
  padding: 0 9px;
  font-family: inherit;
  font-size: 9.5px;
  cursor: pointer;
}

.tool-pop-chips button.active {
  border-color: var(--pink);
  color: #fff;
  background: #3a2430;
}

.tb-strong {
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  padding: 0 10px;
}

.tb-pink-icon {
  color: var(--pink);
  display: inline-flex;
}

/* ============ Photo shapes panel ============ */
.shape-cat-label {
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #8a847c;
  text-transform: uppercase;
  margin: 12px 0 7px;
}

.photo-shape-grid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.photo-shape {
  position: relative;
  height: 106px;
  padding: 8px;
  background: #fdfcfa;
  border-color: #ece7e0;
  overflow: hidden;
}

.photo-shape-demo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.photo-shape-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(35, 35, 35, 0.82);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.1px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-shape.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
  background: #fff8fb;
}

.photo-shape-demo {
  display: block;
  overflow: hidden;
}

.photo-shape-demo > *,
.photo-shape-demo img,
.photo-shape-demo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Intro collage (flores / globos) ============ */
.intro-collage {
  position: absolute;
  inset: -10%;
  overflow: hidden;
}

.intro-collage-flower {
  position: absolute;
  display: block;
  aspect-ratio: 1;
}

.intro-collage-flower svg {
  width: 100%;
  height: 100%;
}

.intro-collage-balloon {
  position: absolute;
  aspect-ratio: 0.86;
  border-radius: 48% 48% 46% 46% / 54% 54% 44% 44%;
  box-shadow:
    inset -10px -14px 24px rgba(0, 0, 0, 0.05),
    inset 10px 12px 22px rgba(255, 255, 255, 0.55);
}

.intro-collage-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 14vh;
  background: rgba(120, 120, 120, 0.28);
}

.intro-open {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  grid-gap: 10px;
  gap: 10px;
  pointer-events: none;
}

.intro-open-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.35);
}

.intro-envelope-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0.6px;
  z-index: 4;
  opacity: 0.86;
}

/* Canvas intro stage text placement */
.intro-stage-center {
  top: 50%;
}

.intro-stage-title {
  font-size: 30px;
}

/* Intro kind cards wrap the label in the card */
.intro-kind {
  border: 1px solid #ece7e0;
  border-radius: 8px;
  background: #fff;
  padding: 6px 5px 6px;
  transition: 0.15s;
}

.intro-kind:hover {
  border-color: #ded5ca;
}

.intro-kind.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
  background: #fff;
}

.intro-kind .intro-kind-thumb {
  border: 0;
  box-shadow: none;
  height: 52px;
}

.intro-kind.active .intro-kind-thumb {
  border: 0;
  box-shadow: none;
}

.intro-kind-label {
  padding-bottom: 1px;
}

/* Layers rows */
.layer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.layer-name {
  font-size: 10.5px;
  font-weight: 500;
}

.layer-row .sec-mini {
  opacity: 0;
  transition: 0.12s;
}

.layer-row:hover .sec-mini,
.layer-row.selected .sec-mini {
  opacity: 1;
}

.layer-row {
  padding: 8px 9px;
}

/* Shared intro scene */
.intro-stage-scene {
  inset: -4%;
}

.intro-stage-balloon {
  aspect-ratio: 0.86;
  width: auto;
}

.intro-stage-balloon::after {
  height: 12vh;
}

.intro-flap-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  z-index: 3;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  letter-spacing: 0.6px;
  opacity: 0.9;
  pointer-events: none;
}

.intro-overlay .intro-stage-envelope,
.intro-overlay .intro-stage-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ Intro scene layout ============ */
.intro-stage-scene {
  inset: 0;
}

.intro-stage-garden {
  filter: saturate(1.05);
}

.intro-stage-garden .intro-stage-flower {
  aspect-ratio: 1;
}

.intro-stage-heart {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  filter: drop-shadow(0 16px 26px rgba(60, 90, 120, 0.12));
  animation: introFloat 7s ease-in-out infinite;
}

.intro-stage-heart:nth-child(3n) {
  animation-duration: 8.5s;
  animation-delay: -1.6s;
}

.intro-stage-heart:nth-child(2n) {
  animation-duration: 9.5s;
  animation-delay: -3.2s;
}

.intro-stage-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes introFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.intro-overlay .intro-open-text {
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.8);
}

.intro-stage .intro-stage-center {
  z-index: 6;
}

.intro-overlay .intro-open {
  z-index: 6;
}

/* Keep scene layer below headline overlays */
.intro-stage-scene,
.intro-scene {
  isolation: isolate;
  z-index: 0;
}

.intro-stage-center,
.intro-open,
.intro-flap-name {
  z-index: 4;
}

.intro-stage-heart svg {
  filter: blur(0.4px);
}

.intro-stage-balloons::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(246, 178, 195, 0.85) 0%, rgba(246, 178, 195, 0) 34%),
    radial-gradient(circle at 78% 78%, rgba(242, 168, 187, 0.8) 0%, rgba(242, 168, 187, 0) 36%),
    radial-gradient(circle at 92% 22%, rgba(158, 200, 236, 0.8) 0%, rgba(158, 200, 236, 0) 34%),
    radial-gradient(circle at 38% 46%, rgba(248, 202, 214, 0.75) 0%, rgba(248, 202, 214, 0) 40%),
    radial-gradient(circle at 60% 8%, rgba(180, 214, 240, 0.7) 0%, rgba(180, 214, 240, 0) 30%);
  filter: blur(14px);
}

.intro-stage-garden {
  filter: saturate(1.14);
}

.intro-stage-garden::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 74%, rgba(240, 186, 196, 0.75) 0%, rgba(240, 186, 196, 0) 38%),
    radial-gradient(circle at 84% 14%, rgba(233, 205, 188, 0.75) 0%, rgba(233, 205, 188, 0) 36%),
    radial-gradient(circle at 66% 92%, rgba(196, 214, 198, 0.7) 0%, rgba(196, 214, 198, 0) 34%),
    radial-gradient(circle at 42% 30%, rgba(250, 216, 222, 0.7) 0%, rgba(250, 216, 222, 0) 40%);
  filter: blur(16px);
}

.intro-stage-balloons::before {
  display: none;
}

.intro-stage-tint {
  position: absolute;
  inset: -6%;
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
}

/* ============ Efectos decorativos de animación ============ */
.decor-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.decor-p {
  position: absolute;
  display: block;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.decor-confetti {
  top: -12px;
  width: 6px;
  height: 10px;
  border-radius: 1.5px;
  opacity: 0.85;
  animation-name: decor-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes decor-fall {
  0% {
    transform: translate3d(0, -14px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--dx, 0px), 420px, 0) rotate(480deg);
    opacity: 0;
  }
}

.decor-snow {
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 4px rgba(160, 200, 235, 0.7);
  animation-name: decor-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes decor-snow-fall {
  0% {
    transform: translate3d(0, -12px, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(14px, 420px, 0);
    opacity: 0;
  }
}

.decor-sparkle {
  color: #ffd76e;
  text-shadow: 0 0 6px rgba(255, 215, 110, 0.9);
  animation: decor-twinkle 2.2s ease-in-out infinite;
}

.decor-star {
  color: #ffc857;
  text-shadow: 0 0 6px rgba(255, 200, 87, 0.85);
  animation: decor-twinkle 2.8s ease-in-out infinite;
}

.decor-twinkle {
  color: #fff6c9;
  text-shadow: 0 0 8px rgba(255, 246, 201, 0.95);
  animation: decor-twinkle 1.8s ease-in-out infinite;
}

@keyframes decor-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.decor-shimmer {
  top: 0;
  width: 34px;
  height: 120%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  animation: decor-shimmer 2.4s ease-in-out infinite;
}

@keyframes decor-shimmer {
  0% {
    opacity: 0;
    transform: translate3d(-40px, -40px, 0) rotate(18deg);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(160px, 40px, 0) rotate(18deg);
  }
}

.decor-heart {
  color: #ff8ec3;
  text-shadow: 0 0 8px rgba(255, 142, 195, 0.6);
  animation-name: decor-rise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.decor-bubble {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08) 70%);
  animation-name: decor-rise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes decor-rise {
  0% {
    transform: translate3d(0, 18px, 0) scale(0.85);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translate3d(10px, -150px, 0) scale(1.1);
    opacity: 0;
  }
}

.decor-firework {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  animation: decor-burst 1.6s ease-out infinite;
}

@keyframes decor-burst {
  0% {
    transform: translate3d(0, 0, 0) scale(0.4);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(0.7);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decor-p {
    animation: none !important;
  }
}

/* Ajustar familia activa (paridad con el editor real) */
.anim-adjust {
  width: 100%;
  height: 38px;
  margin: 10px 0 2px;
  border: 0;
  border-radius: 7px;
  background: var(--pink);
  color: #fff;
  font-family: Jost, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
}
.anim-adjust:hover { filter: brightness(0.96); }

/* Edición inline: input de una línea (rótulos) y textarea de 2 filas (textos) */
.inline-text-edit-input,
.inline-text-edit-area {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: block;
  font-family: inherit;
}
.inline-text-edit-input { line-height: normal; }

/* Paneles contextuales ampliados (paridad Invitio) */
.design-pairs { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; margin-bottom: 12px; }
.design-card {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
}
.design-card.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 95, 146, 0.12); }
.design-preview {
  height: 74px;
  border-radius: 6px;
  background: #faf6f0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5c5148;
  overflow: hidden;
}
.design-preview b { font-family: "Cormorant Garamond", serif; font-weight: 500; }
.design-preview.classic b { font-size: 10px; display: block; }
.design-preview.classic i { font-style: normal; font-size: 11px; letter-spacing: 1px; }
.design-preview.brush b { font-size: 26px; }
.design-preview.brush i { font-style: normal; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }
.date-readonly {
  padding: 8px 10px;
  border-radius: 6px;
  background: #f6f3ef;
  color: var(--ink);
  font-size: 12px;
}
.color-field { display: grid; grid-gap: 4px; gap: 4px; font-size: 11px; color: var(--muted); }
.color-field-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
}
.color-field-row input[type="color"] { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.color-field-row b { font-weight: 500; font-size: 11px; color: var(--ink); }
.info-steps { display: grid; grid-gap: 14px; gap: 14px; }
.info-step { display: flex; gap: 10px; }
.info-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.info-step b { font-size: 12px; }
.info-step p { margin: 3px 0 0; font-size: 11px; color: var(--muted); line-height: 1.45; }
.slider-row { display: grid; grid-gap: 6px; gap: 6px; font-size: 11px; color: var(--muted); margin: 6px 0 10px; }
.slider-row input { width: 100%; accent-color: var(--pink); }
.audio-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.audio-file-row b { display: block; font-size: 11.5px; color: var(--ink); }
.audio-file-row span { font-size: 10.5px; color: var(--muted); }
.option-grid { display: grid; grid-gap: 6px; gap: 6px; }
.option-grid.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.option-tile {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 4px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--ink-soft);
  cursor: pointer;
}
.option-tile.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 95, 146, 0.12); color: var(--pink-strong); }
.music-preview { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid currentColor; }
.music-preview.circle { border-radius: 50%; }
.music-preview.rounded { border-radius: 7px; }
.music-preview.pill { border-radius: 999px; width: 34px; }
.music-preview.fill { background: currentColor; }
.music-preview.fill svg { color: #fff; }
.music-preview.outline { background: transparent; }
.music-preview.ghost { border-color: transparent; }

/* Elementos: buscador, filas de texto y ayuda, como el editor real */
.elem-search { margin: 0 0 10px; }
.elem-text-card {
  grid-column: 1 / -1;
}
.elem-help {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #8a8a8a;
  font-size: 10px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: help;
}
.elem-help:hover { color: var(--pink-strong); border-color: var(--pink-line); }

.ed-btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
  background: #fff;
  color: #2f2f2f;
  border-radius: 8px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
}
.ed-btn-save:hover:not(:disabled) { background: #f8f8f8; }
.ed-btn-save:disabled { background: #ececec; border-color: #ececec; color: #b5b5b5; cursor: default; }

/* Barra de sección: píldora oscura con nombre, alto, acciones y fondo */
.ed-toolbar.section-toolbar {
  background: #1a1a1a;
  height: 42px;
  padding: 4px 10px;
  gap: 2px;
  max-width: calc(100vw - 380px);
}
.tb-nameinput {
  width: 120px;
  min-width: 70px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 2px;
}
.tb-heightinput {
  width: 52px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 0;
}
.tb-section-label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0 3px;
}
.tb-swatch {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}
.tb-animar {
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 9px;
  font-weight: 700;
  color: #fff;
}
.ed-toolbar.section-toolbar .tb-btn:disabled {
  opacity: 0.35;
}

