.maker.maker-wizard {
  color: var(--post-ink);
  background: var(--post-cream);
  border: 1px solid var(--post-rule);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 16px 42px rgb(101 30 45 / .08);
}
.maker-wizard .maker-panel[hidden] { display: none; }
.maker-wizard .maker-steps {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 34px); padding-bottom: 15px;
  border-bottom: 1px solid var(--post-rule);
}
.maker-wizard .maker-step {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px;
  min-height: 44px; border: 0; border-radius: 3px; background: transparent;
  color: #725d5c; font: 650 13px/1.25 var(--sans); text-align: start;
}
.maker-wizard button.maker-step:hover { color: var(--post-berry); background: transparent; }
.maker-wizard .step-number {
  display: grid; place-items: center; flex: 0 0 27px; height: 27px;
  border: 1px dashed #b79a86; border-radius: 50%; font-size: 11px;
}
.maker-wizard .is-current .step-number { background: var(--post-berry); color: white; border-color: var(--post-berry); }
.maker-wizard .is-complete .step-number { background: #365543; color: white; border-color: #365543; }
.maker-wizard .step-connector { width: clamp(5px, 3vw, 40px); border-bottom: 1px dotted #b79785; }
.maker-cover-layout { display: grid; grid-template-columns: minmax(200px,.66fr) minmax(0,1.34fr); gap: clamp(24px, 4vw, 50px); }
.maker-cover {
  --cover-color: #7d2d3d;
  position: relative; isolation: isolate; min-width: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-radius: 12px; padding: clamp(20px, 2.6vw, 36px) 18px;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgb(255 255 255 / .10) 8px 10px), var(--cover-color);
}
.maker-cover[data-paper="pine"] { --cover-color: #375844; }
.maker-cover[data-paper="midnight"] { --cover-color: #404e71; }
.maker-cover[data-paper="berry"] { --cover-color: #a34960; }
.maker-cover-print { width: min(85%, 215px); padding: 5px; background: #fff7e9; transform: rotate(-4deg); box-shadow: 0 7px 18px rgb(40 21 23 / .22); }
.maker-cover-print img { display: block; height: auto; width: 100%; }
.maker-tag { position: relative; z-index: 1; width: 95%; margin-top: -16px; padding: 17px 14px 18px 21px; border-radius: 10px 5px 5px 10px; background: #fff4d9; transform: rotate(2deg); box-shadow: 1px 5px 8px rgb(43 25 22 / .15); overflow-wrap: anywhere; }
.maker-tag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--cover-color); }
.maker-tag strong { display: block; margin: 6px 0; color: var(--post-berry); font: 400 clamp(23px, 2.6vw, 35px)/1.08 var(--serif); }
.maker-tag [data-cover-from] { color: #6c5051; font: italic 15px/1.4 Georgia, serif; }
.maker-wizard .panel-kicker { display: block; margin-bottom: 4px; color: #83513c; font: 750 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.maker-wizard .maker-panel h2 { margin: 0 0 6px; color: var(--post-berry); font: 400 clamp(26px, 2.7vw, 36px)/1.1 var(--serif); }
.maker-panel-head { margin-bottom: 20px; }
.maker-wizard .maker-panel-head p, .maker-date-choice p, .maker-wizard .hint, .maker-wizard .surprise-helper { color: #695454; font-size: 14px; line-height: 1.5; }
.maker-wizard .setup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; border: 0; padding: 0; background: none; }
.maker-wizard .maker-field { display: grid; gap: 5px; min-width: 0; }
.maker-wizard .maker-field > span:first-child, .maker-wizard .maker-label { color: #593d3e; font: 700 13px/1.4 var(--sans); }
.maker-wizard .maker-label { display: block; margin: 0 0 8px; }
.maker-wizard .maker-field small { font-weight: 400; color: #715d59; }
.maker-wizard input:not([type=hidden]), .maker-wizard textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px;
  border: 1px solid #cbb7a4; border-radius: 7px; background: #fffdf9; color: #4c3032;
  font: 400 16px/1.5 var(--sans);
}
.maker-wizard textarea { resize: vertical; }
.maker-wizard input:focus-visible, .maker-wizard textarea:focus-visible, .maker-wizard button:focus-visible { outline: 2px solid #853f4a; outline-offset: 2px; }
.maker-wizard .style-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.maker-wizard .style-choice, .maker-wizard .date-choice, .maker-wizard .surprise-type {
  display: flex; align-items: center; gap: 8px; min-height: 46px; min-width: 0;
  padding: 7px 10px; border: 1px solid var(--post-rule); border-radius: 8px;
  background: #fffdf9; color: #573e3e; text-align: left; font: 650 13px/1.3 var(--sans);
}
.maker-wizard .style-choice:hover, .maker-wizard .date-choice:hover, .maker-wizard .surprise-type:hover { background: #fbefdd; }
.maker-wizard .is-selected:is(.style-choice,.date-choice,.surprise-type) { border-color: #8c4a54; background: #faebe5; box-shadow: inset 0 0 0 1px #8c4a54; }
.maker-wizard .style-choice small, .maker-wizard .date-choice small { display: block; margin-top: 2px; color: #6e5956; font-size: 11px; font-weight: 400; }
.maker-wizard .style-swatch { display: block; flex: 0 0 39px; }
.maker-wizard .style-swatch svg { display: block; width: 100%; height: auto; }
.maker-wizard .choice-check { margin-left: auto; visibility: hidden; color: var(--post-berry); }
.maker-wizard .is-selected .choice-check { visibility: visible; }
.maker-date-choice { margin-top: 18px; }
.maker-date-choice p { margin: -4px 0 9px; }
.date-choices, .maker-actions, .editor-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.maker-wizard .date-choice { display: block; text-align: center; padding-inline: 16px; }
.maker-bottomline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--post-rule); }
.maker-bottomline > span, .success-note, .owner-key-note { color: #705954; font-size: 12px; }
.maker-bottomline i { padding: 0 3px; }
.maker-wizard .maker-next, .maker-wizard .maker-open {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 20px; border: 1px solid var(--post-berry); border-radius: 8px;
  background: var(--post-berry); color: white; text-decoration: none; font: 750 14px/1.4 var(--sans);
}
.maker-wizard .maker-open { color: var(--post-berry); background: #fffdf9; }
.maker-wizard .maker-next:hover { background: #853f4a; }
.maker-wizard .maker-next:disabled { opacity: .7; cursor: wait; }
.maker-wizard .maker-back, .maker-wizard .editor-quiet { min-height: 44px; padding: 6px 0; background: none; border: none; color: var(--post-berry); text-decoration: underline; text-underline-offset: 4px; }
.maker-wizard .maker-back:hover, .maker-wizard .editor-quiet:hover { background: none; color: #873548; }
.maker-gifts-head, .editor-day { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filled-counter { display: flex; align-items: center; gap: 6px; flex-shrink: 0; color: #34573f; }
.filled-counter > span { font: 400 30px/1 var(--serif); }
.filled-counter small { font: 600 11px/1.3 var(--sans); }
.maker-workspace { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(15px,2vw,28px); align-items: start; }
.maker-wizard .gift-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
.maker-wizard .gift-tile { min-height: 48px; padding: 5px 1px; border: 1px solid transparent; border-radius: 7px; background: none; color: #6f534d; }
.maker-wizard .gift-tile:hover, .maker-wizard .gift-tile.is-active { background: #f6e9d8; border-color: #986d53; }
.gift-tile .gift-box { position: relative; display: grid; place-items: center; width: min(100%,42px); height: 36px; margin: 4px auto; padding-top: 4px; border: 1px solid #c6ab87; border-radius: 4px; background: repeating-linear-gradient(130deg, transparent 0 5px, rgb(255 255 255 / .26) 5px 6px),#e9d3af; color: #63303b; }
.gift-tile .gift-box b { font: 400 18px/1 var(--serif); }
.gift-tile .gift-bow { position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: #a9665d; }
.has-surprise .gift-box { color: white; background: #365543; }
.has-surprise .gift-bow { background: var(--post-gold); }
.gift-state { display: block; font: 600 10px/1.3 var(--sans); }
.gift-editor { min-width: 0; padding: clamp(14px,2vw,24px); border: 1px solid var(--post-rule); border-radius: 11px; background: #fffdf9; }
.editor-day { justify-content: start; padding-bottom: 12px; border-bottom: 1px dashed var(--post-rule); }
.editor-day h3 { margin: 1px 0; color: var(--post-berry); font: 400 26px/1.1 var(--serif); }
.editor-gift-icon { color: #9b5b30; font-size: 24px; }
.editor-open-date, .note-counter { font-size: 12px; color: #695454; }
.gift-editor .maker-field { margin-top: 12px; }
.surprise-types { display: flex; flex-wrap: wrap; gap: 6px; }
.maker-wizard .surprise-type { min-height: 40px; padding: 6px 9px; font-size: 12px; }
.surprise-helper, .maker-gifts-head p, .maker-wizard .status:empty { margin: 0; }
.note-counter { text-align: right; }
.editor-controls { justify-content: space-between; margin-top: 9px; }
.maker-wizard .hint { margin-block: 14px; }
.maker-wizard .status:not(:empty) { margin-top: 12px; color: #802c39; }
.maker-success { max-width: 580px; margin: auto; text-align: center; }
.maker-success .maker-actions { justify-content: center; margin: 14px auto; }
.success-envelope { position: relative; width: 92px; height: 58px; margin: 9px auto 20px; background: #e8d6b5; border: 1px solid #cfb18f; border-radius: 6px; transform: rotate(-5deg); box-shadow: 1px 4px 0 #f0e4cb; }
.success-envelope::before { content: ''; position: absolute; inset: 0; background: #fff0d6; clip-path: polygon(0 0,100% 0,50% 67%); }
.success-envelope i { position: relative; top: 18px; color: var(--post-berry); }
.owner-key-note { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .maker-cover-layout, .maker-workspace { grid-template-columns: 1fr; }
  .maker-cover { flex-direction: row; gap: 16px; padding: 15px; }
  .maker-cover-print { width: 65px; flex-shrink: 0; }
  .maker-tag { width: min(65%, 290px); margin: 0; padding-block: 10px; }
  .maker-tag strong { font-size: 22px; }
}
@media (max-width: 520px) {
  .maker-wizard .maker-steps { gap: 4px; justify-content: space-between; }
  .maker-wizard .maker-step { gap: 4px; font-size: 11px; }
  .maker-wizard .step-number { flex-basis: 20px; height: 20px; font-size: 9px; }
  .maker-wizard .step-connector { display: none; }
  .maker-wizard .setup { grid-template-columns: 1fr; }
  .maker-wizard .style-choice { position: relative; gap: 3px; padding: 6px 4px; }
  .maker-wizard .style-swatch { flex-basis: 32px; }
  .maker-wizard .choice-check { position: absolute; right: 4px; top: 2px; font-size: 9px; }
  .maker-wizard .maker-bottomline { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .maker-wizard .gift-grid { gap: 3px; }
  .maker-wizard .maker-gifts-head { align-items: start; }
}
@media (max-width: 360px) {
  .maker-wizard .gift-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .maker-wizard .style-choice { font-size: 12px; }
  .maker-wizard .style-swatch { flex-basis: 25px; }
}
