.deco-tool-route {
  --tool-ink: #2b3028;
  --tool-leaf: #264b3e;
  --tool-paper: #fff9ee;
  --tool-line: #dfd7c5;
  color: var(--tool-ink);
  min-height: min(72vh, 820px);
  max-width: none;
  width: 100%;
}
.deco-tool-route [hidden], .deco-tool-dialog [hidden], .deco-card-display [hidden], .deco-photo-controls[hidden] {
  display: none !important;
}
.deco-tool-route--wizard {
  display: block !important;
  background: #f8f3e9;
  padding: 0 24px 60px;
  min-height: 100dvh;
}
.deco-tool-flow-header {
  align-items: center;
  border-bottom: 1px solid var(--tool-line);
  display: flex;
  justify-content: space-between;
  margin: auto;
  min-height: 66px;
  max-width: 840px;
}
.deco-tool-flow-header strong { font-size: 1.06rem; }
.deco-tool-progress {
  align-items: center;
  display: flex;
  font-size: .875rem;
  gap: 14px;
  max-width: 620px;
  margin: 28px auto;
}
.deco-tool-progress span { background: #e8e0d1; border-radius: 20px; flex: 1; height: 6px; overflow: hidden; }
.deco-tool-progress span::after {
  background: var(--tool-leaf);
  border-radius: 20px;
  content: '';
  display: block;
  height: 100%;
  width: var(--completion);
}
.deco-tool-form {
  background: var(--tool-paper);
  border: 1px solid var(--tool-line);
  border-radius: 24px;
  box-shadow: 0 16px 40px #4b392611;
  display: grid;
  gap: 16px;
  margin: 24px auto;
  max-width: 620px;
  padding: clamp(20px, 5vw, 48px);
}
.deco-tool-route h1, .deco-tool-route h2, .deco-tool-dialog h2 {
  font-family: 'Patrick Hand', cursive;
  font-weight: 400;
  line-height: 1.1;
}
.deco-tool-route h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 12px; }
.deco-tool-route h2, .deco-tool-dialog h2 { font-size: 1.8rem; margin: 0 0 10px; }
.deco-tool-route p, .deco-tool-dialog p { margin: .25em 0 1em; }
.deco-tool-form > p { margin-bottom: 0; }
.deco-tool-content {
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(30px, 7vw, 75px) 24px 60px;
}
.deco-tool-content > h1 { text-align: center; }
.deco-tool-top-actions, .deco-photo-actions, .deco-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.deco-tool-top-actions { justify-content: center; margin: 20px 0 28px; }
.deco-tool-content > [data-delete-tool] { margin-top: 20px; }
.deco-tool-content [data-tool-status]:empty, [data-tool-error]:empty { display: none; }
.deco-tool-content [data-tool-status], [data-tool-error] { color: #951c2b; font-size: .92rem; }
.deco-tool-content a, .deco-tool-dialog a { color: #264b3e; text-underline-offset: 3px; }
.deco-tool-content a.btn { color: #fff; text-decoration: none; }
.deco-tool-dialog {
  background: #fff9ee;
  border: 1px solid #dfd7c5;
  border-radius: 22px;
  box-shadow: 0 22px 70px #34281652;
  color: #2b3028;
  margin: auto;
  max-height: calc(100dvh - 32px);
  max-width: min(560px, calc(100vw - 28px));
  padding: 20px;
  width: 100%;
}
.deco-tool-dialog::backdrop { background: #181c1ab9; backdrop-filter: blur(3px); }
.deco-tool-dialog > header { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 12px; }
.deco-tool-dialog > header h2 { margin: 0; }
.deco-tool-dialog form, .deco-exchange form { display: grid; gap: 14px; }
.deco-tool-field { display: grid; font-weight: 600; gap: 6px; }
.deco-tool-field input, .deco-tool-field textarea, .deco-tool-field select, .deco-tool-dialog input[readonly] {
  background: #fffefa;
  border: 1px solid #c7c0b0;
  border-radius: 12px;
  color: #2b3028;
  font: inherit;
  font-weight: 400;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}
.deco-tool-field :is(input, textarea, select):focus { outline: 2px solid #38624f; outline-offset: 2px; }
.deco-tool-check, .deco-tool-radios label { display: flex; align-items: center; gap: 8px; }
.deco-tool-radios { display: flex; flex-wrap: wrap; gap: 10px 18px; border: 0; padding: 0; }
.deco-tool-radios legend { font-weight: 600; margin-bottom: 8px; }
.deco-tool-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.deco-tool-option { border: 1px solid #dfd7c5; border-radius: 14px; cursor: pointer; display: grid; position: relative; padding: 7px; gap: 5px; }
.deco-tool-option:has(input:checked) { outline: 3px solid #396b55; }
.deco-tool-option:has(input:focus-visible) { outline: 3px solid #976638; }
.deco-tool-option img { aspect-ratio: 4/5; border-radius: 9px; height: auto; object-fit: cover; width: 100%; }
.deco-tool-option input { accent-color: #396b55; position: absolute; top: 12px; left: 12px; }
.deco-tool-option span { font-size: .86rem; }
.deco-tool-option.is-premium span { color: #84501a; }
.deco-letter-form { background: #fbefdb; border-radius: 14px; display: grid; padding: 16px; gap: 12px; }
.deco-letter-form strong { font-family: 'Patrick Hand', cursive; font-size: 1.4rem; }
.deco-voice { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.deco-voice [data-voice-preview] { flex-basis: 100%; }
.deco-tool-route audio, .deco-tool-dialog audio { max-width: 100%; }
.deco-tool-list { list-style: none; padding: 0; }
.deco-tool-list li { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfd7c5; padding: 14px; }
.deco-tool-sealed { text-align: center; margin: 10px auto; }
.deco-tool-sealed img { object-fit: contain; max-width: min(100%, 325px); height: auto; }
.deco-gift { background: none; border: 0; color: inherit; cursor: pointer; display: grid; gap: 10px; margin: 0 auto; justify-items: center; }
.deco-gift:hover img { transform: scale(1.04) rotate(-2deg); transition: transform .25s ease; }
.deco-card-display {
  display: grid;
  justify-items: center;
  position: relative;
  perspective: 1000px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 6px;
}
.deco-card-fold {
  cursor: pointer;
  display: block;
  width: min(85%, 315px);
  background: #426445;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 32px #3322185c;
  padding: 0;
  transition: transform .45s cubic-bezier(.16,.84,.35,1);
  transform: rotateY(-10deg) rotateZ(-4deg);
  transform-origin: 12% 50%;
}
.deco-card-fold:hover { transform: rotateY(-3deg) rotateZ(-1deg) scale(1.025); }
.deco-card-fold img { border-radius: 9px; display: block; height: auto; width: 100%; }
.deco-card-display.is-open .deco-card-fold { transform: rotateY(-36deg) rotateZ(-6deg) translateX(-3%) scale(.88); }
.deco-card-letter {
  animation: deco-letter-open .4s ease-out both;
  background: #fff7e6;
  border: 1px solid #e0d0ad;
  border-radius: 12px;
  box-shadow: 0 12px 32px #34271338;
  color: #32291d;
  width: min(100%, 355px);
  margin-top: -25px;
  padding: 24px;
  position: relative;
  text-align: left;
}
.deco-card-letter p { white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes deco-letter-open { from { opacity: 0; transform: translateY(15px); } }
.card3d-stage .deco-card-display { position: absolute; inset: 0; align-content: center; }
.card3d-stage .deco-card-fold { width: min(62%, 265px); }
.card3d-stage .deco-card-letter { margin-top: -45px; z-index: 2; }
.deco-calendar-panel {
  background: linear-gradient(#32462f42, #30382f6b), var(--calendar-art) center / cover no-repeat;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px #d1c5ad;
  max-width: 520px;
  margin: auto;
  padding: clamp(16px, 5vw, 35px);
}
.deco-calendar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.deco-calendar-grid .advent-door {
  aspect-ratio: 1;
  position: relative;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0;
  padding: 0;
}
.deco-calendar-grid .advent-door__leaf {
  background: #fbecd6e6;
  color: #41291f;
  border: 1px solid #a38756;
  border-radius: 7px;
  display: grid;
  place-content: center;
  font: 700 1rem 'Figtree', sans-serif;
}
.deco-calendar-grid .has-note .advent-door__leaf { background: #e7c77b; }
.deco-door-note img, .deco-door-example img { object-fit: contain; max-width: 100%; height: auto; }
.deco-door-note p { white-space: pre-wrap; overflow-wrap: anywhere; }
.deco-wishes { margin: auto; max-width: 630px; }
.deco-wishes .wl-item { min-height: 65px; flex-wrap: wrap; }
.deco-wishes .wl-item p { margin: 4px 0; }
.deco-wish-import { align-items: end; display: grid; gap: 6px 10px; grid-template-columns: minmax(0, 1fr) auto; }
.deco-wish-import .wl-act { min-height: 42px; }
.deco-wish-import [data-product-status] { font-size: .9rem; grid-column: 1 / -1; margin: 0; }
.deco-wish-import [data-product-status]:empty { display: none; }
.deco-tool-dialog [data-product-photo] { border-radius: 8px; object-fit: cover; }
.deco-exchange { display: grid; gap: 16px; }
.deco-exchange :is(section, dl) {
  background: #fff9ee;
  border: 1px solid #dfd7c5;
  border-radius: 18px;
  margin: 0;
  padding: clamp(14px, 5vw, 28px);
}
.deco-exchange:has([data-draw-result]) [data-draw-result] { margin-top: 12px; }
.deco-exchange form button { justify-self: start; }
.deco-exchange article + article { border-top: 1px solid #dfd7c5; margin-top: 12px; padding-top: 12px; }
.deco-photo-canvas { border-radius: 14px; cursor: grab; width: min(100%, 600px); height: auto; touch-action: none; }
.deco-photo-canvas:active { cursor: grabbing; }
.hat-stage.is-dragging { outline: 3px dashed #396b55; outline-offset: 4px; }
.deco-photo-controls { display: grid; gap: 12px; margin-top: 12px; }
.deco-photo-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deco-photo-settings label { display: grid; gap: 5px; }
.deco-photo-settings input { width: 100%; accent-color: #396b55; }
.deco-photo-status { font-size: .88rem; }
@media (max-width: 550px) {
  .deco-tool-route--wizard { padding-inline: 14px; }
  .deco-calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .deco-card-fold, .deco-card-letter { animation: none; transition: none; }
}

.deco-tool-old-chrome[hidden] { display: none !important; }
.deco-tool-route--wizard {
  --tool-ink: var(--text, #f5f8f4);
  --tool-line: #3e6052;
  --tool-paper: transparent;
  background: transparent;
  color: var(--tool-ink);
  padding: 0;
}
.deco-tool-route--wizard .page__bar.deco-tool-flow-header,
.advent-flow > .page__bar.deco-tool-flow-header { border-bottom: 0; min-height: 60px; max-width: none; }
.deco-tool-route--wizard .deco-tool-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--tool-ink);
  margin: 0 auto;
  max-width: 540px;
  padding: 18px;
}
.deco-tool-route--wizard .deco-tool-form :is(h1,h2) {
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}
.deco-tool-route--wizard .deco-tool-form h1 { text-align: center; }
.deco-tool-route--wizard:not([data-tool-step="1"]) .deco-tool-form {
  margin: 24px auto 60px;
}
.deco-tool-route--wizard .deco-tool-form :is(input:not([type="radio"],[type="checkbox"]),select,textarea) {
  background: #102d28;
  border: 1px solid #3e6052;
  border-radius: 12px;
  color: var(--text, #f5f8f4);
}
.deco-tool-route--wizard .deco-tool-form :is(input,textarea)::placeholder { color: #a6bfb0; }
.deco-tool-route--wizard .deco-tool-form .name-input input {
  border-radius: 16px;
  font-size: 20px;
}
.deco-tool-route--wizard .deco-tool-form [data-tool-error] { color: #ffc2c2; }
.deco-tool-route--wizard .deco-tool-option { border-color: #3e6052; }
.deco-tool-route--wizard .deco-tool-option.is-premium span { color: #ffd08b; }
.deco-tool-route--wizard .deco-letter-form { background: #1c3d30; }
.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] {
  display: flex !important;
  flex-direction: column;
}
.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] .deco-tool-form {
  display: flex;
  flex: 1;
  max-width: min(100%, 440px);
  padding: 0 24px;
  gap: 0;
}
.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] .flow__title {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] .flow__actions { margin-top: auto; }
.deco-tool-route--wizard[data-tool-kind="exchanges"] { max-width: 520px; padding-inline: 16px; }
.deco-tool-route--wizard[data-tool-kind="exchanges"] .deco-tool-form { display: grid; padding: 14px 0 32px; }
.deco-tool-route--wizard[data-tool-kind="calendars"] {
  min-height: 0;
  max-width: 540px;
  padding: 12px 18px 24px;
}
.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-tool-form { max-width: none; padding: 0; }
.deco-tool-route--wizard[data-tool-kind="calendars"] .advent-flow__heading { margin: 4px 0 18px; font-size: 22px; }
.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-tool-field {
  gap: 6px;
  font-size: 15px;
}
.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-tool-field input { min-height: 46px; }

.deco-card-webgl {
  display: block;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.deco-card-canvas {
  display: block;
  height: 100%;
  touch-action: pan-y;
  width: 100%;
}

.deco-card-display.has-card-webgl {
  align-content: start;
  display: block;
  max-width: 520px;
  padding: 0;
}

.deco-card-display.has-card-webgl .deco-card-fold,
.deco-card-display.has-card-webgl.is-open .deco-card-fold {
  appearance: none;
  aspect-ratio: 1 / 1.12;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: min(65dvh, 580px);
  transform: none;
  width: 100%;
  position: relative;
}

.deco-card-display.has-card-webgl .deco-card-fold > img {
  height: 0;
  opacity: 0;
  position: absolute;
}

.deco-card-display.has-card-webgl .deco-card-webgl { opacity: 1; }

.deco-card-display.has-card-webgl .deco-card-letter {
  animation: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  margin: 12px auto 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.deco-card-display.has-card-webgl .deco-card-copy {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.card3d-stage .deco-card-display.has-card-webgl,
.card3d-stage .deco-card-display.has-card-webgl .deco-card-fold {
  height: 100%;
  max-height: none;
  max-width: none;
}

.card3d-stage .deco-card-display.has-card-webgl .deco-card-letter { margin: 0; }

.deco-wishlist-start {
  display: grid;
  gap: 12px;
  margin: 16px auto 0;
  max-width: 360px;
  width: 100%;
}
.deco-wishlist-start input {
  background: #102d28;
  border-color: #3e6052;
  color: var(--text, #f5f8f4);
}
.deco-wishlist-start [data-tool-error] { color: #ffc2c2; }

.deco-photo-status:empty { display: none; }
.deco-photo-controls { margin-top: 10px; }
.hat-stage.has-photo .deco-photo-canvas { background: transparent; height: 100%; width: 100%; }
.hat-stage.has-photo:not(.is-selected) .deco-photo-canvas { cursor: default; }

.page__bar.deco-tool-flow-header {
  width: 100%;
  margin: 0;
}

.deco-tool-route--wizard[data-tool-kind="cards"] {
  display: flex !important;
  flex-direction: column;
}

.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] .cc-name.flow__center {
  padding-block-start: calc(var(--screen-height, 100dvh) * .16);
}

.deco-tool-route--wizard[data-tool-kind="cards"][data-tool-step="1"] .flow__title {
  font-size: clamp(28px, 5vw, 34px);
  letter-spacing: -.01em;
  margin-bottom: 0;
}

.deco-tool-route--wizard[data-tool-kind="cards"] .deco-card-wizard-form {
  display: contents;
}

.deco-tool-sr {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.deco-tool-route--wizard .deco-card-wizard-form .paper--editor :is(.paper__textarea,.paper__sign input) {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--hand);
}
.deco-tool-route--wizard .deco-card-wizard-form .paper--editor :is(.paper__textarea,.paper__sign input)::placeholder { color: #8a9c94; }
.deco-tool-route--wizard .deco-card-wizard-form :is(.cc-step-head,.flow__heading) .flow__title { font-size: clamp(28px, 5vw, 34px); margin: 0; }
.deco-tool-route--wizard .deco-card-wizard-form :is(.cc-step-head,.flow__heading) .flow__sub { margin: 8px 0 0; }
.deco-tool-route--wizard .deco-card-wizard-form [data-card-voice] { display: grid; gap: 8px; padding: 8px 0; }
.deco-tool-route--wizard .deco-card-wizard-form [data-card-voice][hidden] { display: none !important; }

.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-advent-first-form { display: block; }
.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-advent-first-form .advent-field { min-height: 46px; padding: 11px 14px; }
.deco-tool-route--wizard[data-tool-kind="calendars"] .deco-advent-first-form #advent-tz { width: 100%; }

.deco-tool-route--wizard[data-tool-kind="exchanges"] .santa-flow__body { display: block; padding: 14px 0 0; }
.deco-tool-route--wizard[data-tool-kind="exchanges"] .santa-flow__body p { margin: 0; }

.deco-wish-link-check {
  justify-content: center;
  margin: 16px auto;
}

.deco-card-countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

.deco-santa-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.deco-santa-pairs li {
  border: 1px solid #dfd7c5;
  border-radius: 999px;
  padding: 6px 12px;
}
