@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2-variations');
}
:root {
  --ink: #1d1930;
  --deep: #251e45;
  --muted: #5e5872;
  --line: #e2deea;
  --bg: #f6f4f9;
  --white: #fff;
  --go: #63b849;
  --accent: #6d4df2;
  --danger: #b4235a;
  --bar: 56px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.4 Inter,
    system-ui,
    sans-serif;
  overscroll-behavior: none;
}
#app {
  height: 100dvh;
}
.ce-boot,
.ce-fail {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a {
  color: var(--accent);
}
h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 8px;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
}
.ce {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ce-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar);
  padding: 0 12px;
  background: var(--deep);
  color: #fff;
  flex: none;
}
.ce-brand {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ce-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.ce-ico {
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.ce-ico:hover:not(:disabled),
.ce-ico[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.14);
}
.ce-lang {
  font-size: 12px;
  padding: 0 8px;
}
.ce-seg {
  display: inline-flex;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  background: #ece8f3;
}
.ce-seg button {
  border: 0;
  border-radius: 7px;
  padding: 6px 12px;
  background: transparent;
  text-transform: capitalize;
}
.ce-seg button[aria-pressed='true'] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.ce-sides {
  background: rgba(255, 255, 255, 0.14);
}
.ce-sides button {
  color: #fff;
}
.ce-sides button[aria-pressed='true'] {
  background: #fff;
  color: var(--deep);
}
.ce-main {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}
.ce-nav {
  flex: none;
  width: 86px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  background: var(--white);
  border-right: 1px solid var(--line);
}
.ce-nav button {
  border: 0;
  border-radius: 8px;
  padding: 12px 2px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}
.ce-nav button[aria-pressed='true'] {
  background: #eee9fb;
  color: var(--accent);
  font-weight: 700;
}
.ce-side {
  flex: none;
  width: 320px;
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow: auto;
  display: none;
}
.ce-side.is-open {
  display: block;
}
.ce-sheet-close {
  display: none;
}
.ce-panel {
  padding: 14px;
}
.ce-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.ce-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #e7e4ec;
  overflow: hidden;
  touch-action: none;
}
.ce-status {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  color: var(--muted);
  pointer-events: none;
}
.ce-field {
  display: block;
  margin: 0 0 12px;
}
.ce-field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ce-field em {
  font-style: normal;
  font-weight: 500;
}
.ce-field input[type='text'],
.ce-field input[type='tel'],
.ce-field input[type='email'],
.ce-field input[type='url'],
.ce-field textarea,
.ce-field select,
.ce-search {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
}
@media (min-width: 820px) {
  .ce-field input[type='text'],
  .ce-field input[type='tel'],
  .ce-field input[type='email'],
  .ce-field input[type='url'],
  .ce-field textarea,
  .ce-field select,
  .ce-search {
    font-size: 14px;
  }
}
.ce-field input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.ce-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ce-row--wrap {
  flex-wrap: wrap;
}
.ce-row--tight {
  gap: 3px;
}
.ce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--deep);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.ce-btn--plain {
  background: #f0ecf7;
  color: var(--ink);
  font-weight: 500;
}
.ce-btn--go {
  background: var(--go);
  color: #14210f;
  font-weight: 700;
}
.ce-btn--danger {
  background: #fbe9f0;
  color: var(--danger);
}
.ce-mini {
  min-width: 32px;
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}
.ce-mini[aria-pressed='true'] {
  background: #eee9fb;
  border-color: var(--accent);
}
.ce-notice {
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff4dc;
  color: #6b4a00;
  font-size: 13px;
}
.ce-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 10px;
  font-size: 13px;
}
.ce-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ce-checks .ce-check {
  margin: 3px 0;
  text-transform: capitalize;
}
.ce-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin: 8px -14px;
  padding: 0 14px 6px;
  scrollbar-width: none;
}
.ce-chips button {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 12.5px;
}
.ce-chips button[aria-pressed='true'] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.ce-tpls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  align-items: start;
}
.ce-tpl {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 11.5px;
  color: var(--muted);
}
.ce-tpl img {
  display: block;
  width: 100%;
  aspect-ratio: 88.9/50.8;
  object-fit: contain;
  background: #efecf4;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ce-tpl--v img {
  aspect-ratio: 50.8/88.9;
}
.ce-tpl span {
  display: block;
  margin-top: 4px;
}
.ce-tpl[aria-pressed='true'] img {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
}
.ce-palettes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ce-palette {
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  font-size: 12px;
}
.ce-swatches {
  display: flex;
  height: 22px;
  margin-bottom: 5px;
  overflow: hidden;
  border-radius: 5px;
}
.ce-swatches i {
  flex: 1;
}
.ce-colours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ce-colour {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  text-transform: capitalize;
}
input[type='color'] {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
}
.ce-paint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ce-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}
.ce-dot[aria-pressed='true'] {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
}
.ce-addgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ce-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 72px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11.5px;
  cursor: pointer;
  text-align: center;
}
.ce-add b {
  font-size: 18px;
}
.ce-shape {
  display: block;
  width: 26px;
  height: 18px;
  background: var(--deep);
}
.ce-shape--round {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.ce-shape--line {
  width: 26px;
  height: 2px;
  margin: 8px 0;
}
.ce-stack {
  display: grid;
  gap: 6px;
}
.ce-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.ce-icons button {
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f6f4f9;
}
.ce-icons svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ce-layers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ce-layers li {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.ce-layers li[aria-current='true'] {
  background: #eee9fb;
  border-radius: 7px;
}
.ce-layer {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ce-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 16, 40, 0.55);
}
.ce-dialog {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
}
.ce-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ce-dialog header h2 {
  margin: 0;
  font-size: 18px;
}
.ce-dialog section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ce-check-box {
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px;
  background: #fff4dc;
  color: #5e4300;
  font-size: 13px;
}
.ce-check-box p {
  margin: 4px 0 8px;
}
.ce-check-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.ce-nudge {
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
  grid-auto-rows: 38px;
  gap: 3px;
}
.ce-nudge button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.ce-after {
  font-size: 12.5px;
  color: var(--muted);
}
.ce-after p {
  margin: 4px 0;
}
@media (max-width: 819px) {
  .ce-hide-sm {
    display: none;
  }
  .ce-top {
    gap: 6px;
    padding: 0 8px;
  }
  .ce-brand b {
    display: none;
  }
  .ce-sides button {
    padding: 6px 9px;
  }
  .ce-ico {
    min-width: 32px;
  }
  .ce-lang {
    display: none;
  }
  .ce-download {
    padding: 6px 10px;
    min-height: 36px;
  }
  .ce-main {
    flex-direction: column;
  }
  .ce-stage {
    order: 1;
    min-height: 0;
  }
  .ce-side {
    order: 2;
  }
  .ce-nav {
    order: 3;
  }
  .ce-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 4px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    scrollbar-width: none;
  }
  .ce-nav button {
    flex: 1 0 auto;
    padding: 10px 8px;
    min-height: 44px;
  }
  .ce-side {
    width: auto;
    height: 46%;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    margin-top: -10px;
    box-shadow: 0 -6px 18px rgba(20, 16, 40, 0.14);
    z-index: 5;
  }
  .ce-sheet-close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 26px;
    border: 0;
    background: #fff;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
  }
  .ce-panel {
    padding-top: 2px;
  }
  .ce-tpls {
    grid-template-columns: repeat(3, 1fr);
  }
  .ce-mini {
    min-height: 36px;
    min-width: 36px;
  }
  .ce-dot {
    width: 34px;
    height: 34px;
  }
}

