@charset "UTF-8";
:root {
  --ink:#26202f;
  --muted:#6e6577;
  --purple:#7435a6;
  --purple-dark:#552179;
  --orange:#fba21c;
  --line:#e5dfea;
  --surface:#f7f5fa;
  --tint:#eee7f6;
  --danger:#b52b39;
  --focus:#bd70ef;
  --brand-strip:linear-gradient(90deg,#ed3937 0% 16%,#ff9500 16% 32%,#f8c629 32% 48%,#53a548 48% 64%,#20a9ad 64% 80%,#793cb3 80%);
  --radius:22px;
  font-family:"Trebuchet MS",Arial,sans-serif;
  color:var(--ink);
  font-size:16px;
  line-height:1.55;
  background:#fff;
  accent-color:var(--purple)
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.5;
  cursor:not-allowed
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
img {
  max-width:100%;
  height:auto
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  line-height:1.15;
  overflow-wrap:anywhere
}
h1 {
  font-size:clamp(2.3rem,4.6vw,4.5rem);
  letter-spacing:-.045em
}
h2 {
  font-size:clamp(1.6rem,2.8vw,2.3rem);
  letter-spacing:-.035em
}
h3 {
  font-size:1.2rem
}
p {
  overflow-wrap:anywhere
}
em {
  font-family:Georgia,serif;
  font-weight:normal;
  color:var(--purple)
}
[hidden] {
  display:none!important
}
.shell {
  max-width:1220px;
  margin:0 auto;
  padding-left:40px;
  padding-right:40px
}
.rainbow {
  height:5px;
  background:var(--brand-strip)
}
.site-header {
  max-width:1300px;
  margin:auto;
  min-height:100px;
  padding:22px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  border-bottom:1px solid #f0ebf4
}
.wordmark {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.1rem;
  letter-spacing:-.03em
}
.wordmark strong {
  display:block;
  font-size:1.25rem;
  line-height:1.1
}
.brand-star {
  color:var(--purple);
  font-size:2.6rem
}
.site-header nav {
  display:flex;
  align-items:center;
  gap:28px;
  font-size:.9rem;
  flex-wrap:wrap
}
.site-header nav a:hover {
  color:var(--purple)
}
.site-header nav [aria-current] {
  color:var(--purple);
  font-weight:bold
}
.eyebrow {
  font-size:.8rem;
  letter-spacing:.15em;
  font-weight:800;
  color:var(--purple);
  line-height:1.5;
  margin-bottom:18px
}
.hero {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  align-items:center;
  gap:40px;
  min-height:620px;
  padding-top:56px;
  padding-bottom:64px
}
.hero h1 {
  position:relative;
  line-height:1.08
}
.spark {
  font-size:2.5rem;
  color:var(--orange);
  display:inline-block;
  margin-left:8px;
  vertical-align:top
}
.hero-description {
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.8;
  margin:28px 0 30px
}
.button {
  min-height:46px;
  border-radius:11px;
  padding:12px 20px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  border:1px solid transparent;
  line-height:1.3;
  font-weight:bold;
  font-size:.95rem;
  transition:background .15s,transform .15s
}
.primary {
  background:var(--purple);
  color:white;
  box-shadow:0 5px 15px #7435a616
}
.primary:hover:not(:disabled) {
  background:var(--purple-dark);
  transform:translateY(-1px)
}
.subtle {
  background:#fff;
  border-color:var(--line);
  color:var(--ink)
}
.subtle:hover {
  background:var(--surface)
}
.danger {
  background:var(--danger);
  color:white
}
.full {
  width:100%;
  margin-top:14px
}
.brand-colors {
  display:flex;
  align-items:center;
  margin-top:37px;
  gap:5px
}
.brand-colors i {
  display:block;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#ed3937
}
.brand-colors i:nth-child(2) {
  background:#ffae1f
}
.brand-colors i:nth-child(3) {
  background:#55a049
}
.brand-colors i:nth-child(4) {
  background:#2599cb
}
.brand-colors i:nth-child(5) {
  background:#9a3baf
}
.brand-colors span {
  font-size:.8rem;
  color:var(--muted);
  margin-left:8px
}
.logo-stage {
  border-radius:48% 48% 26px 26px;
  background:#f4f0f8;
  border:1px solid #ebe3f1;
  min-height:480px;
  padding:32px 12px 25px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center
}
.logo-stage img {
  width:100%;
  object-fit:contain
}
.stage-label {
  color:#92879b;
  font-size:.7rem;
  letter-spacing:.2em;
  margin:10px 0 0
}
.stage-note {
  font-family:Georgia,serif;
  font-style:italic;
  font-size:1.1rem;
  color:var(--purple);
  margin-top:15px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:28px
}
.section-heading .eyebrow {
  margin-bottom:10px
}
.small {
  font-size:.875rem;
  line-height:1.6;
  color:var(--muted)
}
.creations {
  padding-top:45px;
  padding-bottom:72px;
  border-top:1px solid var(--line)
}
.module-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.module-card {
  display:block;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:box-shadow .2s,transform .2s
}
.module-card:hover {
  transform:translateY(-4px);
  box-shadow:0 14px 32px #30223e10
}
.module-art {
  height:170px;
  background:#f2ebf9;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative
}
.module-art>span:first-child {
  font-size:4rem
}
.module-art img {
  width:100%;
  height:100%;
  object-fit:cover
}
.pill {
  display:inline-block;
  font-size:.8rem;
  padding:5px 11px;
  border-radius:30px;
  background:white;
  border:1px solid var(--line);
  white-space:normal;
  color:var(--purple)
}
.module-art .pill {
  position:absolute;
  top:18px;
  left:18px
}
.module-copy {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:25px
}
.module-copy p {
  color:var(--muted);
  font-size:.9rem;
  margin-top:9px
}
.circle-arrow {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:1.4rem
}
.site-footer {
  border-top:1px solid var(--line);
  margin:0 auto;
  max-width:1220px;
  padding:26px 40px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:.85rem;
  color:var(--muted)
}
.site-footer span:first-child {
  font-weight:bold;
  color:var(--ink)
}
.back {
  display:inline-block;
  font-size:.9rem;
  color:var(--muted);
  margin-bottom:30px
}
.back:hover {
  color:var(--purple)
}
.module-page {
  padding-top:30px;
  padding-bottom:70px
}
.module-heading {
  max-width:850px;
  margin-bottom:35px
}
.module-heading h1 {
  font-size:clamp(2rem,3.6vw,3.4rem)
}
.module-heading>p:last-child {
  color:var(--muted);
  margin-top:15px
}
.notice {
  border:1px solid #edd495;
  background:#fffbec;
  color:#79500b;
  padding:14px 18px;
  border-radius:12px;
  font-size:.9rem;
  margin-bottom:26px
}
.steps {
  list-style:none;
  padding:0;
  margin:20px 0 30px;
  display:flex;
  gap:30px;
  font-size:.95rem;
  color:var(--muted)
}
.steps li {
  display:flex;
  align-items:center;
  gap:10px
}
.steps li>span {
  border:1px solid var(--line);
  border-radius:50%;
  width:30px;
  height:30px;
  display:grid;
  place-items:center
}
.steps .current {
  color:var(--purple);
  font-weight:bold
}
.steps .current>span {
  background:var(--purple);
  color:#fff;
  border-color:var(--purple)
}
.config-grid {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:35px;
  align-items:start
}
.config-panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px
}
.config-panel h2 {
  font-size:1.65rem;
  margin-bottom:10px
}
.config-panel>.muted {
  margin-bottom:28px
}
.muted {
  color:var(--muted);
  font-size:.9rem
}
label,legend {
  display:block;
  font-size:.95rem;
  font-weight:bold
}
input:not([type=checkbox]):not([type=radio]),select,textarea {
  display:block;
  width:100%;
  border:1px solid #cec5d6;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  padding:12px 13px;
  min-height:48px;
  margin:8px 0 18px
}
input[readonly] {
  background:var(--surface);
  color:var(--muted)
}
input[type=color] {
  padding:5px!important;
  cursor:pointer
}
input[type=checkbox],input[type=radio] {
  width:19px;
  height:19px;
  flex-shrink:0
}
textarea {
  resize:vertical;
  min-height:85px
}
input::placeholder {
  color:#817688
}
fieldset {
  border:0;
  margin:0;
  padding:0;
  min-width:0
}
legend {
  margin-bottom:14px
}
.model-description {
  font-size:.875rem;
  color:var(--muted);
  margin:-5px 0 26px
}
.form-field {
  margin-bottom:24px
}
.required {
  color:var(--purple)
}
.swatches {
  display:flex;
  flex-wrap:wrap;
  gap:14px 12px
}
.swatch-option {
  width:70px;
  text-align:center;
  cursor:pointer;
  font-size:.75rem;
  font-weight:normal;
  position:relative
}
.swatch-option input {
  position:absolute;
  opacity:0;
  top:0;
  left:0
}
.swatch {
  display:block;
  width:39px;
  height:39px;
  border-radius:50%;
  background:var(--swatch);
  margin:5px auto 7px;
  border:1px solid #b8b2be;
  box-shadow:0 0 0 4px white,0 0 0 5px transparent
}
.swatch-option input:checked+.swatch {
  box-shadow:0 0 0 4px white,0 0 0 6px var(--purple)
}
.swatch-option input:focus-visible+.swatch {
  outline:3px solid var(--purple);
  outline-offset:5px
}
.summary-panel {
  background:var(--surface);
  border-radius:var(--radius);
  padding:30px;
  position:sticky;
  top:25px;
  border:1px solid var(--line)
}
.summary-heading .eyebrow {
  display:block;
  margin-bottom:8px;
  font-size:.75rem
}
.summary-heading h2 {
  font-size:1.6rem
}
.summary-motif {
  text-align:center;
  font-size:3rem;
  margin:24px 0 5px
}
.pet-name {
  text-align:center;
  font-family:Georgia,serif;
  font-size:1.8rem;
  color:var(--purple);
  font-weight:bold;
  overflow-wrap:anywhere
}
.pet-name+.small {
  text-align:center;
  margin:10px 0 22px
}
.summary-list {
  margin:0
}
.summary-list>div,.review-list>div {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:.9rem;
  overflow-wrap:anywhere
}
.summary-list dt,.review-list dt {
  color:var(--muted);
  flex:1
}
.summary-list dd,.review-list dd {
  margin:0;
  text-align:right;
  font-weight:bold;
  flex:1;
  min-width:0
}
.summary-footnote {
  margin-top:22px;
  font-size:.8rem;
  color:var(--muted)
}
.check-label {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  margin:10px 0 18px
}
.success-panel {
  max-width:700px;
  margin:40px auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:50px;
  text-align:center
}
.success-panel h2 {
  margin-bottom:18px
}
.success-panel p {
  margin-bottom:22px
}
.success-icon {
  display:grid;
  place-items:center;
  border-radius:50%;
  width:64px;
  height:64px;
  background:var(--purple);
  color:#fff;
  font-size:2rem;
  margin:0 auto 24px
}
.order-reference {
  font-size:.85rem;
  overflow-wrap:anywhere
}
.success-panel .button {
  margin:6px
}
.content-page {
  white-space:pre-wrap;
  max-width:800px;
  padding:30px;
  background:var(--surface);
  border-radius:20px;
  overflow-wrap:anywhere
}
.empty-state {
  padding:28px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted)
}
.empty-state h2 {
  margin-bottom:14px
}
.empty-page {
  min-height:60vh;
  padding-top:100px;
  padding-bottom:100px
}
.empty-page p {
  margin:22px 0
}
.error {
  color:var(--danger);
  font-size:.9rem;
  margin:12px 0;
  white-space:pre-line
}
.error:empty {
  display:none
}
.login-panel {
  width:min(450px,calc(100% - 36px));
  margin:50px auto 70px;
  padding:34px;
  border:1px solid var(--line);
  border-radius:24px;
  text-align:center;
  background:var(--surface)
}
.login-panel>img {
  display:block;
  margin:0 auto 25px
}
.login-panel .eyebrow {
  font-size:.75rem;
  margin-bottom:12px
}
.login-panel h1 {
  font-size:2rem
}
.login-panel>p:not(.eyebrow) {
  color:var(--muted);
  margin:15px 0 25px;
  font-size:.9rem
}
.login-panel form {
  text-align:left
}
.login-panel .button {
  width:100%
}
.login-panel .back {
  margin:25px 0 0
}
.admin-shell {
  max-width:1360px;
  padding-top:40px;
  padding-bottom:70px;
  min-height:75vh
}
.admin-shell h1 {
  font-size:2.7rem
}
.admin-layout {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:36px
}
.admin-layout nav {
  display:flex;
  flex-direction:column;
  gap:6px;
  background:var(--surface);
  padding:12px;
  border-radius:16px;
  align-self:start
}
.admin-layout nav button {
  text-align:left;
  border:0;
  background:none;
  padding:13px 12px;
  border-radius:9px;
  font-size:.9rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted)
}
.admin-layout nav button.active {
  background:var(--purple);
  color:white;
  font-weight:bold
}
.admin-layout nav span {
  font-size:.8rem
}
.admin-heading {
  align-items:start
}
.admin-heading h2 {
  font-size:1.6rem;
  margin-bottom:8px
}
.admin-heading .button {
  flex-shrink:0
}
.record-list {
  display:flex;
  flex-direction:column;
  gap:12px
}
.record {
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:15px
}
.record-mark {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  border-radius:13px;
  background:var(--tint);
  color:var(--purple);
  font-size:1.4rem
}
.color-mark {
  background:var(--swatch);
  border:1px solid var(--line)
}
.record-info {
  flex:1;
  min-width:0
}
.record-info h3 {
  font-size:1.05rem;
  overflow-wrap:anywhere
}
.record-info p {
  font-size:.8rem;
  color:var(--muted);
  margin:7px 0
}
.status {
  font-size:.75rem;
  color:#346c45;
  background:#eef6ee;
  border-radius:7px;
  padding:3px 7px
}
.status.inactive {
  color:var(--muted);
  background:var(--surface)
}
.record-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:240px
}
.record-actions .button {
  padding:9px 14px;
  min-height:42px;
  font-size:.85rem
}
.text-button {
  border:0;
  background:none;
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:3px;
  padding:10px 5px;
  font-size:.85rem;
  min-height:42px
}
.delete-record {
  color:var(--danger)
}
dialog {
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
  width:min(800px,calc(100% - 24px));
  max-height:90dvh;
  overflow:auto;
  color:var(--ink);
  box-shadow:0 30px 100px #24123440
}
dialog::backdrop {
  background:#20112b80;
  backdrop-filter:blur(3px)
}
#delete-dialog {
  max-width:520px
}
#delete-dialog h2 {
  font-size:1.7rem;
  margin-bottom:18px
}
#delete-description {
  margin-bottom:22px
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px
}
.dialog-heading h2 {
  font-size:1.7rem
}
.icon-button {
  width:42px;
  height:42px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  font-size:1.5rem
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:26px;
  padding-top:20px;
  border-top:1px solid var(--line)
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px
}
.form-grid>* {
  min-width:0
}
.field-editor {
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  margin:16px 0;
  background:var(--surface)
}
.field-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:15px
}
.compact {
  margin:25px 0 15px;
  align-items:flex-start
}
.compact h3 {
  margin-bottom:8px
}
.compact .button {
  flex-shrink:0;
  font-size:.8rem;
  padding:10px
}
.check-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 15px
}
.check-grid .check-label {
  font-size:.85rem;
  font-weight:normal
}
.mini-swatch {
  width:18px;
  height:18px;
  border:1px solid #bbb;
  border-radius:50%;
  background:var(--swatch);
  flex-shrink:0
}
.allowed-colors {
  margin-top:15px
}
.order-row {
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  margin:12px 0
}
.order-row summary {
  cursor:pointer;
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center
}
.order-row summary .small {
  display:block;
  margin-top:6px
}
.order-row pre {
  font-size:.85rem;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--surface);
  padding:15px;
  border-radius:10px
}
.order-row .order-reference {
  margin-top:20px
}
.toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:white;
  box-shadow:0 10px 30px #0002;
  z-index:10;
  max-width:calc(100% - 32px);
  padding:14px 24px;
  border-radius:14px;
  font-size:.9rem
}
.skip {
  position:absolute;
  top:-100px;
  left:16px;
  background:white;
  padding:12px;
  z-index:100
}
.skip:focus {
  top:10px
}
@media(min-width:1100px) {
  .hero-copy {
    padding-right:15px
  }
  .module-grid:has(>.module-card:only-child) {
    grid-template-columns:1fr
  }
  .module-card:only-child {
    display:grid;
    grid-template-columns:230px 1fr
  }
  .module-card:only-child .module-art {
    height:190px
  }
  .module-card:only-child .module-copy {
    padding:35px
  }
  .module-card:only-child h3 {
    font-size:1.6rem
  }
}
@media(max-width:950px) {
  .hero {
    gap:25px;
    min-height:540px
  }
  .logo-stage {
    min-height:370px;
    padding:22px 5px
  }
  .stage-label {
    font-size:.6rem
  }
  .hero h1 {
    font-size:3rem
  }
  .brand-colors {
    flex-wrap:wrap
  }
  .brand-colors span {
    width:100%;
    margin:8px 0 0
  }
  .admin-layout {
    grid-template-columns:175px minmax(0,1fr);
    gap:20px
  }
  .record {
    flex-wrap:wrap
  }
  .record-actions {
    max-width:none;
    width:100%
  }
  .config-grid {
    gap:20px
  }
  .config-panel,.summary-panel {
    padding:24px
  }
  .section-heading>.small {
    display:none
  }
}
@media(max-width:700px) {
  .shell {
    padding-left:20px;
    padding-right:20px
  }
  .site-header {
    padding:16px 20px;
    min-height:82px;
    gap:16px
  }
  .wordmark {
    font-size:.85rem;
    gap:8px
  }
  .wordmark strong {
    font-size:1rem
  }
  .brand-star {
    font-size:2rem
  }
  .site-header nav {
    gap:12px;
    font-size:.8rem;
    justify-content:flex-end
  }
  .hero {
    grid-template-columns:1fr;
    padding-top:36px;
    padding-bottom:38px;
    gap:30px
  }
  .hero h1 {
    font-size:clamp(2.5rem,9vw,3.7rem)
  }
  .eyebrow {
    font-size:.72rem;
    margin-bottom:15px
  }
  .hero-description {
    font-size:1rem;
    margin:20px 0 24px
  }
  .hero-description br {
    display:none
  }
  .hero-copy .button {
    width:100%
  }
  .brand-colors {
    margin-top:23px
  }
  .brand-colors span {
    width:auto;
    margin:0 0 0 6px;
    font-size:.75rem
  }
  .logo-stage {
    min-height:0;
    max-width:450px;
    width:100%;
    margin:auto;
    border-radius:38% 38% 20px 20px;
    padding:22px 12px
  }
  .logo-stage img {
    max-width:330px
  }
  .stage-note {
    font-size:1rem;
    margin-top:5px
  }
  .creations {
    padding-top:30px;
    padding-bottom:40px
  }
  .section-heading {
    gap:15px;
    margin-bottom:20px
  }
  .module-grid {
    grid-template-columns:1fr
  }
  .module-art {
    height:140px
  }
  .module-copy {
    padding:23px
  }
  .site-footer {
    padding:22px 20px;
    flex-direction:column;
    gap:7px
  }
  .module-page {
    padding-top:24px
  }
  .module-heading {
    margin-bottom:24px
  }
  .module-heading h1 {
    font-size:2.2rem
  }
  .steps {
    gap:20px;
    font-size:.85rem
  }
  .config-grid {
    grid-template-columns:1fr
  }
  .summary-panel {
    position:static
  }
  .config-panel {
    padding:23px 19px
  }
  .summary-panel {
    display:none
  }
  .review-list {
    margin:25px 0
  }
  .form-field {
    margin-bottom:25px
  }
  .success-panel {
    padding:30px 20px
  }
  .success-panel .button {
    display:flex
  }
  .admin-shell {
    padding-top:26px
  }
  .admin-shell h1 {
    font-size:2.2rem
  }
  .admin-layout {
    grid-template-columns:1fr
  }
  .admin-layout nav {
    flex-direction:row;
    flex-wrap:wrap;
    padding:8px;
    gap:4px
  }
  .admin-layout nav button {
    font-size:.8rem;
    flex:1 1 135px;
    padding:10px
  }
  .admin-heading {
    flex-direction:column;
    gap:15px
  }
  .record {
    padding:17px;
    gap:14px
  }
  .record-actions {
    justify-content:flex-start
  }
  .record-actions .button {
    margin-right:auto
  }
  .record-info h3 {
    font-size:1rem
  }
  .record-mark {
    width:40px;
    height:40px
  }
  .admin-shell>.section-heading .button {
    font-size:.8rem;
    padding:10px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .field-editor {
    padding:15px
  }
  .compact {
    flex-direction:column;
    gap:10px
  }
  .check-grid {
    grid-template-columns:1fr
  }
  dialog {
    padding:21px 18px;
    max-height:94dvh
  }
  .dialog-actions {
    flex-wrap:wrap
  }
  .dialog-actions .button {
    flex:1
  }
  .dialog-heading h2 {
    font-size:1.5rem
  }
  .order-row {
    padding:15px
  }
  .order-row summary {
    flex-wrap:wrap;
    gap:10px
  }
  .login-panel {
    padding:26px;
    margin-top:30px
  }
  .empty-page {
    padding-top:70px;
    padding-bottom:70px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important
  }
}

/* Vista previa configurable de modelos */
.model-preview {
  position:relative;
  width:min(100%,360px);
  aspect-ratio:1/1;
  margin:22px auto 14px;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  display:grid;
  place-items:center
}
.model-preview img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  z-index:1
}
.model-preview-layer {
  position:absolute;
  inset:0;
  z-index:2;
  background:var(--preview-color);
  -webkit-mask-image:var(--preview-mask);
  mask-image:var(--preview-mask);
  -webkit-mask-size:contain;
  mask-size:contain;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  pointer-events:none;
  opacity:.92;
  mix-blend-mode:multiply
}
.preview-editor {
  border-top:1px solid var(--line);
  margin-top:28px;
  padding-top:4px
}
.preview-admin-grid {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);
  gap:20px;
  align-items:start
}
.preview-thumb {
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:var(--surface)
}
.preview-thumb img {
  display:block;
  width:100%;
  max-height:240px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  margin-bottom:10px
}
.preview-help {
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  padding:18px
}
.preview-help p {margin:8px 0 0}
.preview-layers-heading {margin-top:22px}
.preview-layer-row {
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto;
  gap:14px;
  align-items:end;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin:12px 0;
  background:var(--surface)
}
.preview-layer-row label {min-width:0}
.preview-layer-row input,.preview-layer-row select {margin-bottom:0}
.preview-mask-status {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:120px;
  font-size:.8rem;
  color:var(--muted)
}
.preview-mask-status img {
  width:42px;
  height:42px;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff
}
@media(max-width:800px){
  .preview-admin-grid,.preview-layer-row {grid-template-columns:1fr}
  .model-preview {width:min(100%,300px)}
}


