@charset "UTF-8";
:root {
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  color: #e9e7f5;
  background: #0c0e17;
  font-synthesis: none;
  --muted: #9091a6;
  --line: #242636;
  --accent: #c2aff1;
  --panel: #131521;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select,
input[type='range'],
input[type='color'] {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d0baff;
  outline-offset: 4px;
}
button {
  color: inherit;
}
button,
select,
input,
textarea {
  border-radius: 10px;
}
input,
textarea,
select {
  color: #e2dfee;
  background: #11131e;
  border: 1px solid #303142;
  padding: 11px 12px;
  min-width: 0;
}
select {
  padding-right: 26px;
}
textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #72758b;
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 76px;
  flex: none;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 26px 0;
  background: #0e101a;
  z-index: 3;
}
.brand img {
  border-radius: 14px;
}
.rail-line {
  width: 28px;
  height: 1px;
  background: var(--line);
  margin: 15px 0;
}
.rail-button {
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  font-size: 26px;
  color: #777d99;
}
.rail-button.active {
  background: #252137;
  color: #ceb7ff;
  box-shadow: inset 0 0 0 1px #3d3357;
}
.rail-bottom {
  margin-top: auto;
  color: #60657e;
  font-size: 11px;
  letter-spacing: 2px;
}
.workspace {
  padding-left: 76px;
  width: 100%;
  background: radial-gradient(ellipse at 36% 22%, #1b19302f, transparent 55%);
}
.topbar {
  min-height: 81px;
  border-bottom: 1px solid var(--line);
  padding: 18px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.studio-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.tiny-star {
  color: var(--accent);
  font-size: 22px;
}
.tag {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  border: 1px solid #373246;
  background: #211d2f;
  color: #b8a7d6;
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: 3px;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #b5b2c8;
}
.account-menu select {
  max-width: 220px;
  font-size: 12px;
  border-color: #262938;
  background: #121520;
  padding: 8px 28px 8px 12px;
}
.account-dot {
  width: 6px;
  height: 6px;
  background: #a7d7b6;
  border-radius: 50%;
  margin-left: 8px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 42px 42px 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a49ebc;
  font-weight: 650;
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(31px, 3vw, 45px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
  font-weight: 620;
}
h1 span {
  color: #c4b0f2;
}
p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}
.page-heading p {
  margin: 10px 0 0;
}
.draft-pill {
  font-size: 11px;
  color: #b5a4d7;
  background: #211c30;
  border: 1px solid #3a304c;
  border-radius: 20px;
  padding: 8px 12px;
  white-space: nowrap;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 28px;
  align-items: start;
}
.preview-column {
  min-width: 0;
}
.preview-section {
  padding-top: 4px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin: 0;
}
.section-heading > span {
  font-size: 10px;
  color: #83819a;
}
.card-stage {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 13px;
  margin-top: 10px;
  isolation: isolate;
  background: radial-gradient(ellipse, #29233f80, transparent 68%);
  border-radius: 20px;
  overflow: hidden;
}
.card-stage:before {
  content: '';
  position: absolute;
  inset: 12px 0;
  border: 1px dashed #282737;
  border-radius: 16px;
  z-index: -1;
}
#card-canvas,
#exact-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  display: block;
  max-width: 1120px;
  filter: drop-shadow(0 18px 28px #0005);
  border-radius: 18px;
}
.stage-star {
  position: absolute;
  color: #a390cd66;
  z-index: -1;
}
.card-stage.is-draggable canvas {
  cursor: grab;
  touch-action: none;
}
.card-stage.is-draggable canvas:active {
  cursor: grabbing;
}
.star-one {
  top: 8px;
  right: 35px;
  font-size: 42px;
}
.star-two {
  left: 12px;
  bottom: 8px;
  font-size: 20px;
}
.preview-caption {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #7b7c91;
  line-height: 1.6;
  text-align: center;
  padding: 0 16px;
}
.caption-dot {
  background: #8f83ac;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}
.preview-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 22px 0 32px;
}
.secondary,
.primary,
.quiet {
  padding: 10px 15px;
  border: 1px solid #363344;
  font-size: 12px;
  font-weight: 550;
  background: #1b1b2a;
  white-space: nowrap;
}
.secondary:hover:not(:disabled) {
  background: #282339;
  border-color: #5e4c7a;
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: #9794ac;
  font-weight: 400;
}
.quiet:hover:not(:disabled) {
  color: #ded7ef;
  background: #211e2c;
}
.primary {
  background: #c1a9ee;
  color: #21182e;
  border-color: #d1bafa;
  box-shadow: 0 3px 14px #ad7de817;
}
.primary:hover:not(:disabled) {
  background: #d2bdf7;
}
.primary span {
  margin-left: 14px;
}
.progress-panel {
  background: linear-gradient(120deg, #1e1a2c, #171824);
  border: 1px solid #302b40;
  border-radius: 14px;
  padding: 21px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.unlock-icon {
  background: #30253e;
  color: #c7adef;
  border: 1px solid #4e3c62;
  border-radius: 11px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.unlock-details {
  flex: 1;
  min-width: 0;
}
.unlock-details h2 {
  font-size: 12px;
}
.unlock-details p {
  font-size: 11px;
  margin: 6px 0 12px;
}
.unlock-track {
  height: 4px;
  background: #302b3f;
  border-radius: 4px;
  overflow: hidden;
}
.unlock-track div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #a4a4e9, #dac4ef);
  border-radius: 4px;
}
.level-chip {
  font-size: 10px;
  color: #bca5df;
  border: 1px solid #463952;
  padding: 8px;
  border-radius: 7px;
  flex: none;
}
.saved-panel {
  margin-top: 28px;
  border: 1px solid #282836;
  border-radius: 14px;
  padding: 22px;
  background: #12141e;
}
.saved-panel .section-heading p {
  font-size: 11px;
  margin: 5px 0;
}
.small-badge {
  font-size: 10px !important;
  background: #242032;
  padding: 5px 9px;
  border-radius: 5px;
}
.preset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 17px 0;
}
.preset-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2c2b3b;
  background: #191824;
  padding: 7px 10px;
  border-radius: 9px;
  gap: 8px;
}
.preset-entry > span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.preset-entry button {
  padding: 6px 9px;
  font-size: 10px;
}
.preset-empty {
  font-size: 11px;
  color: #6f7289;
  line-height: 1.6;
}
.save-preset-row {
  display: flex;
  gap: 9px;
}
.save-preset-row input {
  flex: 1;
  font-size: 11px;
}
.save-preset-row button {
  font-size: 11px;
}
.inspector {
  border: 1px solid #2b2b3c;
  border-radius: 15px;
  background: #141520;
  overflow: hidden;
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #292a3b;
  background: #171722;
}
.inspector-heading h2 {
  font-size: 13px;
}
.inspector-heading > span {
  color: #af9bcf;
}
.inspector-body {
  padding: 2px 21px 12px;
}
fieldset {
  border: 0;
  border-bottom: 1px solid #292a39;
  padding: 20px 0;
  margin: 0;
  min-width: 0;
}
fieldset:last-child {
  border-bottom: 0;
}
legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
legend + * {
  clear: both;
}
.field-hint {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #75738e;
}
.counter {
  font-size: 10px;
  color: #75748b;
  font-weight: 400;
}
.upload-area {
  position: relative;
  flex-direction: column;
  border: 1px dashed #464056 !important;
  border-radius: 11px;
  padding: 19px 10px !important;
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  background: #1c1928;
  text-align: center;
  cursor: pointer;
}
.upload-area input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: hidden;
}
.upload-area:focus-within {
  outline: 2px solid #c2aff1;
}
.upload-area strong {
  font-size: 11px;
  font-weight: 500;
  color: #c9bedc;
}
.upload-area > span:last-child {
  font-size: 9px;
  color: #78738e;
}
.upload-icon {
  font-size: 22px;
  color: #bea4e8;
  margin-bottom: 3px;
}
.inspector label:not(.upload-area) {
  font-size: 10px;
  color: #9592a9;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
.inspector label input:not([type='range']):not([type='checkbox']):not([type='color']),
.inspector textarea,
.inspector select {
  width: 100%;
  font-size: 11px;
}
.inspector textarea {
  width: 100%;
  font-size: 12px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.remove-background {
  padding: 9px 4px;
  font-size: 10px;
  margin-bottom: 2px;
}
.field-note {
  font-size: 9px;
  line-height: 1.6;
  margin: 8px 0 0;
  color: #79768e;
}
.range-label {
  position: relative;
}
.range-label output {
  position: absolute;
  right: 0;
  color: #b8a2df;
}
input[type='range'] {
  accent-color: #b8a0df;
  width: 100%;
  height: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.swatches {
  display: flex;
  gap: 11px;
  padding: 2px 0 5px;
}
.swatch {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  border: 3px solid #141520;
  outline: 1px solid transparent;
}
.swatch.selected {
  outline: 1px solid #c6aff3;
}
.lavender {
  background: linear-gradient(135deg, #615b91, #ac8db3);
}
.sakura {
  background: linear-gradient(135deg, #874e76, #e9a6be);
}
.ocean {
  background: linear-gradient(135deg, #285774, #77bfc5);
}
.forest {
  background: linear-gradient(135deg, #366558, #91b58c);
}
.midnight {
  background: linear-gradient(135deg, #333b75, #8b8bc7);
}
.sunset {
  background: linear-gradient(135deg, #a16b58, #e9bf89);
}
.inspector .color-label {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #2d2c3c;
  border-radius: 8px;
  padding: 6px 10px;
}
.color-label input {
  padding: 1px;
  width: 26px;
  height: 25px;
  border: 0;
  background: transparent;
}
.lock-note {
  display: none;
  font-size: 9px;
  color: #a697b7;
  margin: 8px 0 0;
  line-height: 1.5;
}
.locked .lock-note {
  display: block;
}
.locked .upload-area {
  opacity: 0.4;
}
.locked legend:after {
  content: '◇';
  margin-left: 8px;
  color: #9d87c0;
}
.stat-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.inspector .stat-toggles label {
  flex-direction: row;
  align-items: center;
  font-size: 10px;
  gap: 4px;
  margin-top: 8px;
}
.stat-toggles input {
  accent-color: #bfa6ed;
  margin: 0;
}
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #353044;
  background: #1b1826f5;
  backdrop-filter: blur(16px);
  padding: 17px 21px;
  border-radius: 13px;
  position: sticky;
  bottom: 18px;
  z-index: 2;
  margin-top: 30px;
  box-shadow: 0 8px 40px #0004;
}
.action-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #9d94ad;
  line-height: 1.6;
}
.action-star {
  color: #b39acb;
  font-size: 23px;
}
.action-buttons {
  display: flex;
  gap: 10px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 42px 24px;
  gap: 20px;
  font-size: 9px;
  color: #61657d;
}
.access-panel {
  max-width: 680px;
  padding: 48px 10px 70px;
  margin: auto;
}
.access-panel h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.13;
}
.access-panel > p {
  max-width: 490px;
  margin: 24px 0 36px;
  font-size: 15px;
}
.access-instructions {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 0;
}
.step-number {
  display: grid;
  place-items: center;
  background: #292239;
  border: 1px solid #48365c;
  color: #cfb4ef;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
  flex: none;
}
.access-instructions strong {
  font-size: 13px;
}
.access-instructions p {
  font-size: 12px;
  margin: 6px 0;
}
.privacy-note {
  font-size: 11px;
  color: #b8a8cf;
  margin-top: 40px;
  border-top: 1px solid #2d2838;
  padding-top: 22px;
}
code {
  color: #cdb6ee;
  background: #252033;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}
#status {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(560px, 90vw);
  background: #292237;
  border: 1px solid #6c5189;
  border-radius: 12px;
  padding: 15px 20px;
  color: #e4d6f7;
  font-size: 12px;
  z-index: 10;
  box-shadow: 0 8px 40px #0008;
  line-height: 1.6;
}
#status.error {
  border-color: #a75b72;
  background: #34202b;
  color: #f4c8d7;
}
.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;
}
body.busy {
  cursor: progress;
}
body.busy .action-buttons button,
body.busy .preview-toolbar button {
  opacity: 0.6;
}
@media (min-width: 1550px) {
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 40px;
  }
  .card-stage {
    padding: 60px 20px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 17px 25px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .inspector-body {
    padding-inline: 16px;
  }
  .card-stage {
    min-height: 200px;
    padding: 35px 0;
  }
  .action-bar > div:first-child {
    max-width: 250px;
  }
  .save-preset-row {
    flex-wrap: wrap;
  }
  .save-preset-row input {
    min-width: 140px;
  }
  .site-footer {
    padding-inline: 25px;
  }
}
@media (max-width: 850px) {
  .rail {
    width: 58px;
  }
  .workspace {
    padding-left: 58px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .rail-button {
    width: 36px;
    height: 36px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-column {
    display: contents;
  }
  .preview-section {
    order: 0;
  }
  .progress-panel {
    order: 1;
  }
  .inspector {
    order: 2;
  }
  .saved-panel {
    order: 3;
    margin-top: 0;
  }
  .inspector-body {
    padding-inline: 22px;
  }
  .account-menu #account-name,
  .account-dot,
  .tag {
    display: none;
  }
  .topbar {
    min-height: 70px;
    padding-inline: 22px;
  }
  .account-menu select {
    max-width: 180px;
  }
  .action-bar {
    flex-wrap: wrap;
    position: sticky;
    bottom: 8px;
    margin-top: 24px;
    justify-content: center;
  }
  .action-bar > div:first-child {
    max-width: none;
    text-align: center;
  }
  .action-buttons {
    width: 100%;
    justify-content: center;
  }
  .action-buttons button {
    flex: 1;
  }
  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .draft-pill {
    font-size: 9px;
    padding: 7px 9px;
  }
  .card-stage {
    padding: 30px 4px;
  }
  .save-preset-row {
    flex-wrap: nowrap;
  }
}
@media (max-width: 480px) {
  .rail {
    display: none;
  }
  .workspace {
    padding-left: 0;
  }
  .topbar {
    padding: 14px 17px;
  }
  .studio-name {
    font-size: 13px;
    gap: 7px;
  }
  .account-menu select {
    max-width: 155px;
    font-size: 10px;
  }
  main {
    padding: 28px 17px 16px;
  }
  .page-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .preview-toolbar {
    gap: 5px;
  }
  .preview-toolbar button {
    font-size: 10px;
  }
  .progress-panel {
    padding: 15px;
    gap: 11px;
  }
  .unlock-icon {
    width: 34px;
    height: 34px;
  }
  .saved-panel {
    padding: 17px;
  }
  .save-preset-row {
    flex-wrap: wrap;
  }
  .action-bar {
    padding: 13px;
  }
  .action-buttons button {
    font-size: 10px;
    padding: 11px;
  }
  .primary span {
    margin-left: 5px;
  }
  .site-footer {
    padding-inline: 17px;
  }
  .access-panel {
    padding: 25px 3px;
  }
  .access-panel > p {
    font-size: 13px;
  }
  .account-menu .quiet {
    font-size: 10px;
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
