.ei {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
}

.ei-sticker {
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--st-bg, #f1ecf8);
  color: var(--st-ink, #5f3dc4);
  box-shadow: 0 4px 10px rgba(23, 19, 31, 0.16);
}
.ei-sticker .ei {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2;
}

.cb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cb-base, #1d1d1f);
  z-index: 0;
  pointer-events: none;
}
.cb__fill {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  background: var(--cb-fill, transparent);
  background-size: 140% 140%;
  transform-origin: 50% 50%;
}
.cb__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--cb-dim, 0));
}
.cb__grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.14) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.9;
}
.cb[data-motion=drift] .cb__fill {
  animation: cb-drift 22s ease-in-out infinite alternate;
}
.cb[data-motion=pulse] .cb__fill {
  animation: cb-pulse 9s ease-in-out infinite;
}
.cb[data-kind=video] .cb__fill, .cb[data-kind=image] .cb__fill {
  background: none;
}
.cb__shader {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.cb__shader[hidden] {
  display: none;
}
.cb[data-kind=shader] .cb__fill {
  inset: 0;
  width: 100%;
  height: 100%;
  animation: none;
}
.cb[data-kind=shader] .cb__grain {
  opacity: 0.5;
}

@keyframes cb-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    background-position: 0% 0%;
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
    background-position: 100% 100%;
  }
}
@keyframes cb-pulse {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: saturate(1.15) brightness(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb .cb__fill {
    animation: none !important;
  }
}
.ec-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--ec-ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ec-ink: #fff;
  --ec-ink-soft: rgba(255, 255, 255, 0.82);
  --ec-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  --ec-panel: rgba(255, 255, 255, 0.16);
  --ec-panel-line: rgba(255, 255, 255, 0.32);
}
[data-tone=dark] .ec-stage {
  --ec-ink: #1b1424;
  --ec-ink-soft: rgba(27, 20, 36, 0.74);
  --ec-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  --ec-panel: rgba(255, 255, 255, 0.55);
  --ec-panel-line: rgba(255, 255, 255, 0.8);
}
[data-ink] .ec-stage {
  --ec-ink: var(--ec-ink-custom);
  --ec-ink-soft: color-mix(in srgb, var(--ec-ink-custom) 80%, transparent);
}

.ec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--ec-panel-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  font-family: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ec-ink);
}
[data-tone=dark] .ec-chip {
  background: rgba(255, 255, 255, 0.55);
}
.ec-chip__icon {
  display: inline-flex;
  font-size: 1rem;
  line-height: 1;
}

.ec-title {
  margin: 18px 0 0;
  font-family: var(--ec-font, "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ec-ink);
  text-shadow: var(--ec-shadow);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ec-to {
  margin: 14px 0 0;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
  text-shadow: var(--ec-shadow);
}
.ec-to:empty {
  display: none;
}

.ec-cover {
  position: relative;
  width: min(78%, 360px);
  margin: 26px auto 0;
  padding: 10px 10px 34px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: rotate(-2.5deg);
}
.ec-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}
.ec-cover::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(3deg);
  background: color-mix(in srgb, var(--ec-accent, #ff4f8b) 55%, transparent);
  border-radius: 2px;
}
.ec-cover[hidden] {
  display: none;
}

.ec-message {
  margin: 28px 0 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--ec-panel-line);
  border-radius: 24px;
  background: var(--ec-panel);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  backdrop-filter: saturate(150%) blur(20px);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ec-ink);
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ec-message:empty {
  display: none;
}

.ec-from {
  margin: 18px 0 0;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ec-ink);
  text-shadow: var(--ec-shadow);
}
.ec-from:empty {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.ecx {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #17131f;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #17131f;
  overflow-x: hidden;
}
body.ecx > .cb {
  position: fixed;
}

button,
input,
textarea {
  font: inherit;
}

.ecx-fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ecx-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  pointer-events: none;
}
.ecx-top > * {
  pointer-events: auto;
}
.ecx-top__end {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ecx-ghost, .ecx-status, .ecx-round {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}
[data-tone=dark] .ecx-ghost, [data-tone=dark] .ecx-status, [data-tone=dark] .ecx-round {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  color: #17131f;
  text-shadow: none;
}

.ecx-round {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
}
.ecx-round:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}