/* Negocios / tiendas de marca blanca */
.store-wordmark {
  min-width:0;
}
.store-wordmark img {
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:12px;
  background:white;
}
.store-wordmark strong {
  max-width:260px;
  overflow-wrap:anywhere;
}
.store-logo-fallback {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--tint);
  color:var(--purple);
  font-size:1.5rem;
  font-weight:800;
}
.store-hero {
  text-align:center;
  padding-top:64px;
  padding-bottom:34px;
}
.store-hero-logo {
  display:block;
  max-width:min(360px,72vw);
  max-height:180px;
  width:auto;
  height:auto;
  object-fit:contain;
  margin:0 auto 28px;
}
.store-hero h1 {
  font-size:clamp(2rem,5vw,4.3rem);
  max-width:800px;
  margin:0 auto 18px;
}
.store-hero .hero-description {
  margin-left:auto;
  margin-right:auto;
}
.store-mark {
  overflow:hidden;
  padding:5px;
  background:white;
}
.store-mark img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.store-logo-admin {
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin:12px 0 22px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.store-logo-admin img {
  max-width:220px;
  max-height:100px;
  object-fit:contain;
}
.store-products {
  margin-top:18px;
}
.store-route-preview {
  margin-top:18px;
  padding:16px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--line);
}
.store-route-preview code {
  display:block;
  margin:9px 0;
  overflow-wrap:anywhere;
  color:var(--purple);
}
@media (max-width:700px) {
  .store-wordmark img {
    width:46px;
    height:46px;
  }
  .store-wordmark strong {
    max-width:150px;
  }
  .store-hero {
    padding-top:40px;
  }
}


