@import "https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600;6..96,700&family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Manrope:wght@500;600;700;800&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap";
:root {
  color: #e9eee9;
  font-synthesis: none;
  background: #101411;
  font-family:
    DM Sans,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  height: 100%;
  overflow: hidden;
}
body {
  background:
    radial-gradient(circle at 90% -20%, #304239 0, #0000 35%), #101411;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  flex-direction: column;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
}
.masthead {
  border-bottom: 1px solid #2a312c;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  display: flex;
}
.brand {
  color: inherit;
  letter-spacing: -0.02em;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}
.brand-mark {
  color: #192019;
  background: #b6cf76;
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 13px;
  display: grid;
}
.brand small {
  color: #809087;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  display: block;
}
.status {
  color: #aab6ae;
  border: 1px solid #354039;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
}
.mode-toolbar {
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 28px;
  display: flex;
}
.quick-design {
  gap: 4px;
  display: grid;
}
.quick-design > span {
  color: #758179;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
}
.quick-design select {
  color: #dce5df;
  background: #111512;
  border: 1px solid #354039;
  outline: none;
  min-width: 170px;
  height: 38px;
  padding: 0 10px;
}
.mode-switch {
  color: #dce5df;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 10px;
  display: flex;
}
.mode-switch input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.mode-switch i {
  background: #1a211c;
  border: 1px solid #465149;
  border-radius: 999px;
  width: 42px;
  height: 24px;
  transition: all 0.2s;
  position: relative;
}
.mode-switch i:after {
  content: "";
  background: #809087;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: all 0.2s;
  position: absolute;
  top: 3px;
  left: 3px;
}
.mode-switch input:checked + i {
  background: #b6cf7624;
  border-color: #b6cf76;
}
.mode-switch input:checked + i:after {
  background: #b6cf76;
  left: 21px;
}
.mode-switch strong {
  color: #b6cf76;
  font-size: 10px;
}
.image-fit-switch {
  border-top: 1px solid #2f3832;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}
.image-fit-switch > span,
.image-fit-switch strong {
  flex: 1;
  font-size: 10px;
}
.image-fit-switch strong {
  text-align: right;
}
.intro {
  padding: 62px 0 54px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #b6cf76 !important;
  font-size: 11px !important;
}
.intro h1 {
  letter-spacing: -0.055em;
  max-width: 830px;
  margin: 14px 0 18px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.98;
}
.intro h1 em {
  color: #b6cf76;
  font-family:
    Playfair Display,
    serif;
  font-weight: 600;
}
.intro > p:last-child {
  color: #909d95;
  max-width: 590px;
  font-size: 16px;
  line-height: 1.65;
}
.editor {
  background: #151a17;
  border: 1px solid #2b332e;
  flex: 1;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 0;
  display: grid;
  overflow: hidden;
  box-shadow: 0 30px 90px #00000047;
}
.controls {
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-right: 1px solid #2b332e;
  min-height: 0;
  padding: 36px 36px 0;
  overflow-y: auto;
}
.controls::-webkit-scrollbar {
  display: none;
}
.preview-panel::-webkit-scrollbar {
  display: none;
}
.step {
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
  display: flex;
}
.step:not(:first-child) {
  border-top: 1px solid #29302b;
  margin-top: 36px;
  padding-top: 30px;
}
.step > span {
  color: #b6cf76;
  font-size: 11px;
}
.step strong,
.step small {
  display: block;
}
.step strong {
  font-size: 14px;
}
.step small {
  color: #738078;
  margin-top: 2px;
  font-size: 11px;
}
.upload {
  text-align: center;
  border: 1px dashed #465149;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 132px;
  transition: all 0.2s;
  display: flex;
}
.upload:hover,
.upload.is-dragging {
  background: #b6cf760d;
  border-color: #b6cf76;
}
.upload input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.upload-icon {
  color: #b6cf76;
  background: #222b25;
  border-radius: 50%;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}
.upload strong,
.upload small {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
  display: block;
  overflow: hidden;
}
.upload strong {
  font-size: 13px;
}
.upload small {
  color: #758179;
  margin-top: 2px;
  font-size: 11px;
}
.paste-image {
  color: #dce5df;
  background: 0 0;
  border: 1px solid #38433c;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}
.paste-image:hover {
  color: #b6cf76;
  border-color: #b6cf76;
}
.paste-image i {
  color: #758179;
  font-size: 10px;
  font-style: normal;
}
.decoration-upload {
  min-height: 102px;
}
.decoration-settings {
  border: 1px solid #2f3832;
  border-top: 0;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 14px;
  display: grid;
}
.decoration-settings[hidden] {
  display: none;
}
.decoration-settings [hidden] {
  display: none !important;
}
.secondary-button {
  color: #dce5df;
  background: 0 0;
  border: 1px solid #38433c;
  min-height: 40px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 600;
}
.secondary-button:hover {
  color: #b6cf76;
  border-color: #b6cf76;
}
.decoration-settings .secondary-button {
  grid-column: 1/-1;
  margin-top: 8px;
}
.design-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  display: grid;
}
.danger-button {
  color: #e5a69d;
}
.danger-button:hover {
  color: #f2bbb3;
  border-color: #e5a69d;
}
.field {
  margin-top: 18px;
  display: block;
}
.field > span {
  color: #9aa79f;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  display: flex;
}
.field b {
  color: #657169;
  font-weight: 400;
}
.field input,
.field textarea {
  color: #ecf0ed;
  resize: vertical;
  background: #111512;
  border: 1px solid #343d37;
  border-radius: 0;
  outline: none;
  width: 100%;
  padding: 13px 14px;
  transition: border-color 0.2s;
}
.field select {
  color: #ecf0ed;
  background: #111512;
  border: 1px solid #343d37;
  outline: none;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
}
.field input[type="range"] {
  accent-color: #b6cf76;
  min-height: 36px;
  padding: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: #91a95b;
}
.field ::placeholder {
  color: #566159;
}
.error {
  color: #e5a69d;
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 12px;
}
.design-settings {
  gap: 12px;
  margin-top: 14px;
  display: grid;
}
.design-settings fieldset {
  border: 1px solid #2f3832;
  margin: 0;
  padding: 14px;
}
.design-settings legend {
  color: #b6cf76;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
}
.compact-field {
  margin-top: 10px;
}
.compact-field:first-of-type {
  margin-top: 4px;
}
.toggle-field {
  color: #dce5df;
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  display: flex;
}
.toggle-field input {
  accent-color: #b6cf76;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
}
.toggle-field span,
.toggle-field small {
  display: block;
}
.toggle-field small {
  color: #758179;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
}
.primary,
.download {
  border: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 700;
  display: flex;
}
.primary {
  color: #141914;
  background: #b6cf76;
}
.primary:hover {
  background: #c4dc88;
}
.primary i,
.download i {
  font-size: 20px;
  font-style: normal;
}
.preview-panel {
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #121613;
  min-height: 0;
  padding: 36px 36px 0;
  overflow-y: auto;
}
.preview-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  display: flex;
}
.preview-heading span,
.preview-heading small {
  display: block;
}
.preview-heading span {
  font-size: 13px;
  font-weight: 700;
}
.preview-heading small {
  color: #6f7d74;
  margin-top: 3px;
  font-size: 10px;
}
.status {
  color: #b6cf76 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}
.preview-stage {
  background-color: #0b0e0c;
  background-image:
    linear-gradient(45deg, #151a17 25%, #0000 25%),
    linear-gradient(-45deg, #151a17 25%, #0000 25%),
    linear-gradient(45deg, #0000 75%, #151a17 75%),
    linear-gradient(-45deg, #0000 75%, #151a17 75%);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  place-items: center;
  min-height: 560px;
  display: grid;
  position: relative;
  overflow: hidden;
}
canvas {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 620px;
  display: none;
}
canvas.is-visible {
  display: block;
}
.empty-state {
  color: #69756d;
  flex-direction: column;
  align-items: center;
  display: flex;
}
.empty-state[hidden] {
  display: none;
}
.empty-state strong {
  color: #aab3ad;
  margin-top: 12px;
  font-size: 13px;
}
.empty-state small {
  margin-top: 4px;
  font-size: 10px;
}
.frame-icon {
  color: #3b463f;
  font-size: 33px;
}
.result-actions {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  display: grid;
}
.download {
  color: #dce5df;
  background: 0 0;
  border: 1px solid #38433c;
}
.download:hover:not(:disabled) {
  color: #b6cf76;
  border-color: #b6cf76;
}
.download:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
footer {
  color: #68736c;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 10px;
  display: flex;
}
footer span {
  color: #92a09a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
footer p {
  margin: 0;
}
.work-mode .advanced-only {
  display: none;
}
.work-mode .controls > .step:nth-of-type(2) {
  margin-top: 30px;
}
@media (width<=1000px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
}
@media (width<=850px) {
  html,
  body,
  #app {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .shell {
    height: auto;
    min-height: 100vh;
  }
  .editor {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .controls {
    border-bottom: 1px solid #2b332e;
    border-right: 0;
    overflow: visible;
  }
  .preview-panel {
    overflow: visible;
  }
  .preview-stage {
    min-height: 420px;
  }
}
@media (width<=650px) {
  .mode-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 7px;
  }
  .mode-switch {
    justify-content: flex-start;
  }
  .mode-switch-label {
    display: none;
  }
  .quick-design select {
    min-width: 150px;
    max-width: 100%;
  }
}
@media (width<=520px) {
  .shell {
    width: 100%;
  }
  .controls,
  .preview-panel {
    padding: 22px 22px 0;
  }
  .preview-stage {
    min-height: 330px;
  }
  .result-actions,
  .decoration-settings {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