.ecx-status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ecx-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.ecx-ghost:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
@media (max-width: 479.98px) {
  .ecx-ghost {
    justify-content: center;
    width: 42px;
    padding: 0;
  }
  .ecx-ghost span {
    display: none;
  }
}

.ecx-send {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  font-family: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}
.ecx-send:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
[data-tone=dark] .ecx-send {
  background: #17131f;
  color: #fff;
}
.ecx-send:hover {
  transform: translateY(-1px) scale(1.02);
}
.ecx-send:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.ecx-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(max(14px, env(safe-area-inset-top)) + 74px) 0 calc(150px + env(safe-area-inset-bottom));
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
body.has-drawer .ecx-page {
  padding-bottom: calc(330px + env(safe-area-inset-bottom));
}

.ecx-field {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-shadow: inherit;
  caret-color: var(--ec-accent, #ff4f8b);
  outline: none;
  resize: none;
  overflow: hidden;
}
.ecx-field::placeholder {
  color: currentColor;
  opacity: 0.45;
}

.ecx-message, .ecx-inline, textarea.ec-title.ecx-field {
  border-radius: 12px;
  outline: 2px dashed transparent;
  outline-offset: 8px;
  transition: outline-color 0.2s;
}
.ecx-message:hover, .ecx-inline:hover, textarea.ec-title.ecx-field:hover {
  outline-color: rgba(255, 255, 255, 0.45);
}
.ecx-message:focus-within, .ecx-inline:focus-within, textarea.ec-title.ecx-field:focus-within, .ecx-message:focus, .ecx-inline:focus, textarea.ec-title.ecx-field:focus {
  outline: 2px solid rgba(255, 255, 255, 0.75);
}
[data-tone=dark] .ecx-message:hover, [data-tone=dark] .ecx-inline:hover, [data-tone=dark] textarea.ec-title.ecx-field:hover {
  outline-color: rgba(27, 20, 36, 0.25);
}
[data-tone=dark] .ecx-message:focus-within, [data-tone=dark] .ecx-inline:focus-within, [data-tone=dark] textarea.ec-title.ecx-field:focus-within, [data-tone=dark] .ecx-message:focus, [data-tone=dark] .ecx-inline:focus, [data-tone=dark] textarea.ec-title.ecx-field:focus {
  outline-color: rgba(27, 20, 36, 0.45);
}
body.is-preview .ecx-message, body.is-preview .ecx-inline, body.is-preview textarea.ec-title.ecx-field {
  outline: none !important;
}

.ecx-editable {
  border: 1px solid var(--ec-panel-line);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ecx-editable:hover {
  transform: translateY(-1px);
}
.ecx-editable:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}

.ecx-chev {
  font-size: 0.7rem;
  opacity: 0.75;
}

textarea.ec-title.ecx-field {
  display: block;
  width: 100%;
  min-height: 1em;
  margin-top: 18px;
  font-family: var(--ec-font, Bricolage Grotesque, Inter, Helvetica Neue, Arial, sans-serif);
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
}

.ecx-message textarea.ecx-field {
  font-size: 1.08rem;
}

.ecx-inline .ecx-field {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ecx-inline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0 6px;
  cursor: text;
}
.ecx-inline__pre {
  flex: none;
  opacity: 0.85;
}
.ecx-inline .ecx-field {
  width: auto;
  min-width: 5ch;
  max-width: 22ch;
  text-align: left;
  field-sizing: content;
}
body.is-preview .ecx-inline:has(.ecx-field:placeholder-shown) {
  display: none;
}

.ec-to.ecx-inline,
.ec-from.ecx-inline {
  display: flex;
}

.ecx-photo {
  margin-top: 26px;
}
.ecx-photo__add {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(70%, 280px);
  aspect-ratio: 5/3;
  border: 2px dashed var(--ec-panel-line);
  border-radius: 22px;
  background: var(--ec-panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ec-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s;
}
.ecx-photo__add:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-photo__add i {
  font-size: 1.6rem;
}
.ecx-photo__add:hover {
  transform: rotate(-1.5deg) scale(1.02);
}
.ecx-photo__add[hidden] {
  display: none;
}
body.is-preview .ecx-photo__add {
  display: none;
}
.ecx-photo.is-over .ecx-photo__add {
  border-color: var(--ec-ink);
}
.ecx-photo .ec-cover {
  margin-top: 0;
}
.ecx-photo__tools {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
body.is-preview .ecx-photo__tools {
  display: none;
}
.ec-cover:hover .ecx-photo__tools, .ec-cover:focus-within .ecx-photo__tools {
  opacity: 1;
}
@media (hover: none) {
  .ecx-photo__tools {
    opacity: 1;
  }
}

.ecx-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #17131f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.ecx-message {
  position: relative;
}
.ecx-message textarea {
  min-height: 5.2em;
  line-height: 1.6;
  text-align: left;
}
body.is-preview .ecx-message textarea {
  min-height: 0;
}
body.is-preview .ecx-message textarea:placeholder-shown {
  display: none;
}

.ecx-ideas-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
[data-tone=dark] .ecx-ideas-btn {
  background: rgba(27, 20, 36, 0.07);
}
body.is-preview .ecx-ideas-btn {
  display: none;
}

.ece-wall-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 34px auto 0;
  padding: 10px 16px;
  border: 2px dashed var(--ec-panel-line);
  border-radius: 16px;
  color: var(--ec-ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.ece-wall-hint[hidden] {
  display: none;
}

.ecx-error {
  max-width: 360px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: #c0213f;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.ecx-error[hidden] {
  display: none;
}

.ecx-dock {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 25;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  backdrop-filter: saturate(160%) blur(24px);
  box-shadow: 0 18px 50px rgba(15, 10, 25, 0.28);
  transform: translateX(-50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}
body.has-drawer .ecx-dock, body.is-preview .ecx-dock {
  opacity: 0;
  transform: translate(-50%, 30px);
  pointer-events: none;
}
.ecx-dock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  padding: 8px 10px 7px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: #17131f;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.ecx-dock__btn:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-dock__btn:hover, .ecx-dock__btn.is-active {
  background: rgba(23, 19, 31, 0.07);
}
@media (max-width: 379.98px) {
  .ecx-dock__btn {
    min-width: 60px;
  }
}
.ecx-dock__swatch, .ecx-dock__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}
.ecx-dock__swatch {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ecx-dock__icon {
  background: #f6f3fb;
  font-size: 1.05rem;
}
.ecx-dock__aa {
  font-size: 1rem;
  font-weight: 700;
}

.ecx-drawer {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  max-width: 760px;
  max-height: min(72vh, 600px);
  margin: 0 auto;
  padding: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  backdrop-filter: saturate(160%) blur(28px);
  box-shadow: 0 24px 70px rgba(15, 10, 25, 0.32);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.22s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ecx-drawer.is-open {
  opacity: 1;
  transform: none;
}
.ecx-drawer[hidden] {
  display: none;
}
.ecx-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
}
.ecx-drawer__head strong {
  font-family: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}
.ecx-drawer__label {
  margin: 14px 18px 8px;
  color: #807a8f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ecx-done {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #17131f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.ecx-done:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}

.ecx-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(23, 19, 31, 0.06);
}
.ecx-seg__btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #4a4458;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ecx-seg__btn[aria-checked=true] {
  background: #fff;
  color: #17131f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ecx-seg__btn--premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ecx-seg__btn--premium i {
  color: #e3a21a;
  font-size: 0.72rem;
}
.ecx-seg__btn[hidden] {
  display: none;
}

.ecx-rail {
  display: flex;
  gap: 10px;
  padding: 4px 18px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
  scrollbar-width: none;
}
.ecx-rail::-webkit-scrollbar {
  display: none;
}
.ecx-rail > * {
  flex: none;
  scroll-snap-align: start;
}
.ecx-rail--chips {
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.ecx-theme {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 104px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}
.ecx-theme:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-theme__face {
  position: relative;
  display: grid;
  place-items: center;
  height: 140px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  overflow: hidden;
}
.ecx-theme__aa {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.ecx-theme__face[data-tone=dark] .ecx-theme__aa {
  color: #1b1424;
  text-shadow: none;
}
.ecx-theme__badge {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.55rem;
}
.ecx-theme__name {
  overflow: hidden;
  color: #4a4458;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ecx-theme__live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ecx-theme__aa {
  position: relative;
}
.ecx-theme__premium {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe7a3, #f5b83d);
  box-shadow: 0 2px 8px rgba(176, 116, 0, 0.35);
  color: #4a2f00;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ecx-theme__premium i {
  font-size: 0.6rem;
}
.ecx-theme.is-premium .ecx-theme__face {
  box-shadow: inset 0 0 0 1.5px rgba(245, 184, 61, 0.7);
}
.ecx-theme.is-premium[aria-checked=true] .ecx-theme__face {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #e3a21a;
}
.ecx-theme:hover .ecx-theme__face {
  transform: translateY(-3px);
}
.ecx-theme[aria-checked=true] .ecx-theme__face {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #17131f;
}
.ecx-theme[aria-checked=true] .ecx-theme__name {
  color: #17131f;
}

.ecx-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 92px;
  height: 92px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: rgba(23, 19, 31, 0.05);
  color: #17131f;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s;
}
.ecx-tile:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-tile:hover {
  transform: translateY(-2px);
}
.ecx-tile[aria-checked=true] {
  border-color: #17131f;
  background: #fff;
}
.ecx-tile__icon {
  display: inline-flex;
  font-size: 1.7rem;
  line-height: 1;
}
.ecx-tile[aria-checked=true] .ecx-tile__icon {
  color: var(--ec-accent-ink, #7b4dff);
}
.ecx-tile__aa {
  font-size: 1.8rem;
  line-height: 1.05;
}
.ecx-tile__name {
  color: #4a4458;
  font-size: 0.72rem;
  font-weight: 600;
}

.ecx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px 0 10px;
  border: 1.5px solid rgba(23, 19, 31, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.ecx-chip:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-chip[aria-checked=true] {
  border-color: #17131f;
  background: #17131f;
  color: #fff;
}
.ecx-chip__icon {
  display: inline-flex;
  font-size: 1.05rem;
}

.ecx-ideas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
}

.ecx-idea {
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(23, 19, 31, 0.05);
  color: #17131f;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.ecx-idea:hover {
  background: rgba(23, 19, 31, 0.09);
}

.ecx-emoji {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 18px 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(23, 19, 31, 0.05);
  font-size: 0.88rem;
  font-weight: 600;
}
.ecx-emoji[hidden] {
  display: none;
}
.ecx-emoji input {
  width: 70px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  font-size: 1.4rem;
  text-align: center;
  outline: none;
}

.ecx-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px;
}

.ecx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(23, 19, 31, 0.05);
  cursor: pointer;
}
.ecx-toggle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ecx-toggle strong {
  font-size: 0.92rem;
}
.ecx-toggle small {
  color: #807a8f;
  font-size: 0.78rem;
  line-height: 1.35;
}
.ecx-toggle input {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: #d6d1de;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.25s;
}
.ecx-toggle input:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ecx-toggle input:checked {
  background: #34c759;
}
.ecx-toggle input:checked::after {
  transform: translateX(18px);
}

.ecx-danger {
  margin: 14px 18px 0;
}
.ecx-danger button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff0f2;
  color: #c0213f;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

body.is-preview .ecx-status,
body.is-preview .ecx-send,
body.is-preview .ecx-chev {
  display: none;
}
body.is-preview .ec-chip.ecx-editable {
  pointer-events: none;
}

.ecx-exit-preview {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #17131f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateX(-50%);
}
.ecx-exit-preview[hidden] {
  display: none;
}

.ecx-toast {
  position: fixed;
  top: calc(72px + env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: #17131f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.ecx-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.ecx-rail.ecx-rail--themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px 10px;
  max-height: 328px;
  padding: 4px 18px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
}
.ecx-rail.ecx-rail--themes::-webkit-scrollbar {
  display: block;
  width: 6px;
}
.ecx-rail.ecx-rail--themes::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 19, 31, 0.18);
}
.ecx-rail.ecx-rail--themes .ecx-theme {
  width: auto;
  scroll-snap-align: start;
}
.ecx-rail.ecx-rail--themes .ecx-theme__face {
  height: 128px;
}

.ecx-colors {
  margin: 6px 18px 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(23, 19, 31, 0.08);
}
.ecx-colors[hidden] {
  display: none;
}
.ecx-colors__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ecx-colors__head strong {
  font-family: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}
.ecx-colors__pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecx-link {
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #4a4458;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ecx-color {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.ecx-color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ecx-color__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.ecx-color:hover .ecx-color__dot, input:focus-visible + .ecx-color__dot {
  transform: scale(1.08);
}
.ecx-color input:focus-visible + .ecx-color__dot {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}

.ecx-combos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ecx-combo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 8px;
  border: 1.5px solid rgba(23, 19, 31, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.ecx-combo:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-combo__dots {
  display: inline-flex;
}
.ecx-combo__dots i {
  display: block;
  width: 14px;
  height: 14px;
  margin-left: -4px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}
.ecx-combo__dots i:first-child {
  margin-left: 0;
}
.ecx-combo[aria-checked=true] {
  border-color: #17131f;
}

.ecx-colors-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 18px 0;
  color: #807a8f;
  font-size: 0.82rem;
}
.ecx-colors-note[hidden] {
  display: none;
}

.ecx-page,
.ecx-dock,
.ecx-top {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.ecx-field,
.ecx-drawer input {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.ecx-drawer.ecx-drawer--split {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ecx-drawer.ecx-drawer--split[hidden] {
  display: none;
}

.ecx-pane {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.ecx-pane[hidden] {
  display: none;
}
.ecx-pane .ecx-rail.ecx-rail--themes {
  flex: 0 1 auto;
  min-height: 0;
}

.ecx-theme__adjust {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 10, 25, 0.28);
  color: #17131f;
  font-size: 1.15rem;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ecx-theme.has-colors[aria-checked=true] .ecx-theme__adjust {
  display: grid;
  animation: ecx-adjust-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ecx-theme.has-colors[aria-checked=true] .ecx-theme__aa {
  opacity: 0;
}
.ecx-theme.has-colors[aria-checked=true]:hover .ecx-theme__adjust {
  transform: translate(-50%, -50%) scale(1.08);
}

@keyframes ecx-adjust-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
}
.ecx-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 19, 31, 0.06);
  color: #17131f;
  font-size: 0.95rem;
  cursor: pointer;
}
.ecx-back:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-back:hover {
  background: rgba(23, 19, 31, 0.1);
}

.ecx-adjust .ecx-drawer__head strong {
  margin-right: auto;
}

.ecx-adjust__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 18px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ecx-adjust__body .ecx-drawer__label {
  margin: 16px 0 8px;
}
.ecx-adjust__body .ecx-combos {
  margin-top: 0;
}

.ecx-adjust__preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(23, 19, 31, 0.04);
}

.ecx-adjust__face {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 78px;
  height: 104px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(15, 10, 25, 0.16);
  transition: background 0.3s;
}

.ecx-adjust__aa {
  position: relative;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.ecx-adjust__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.ecx-adjust__info strong {
  font-family: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.ecx-adjust__info .ecx-link {
  padding: 0;
}

.ecx-adjust__dots {
  display: inline-flex;
  gap: 5px;
}
.ecx-adjust__dots i {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.1);
}

.ecx-inks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 4px;
}

.ecx-ink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 8px;
  border: 1.5px solid rgba(23, 19, 31, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.ecx-ink:focus-visible {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
.ecx-ink[aria-checked=true] {
  border-color: #17131f;
  box-shadow: 0 0 0 1px #17131f;
}
.ecx-ink__dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.14);
}
.ecx-ink__dot--auto {
  background: linear-gradient(135deg, #fff 0 50%, #1b1424 50% 100%);
}
.ecx-ink__dot--light {
  background: #fff;
}
.ecx-ink__dot--dark {
  background: #1b1424;
}
.ecx-ink__dot--custom {
  background: conic-gradient(#ff4f8b, #ffb02e, #ffe14d, #3fb57c, #2ec5ff, #8f4dff, #ff4f8b);
}
.ecx-ink input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ecx-ink--custom:focus-within {
  outline: 3px solid rgba(123, 77, 255, 0.55);
  outline-offset: 2px;
}