/* Business identity quick palette */
.brand-mode {
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:var(--surface);
}
.brand-mode legend {
  font-weight:800;
  padding:0 7px;
}
.brand-mode-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.brand-mode-options label {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
}
.brand-mode-options input {
  margin-top:3px;
}
.brand-palette-panel {
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
}
.brand-palette-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.brand-swatches {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.brand-swatch {
  min-width:0;
}
.brand-swatch i {
  display:block;
  height:42px;
  border-radius:10px;
  border:1px solid #00000018;
  margin-bottom:5px;
}
.brand-swatch small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-preview {
  margin-top:14px;
  border-radius:14px;
  padding:16px;
  border:1px solid var(--preview-line,var(--line));
  background:var(--preview-surface,#fff);
  color:var(--preview-ink,var(--ink));
}
.brand-preview .brand-preview-button {
  display:inline-block;
  padding:8px 13px;
  border-radius:9px;
  background:var(--preview-primary,var(--purple));
  color:#fff;
  font-weight:800;
  margin-top:10px;
}
@media (max-width:650px) {
  .brand-mode-options,.brand-swatches {grid-template-columns:1fr 1fr}
}

/* Binary Toolbox masks: exact chosen colour; legacy previews retain shading. */
.model-preview-solid .model-preview-layer { opacity:1; mix-blend-mode:normal; mask-mode:alpha; }

/* Shared live text canvas: identical coordinates to base + colour masks. */
.live-text-canvas {position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.mobile-preview {display:none}
.field-live-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 22px}
.hitbox-stage {position:relative;aspect-ratio:1;max-width:440px;margin:20px auto;background:#f4f2f6;touch-action:none;user-select:none}
.hitbox-stage>img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.hitbox-region {position:absolute;border:2px solid var(--purple);background:#7435a626;display:grid;place-items:center;cursor:move;min-width:1px;min-height:1px}
.hitbox-region span {font-size:14px;pointer-events:none}
.hitbox-handle {position:absolute;width:26px;height:26px;right:-13px;bottom:-13px;border:2px solid white;background:var(--purple);border-radius:50%;cursor:nwse-resize;touch-action:none}
.hitbox-dialog .hitbox-values {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hitbox-dialog .hitbox-values input {padding:8px}
.notification-tabs {display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.notification-tabs button[aria-current] {background:var(--purple);color:#fff}
.delivery-status-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.delivery-status-grid>div {background:var(--surface);padding:14px;border-radius:12px}
.delivery-timeline {font-size:.875rem;padding-left:24px}
.delivery-timeline li {margin:10px 0;overflow-wrap:anywhere}
@media(max-width:700px){
  .mobile-preview {display:block}
  .mobile-preview .model-preview {width:min(100%,220px);margin:14px auto 22px}
  .mobile-preview .summary-motif {display:none}
  .summary-panel {display:none}
  .hitbox-dialog .hitbox-values {grid-template-columns:repeat(2,minmax(0,1fr))}
  .delivery-status-grid {grid-template-columns:1fr}
}