/* QR studio */
.ce-qrhead {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.ce-qrgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.ce-qrgrid button {
  aspect-ratio: 1;
  min-height: 44px;
  padding: 6px;
  border: 1.5px solid #d9d4e6;
  border-radius: 8px;
  background: #fff;
  color: #1d1930;
}
.ce-qrgrid button[aria-pressed='true'] {
  border-color: #251e45;
  box-shadow: inset 0 0 0 1.5px #251e45;
}
.ce-qrgrid svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ce-qrscan {
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  background: #f1eff6;
}
.ce-qrscan--ok {
  background: #e4f4df;
  color: #1f5b14;
}
.ce-qrscan--bad {
  background: #fde8e4;
  color: #8c2412;
}
.ce-qrhint {
  margin: 4px 0;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.8;
}

/* Quick toolbar beside the selection */
.ce-float {
  position: absolute;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% - 8px);
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 6px 22px rgba(29, 25, 48, 0.2),
    0 0 0 1px rgba(29, 25, 48, 0.06);
  white-space: nowrap;
}
.ce-float button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d1930;
  font: 600 12.5px/1 var(--sans, system-ui);
  cursor: pointer;
}
.ce-float button:hover {
  background: #f1eff6;
}
.ce-float button[aria-pressed='true'] {
  background: #e7e2f6;
}
.ce-float__group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 3px;
  border-left: 1px solid #ece8f3;
}
.ce-float__group:first-child {
  border-left: 0;
}
.ce-float__group b {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
}
.ce-float__text {
  padding: 0 10px !important;
  background: #251e45 !important;
  color: #fff !important;
}
.ce-float__more {
  border-left: 1px solid #ece8f3 !important;
  border-radius: 0 8px 8px 0 !important;
}
/* Typing on the card */
.ce-inline {
  position: absolute;
  z-index: 7;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 10px 30px rgba(29, 25, 48, 0.26),
    0 0 0 2px #7c5cff;
}
.ce-inline textarea {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  padding: 4px 6px;
  font: 500 15px/1.35 var(--sans, system-ui);
  background: transparent;
}
.ce-inline__tip {
  display: block;
  padding: 0 6px;
  font-size: 11px;
  color: #6c6780;
}
/* Tapping locked art */
.ce-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 7px 8px 7px 13px;
  border-radius: 12px;
  background: #251e45;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.3;
}
.ce-hint button {
  flex: none;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 600 12.5px/1 var(--sans, system-ui);
  cursor: pointer;
}
/* The way in to QR codes */
.ce-qrcta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1.5px solid #cfc6ea;
  border-radius: 12px;
  background: #f6f3fe;
  color: #1d1930;
  text-align: left;
  cursor: pointer;
}
.ce-qrcta:hover {
  border-color: #7c5cff;
}
.ce-qrcta svg {
  flex: none;
}
.ce-qrcta b {
  display: block;
  font-size: 14px;
}
.ce-qrcta em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: #5d5873;
}
@media (max-width: 899px) {
  .ce-float__more,
  .ce-float__group b {
    display: none;
  }
  .ce-float button {
    min-width: 36px;
    height: 36px;
  }
}

.ce-canvas {
  position: absolute;
  inset: 0;
}

.ce-hidden {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4dc;
  color: #5b4200;
  font-size: 12.5px;
  line-height: 1.4;
}

.ce-grad {
  width: 62px;
  height: 40px;
  border: 1.5px solid rgba(29, 25, 48, 0.2);
  border-radius: 9px;
  cursor: pointer;
}
.ce-grad:hover {
  border-color: #7c5cff;
}

/* Everything comfortable under a finger */
@media (max-width: 899px) {
  .ce-seg button,
  .ce-chips button {
    min-height: 38px;
  }
  .ce-sheet-close {
    min-height: 36px;
  }
}

.ce-qropens {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ce-qrsample {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4dc;
  color: #5b4200;
  font-size: 13px;
  line-height: 1.4;
}
