/* ===== yanshi.css ===== */
:root {
  --brand: #a28774;
  --ink: #333;
  --muted: #777472;
  --line: #e6e0da;
  --sand: #e2cfba;
  --cream: #f5f3ef;
  /* Inline mask: local servers may serve .svg as image/svg (not image/svg+xml), which breaks CSS masks in Chromium. */
  --action-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='81 19.6797 18 8.6406' width='18' height='9'%3E%3Cpath d='M91.0801 19.6797C91.0801 19.6797 93.198 21.7173 94.6797 22.5596C96.3111 23.4868 98.9997 23.9999 99 24C99 24 96.1766 24.6822 94.6797 25.4404C92.9533 26.3151 91.0801 28.3203 91.0801 28.3203V24.7197H81V23.2803H91.0801V19.6797Z' fill='white'/%3E%3C/svg%3E")
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  background: #fcfbf9;
  font: 14px/1.6 Arial, "Microsoft YaHei", sans-serif
}

[role="button"],
input,
select,
textarea {
  font: inherit;
  color: inherit
}

[role="button"],
a {
  -webkit-tap-highlight-color: transparent
}

[role="button"] {
  cursor: pointer;
  background: none;
  border: 0
}

[role="button"][disabled] {
  cursor: not-allowed;
  opacity: .45;
  pointer-events: none
}

a {
  text-decoration: none;
  color: inherit
}

*:focus,
*:focus-visible,
*:focus-within {
  outline: none !important;
  box-shadow: none
}

/* Anchor buttons share the same chrome as role=button controls */
a.primary,
a.outline,
a.text-button {
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box
}


h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400
}

img {
  max-width: 100%
}

[hidden] {
  display: none !important
}

.panel-step,
.member-screen,
.member-body-pane {
  display: block
}

.panel-step[hidden],
.member-screen[hidden],
.member-body-pane[hidden],
.login-mode-pane[hidden],
#fabric-branch[hidden],
#lining-branch[hidden],
#sole-custom-block[hidden],
#lining-custom-block[hidden],
#selected-fabric[hidden],
.decal-rotation-controls[hidden] {
  display: none !important
}

.skip {
  position: fixed;
  left: 15px;
  top: -100px;
  background: white;
  z-index: 99;
  padding: 15px
}

.intro {
  margin: 0 auto;
  padding: 43px 0 36px;
  width: 87.5%;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #83766b;
  display: block
}

.intro h1 {
  font-size: 34px;
  letter-spacing: 2px;
  margin: 10px 0 10px
}

.lead {
  color: #777472;
  font-size: 13px
}

.intro-right {
  text-align: right;
  color: #888079;
  font-size: 12px
}

.intro-right>span {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9b8778
}

.intro-right p {
  margin-top: 15px;
  line-height: 1.9
}

.workspace {
  width: 87.5%;
  margin: auto;
  border: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: 20px
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 66px;
  border-bottom: 1px solid var(--line)
}

.step {
  position: relative;
  color: #8b847e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px
}

.step .num {
  font-size: 13px;
  color: #a89d94
}

.step.active {
  color: #805f47;
  background: #f7f3ef
}

.step.active:after {
  content: "";
  height: 2px;
  background: var(--brand);
  position: absolute;
  bottom: -1px;
  left: 22%;
  right: 22%
}

.step.active .num {
  color: #805f47
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr)
}

.stage {
  min-height: 590px;
  position: relative;
  background: radial-gradient(ellipse at 60% 35%, #f8f5f1, #eae3dc);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 31px 34px 20px
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1
}

.stage h2 {
  font-size: 23px;
  letter-spacing: 2px;
  margin: 8px 0 5px
}

.stage-head p {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #81756a
}

.circle {
  width: 34px;
  height: 34px;
  border: 1px solid #cfc4ba;
  border-radius: 50%;
  font-size: 23px;
  color: #846d5b
}

.view-switch {
  display: flex;
  align-self: flex-end;
  border: 1px solid #d6cbc1;
  border-radius: 20px;
  padding: 3px;
  margin-top: 5px;
  z-index: 1
}

.view-switch [role="button"] {
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  color: #81776e
}

.view-switch [role="button"].active {
  background: #fff;
  color: #775d49;
  box-shadow: 0 2px 6px #9c80651a
}

.visual {
  position: relative;
  height: 268px;
  margin: 12px -12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1
}

.shoe-photo {
  width: 100%;
  aspect-ratio: 832/330;
  overflow: hidden;
  position: relative;
  mix-blend-mode: multiply
}

.shoe-photo img {
  width: 100%;
  position: absolute;
  max-width: none;
  top: -116%;
  left: 0
}

.shoe-photo.cold {
  aspect-ratio: 806/270
}

.shoe-photo.cold img {
  top: -318%
}

#diagram {
  width: 100%;
  height: 100%
}

#diagram svg {
  width: 100%;
  height: 100%;
  overflow: visible
}

.stage-caption {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #87796c;
  font-size: 10px;
  z-index: 1;
  margin: 8px 0 22px
}

.mini-line {
  width: 22px;
  height: 1px;
  background: #ae9782
}

.parts {
  display: flex;
  gap: 7px;
  justify-content: center;
  z-index: 1;
  flex-wrap: wrap
}

.part {
  background: #ffffff80;
  border: 1px solid #d7cdc3;
  border-radius: 20px;
  padding: 6px 13px;
  color: #786959;
  font-size: 11px
}

.part.active {
  background: #a28774;
  color: white;
  border-color: #a28774
}

.stage-foot {
  margin-top: auto;
  padding-top: 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8b7b6f;
  z-index: 1
}

.stage-foot [role="button"] {
  font-size: 10px
}

.watermark {
  position: absolute;
  bottom: -22px;
  left: 1%;
  white-space: nowrap;
  font-size: clamp(50px, 6.4vw, 115px);
  letter-spacing: -4px;
  color: #aa938015;
  pointer-events: none;
  line-height: 1
}

.config {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 22px
}

#panel {
  flex: 1;
  min-height: 470px
}

.panel-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #998370;
  letter-spacing: 1px;
  margin-bottom: 8px
}

.config h2 {
  font-size: 23px;
  margin: 0 0 7px
}

.subcopy {
  color: #8b847e;
  font-size: 11px;
  margin-bottom: 22px
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.model {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
  position: relative
}

.model.selected {
  border-color: var(--brand);
  background: #f9f6f2
}

.model .shoe-photo {
  height: 88px;
  aspect-ratio: auto;
  margin: 8px 0 15px
}

.model .shoe-photo.soft img {
  top: -78px
}

.model .shoe-photo.cold img {
  top: -199px
}

.model strong {
  font-weight: 400;
  font-size: 15px
}

.model small {
  display: block;
  color: #8b847e;
  font-size: 10px;
  margin-top: 5px
}

.check {
  position: absolute;
  right: 10px;
  top: 8px;
  color: #98775e
}

.note {
  background: #f7f5f2;
  padding: 14px 16px;
  color: #897b6e;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 20px;
  border-left: 2px solid #cebaa7
}

.part-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 17px 0 18px;
  gap: 20px
}

.part-tabs [role="button"] {
  padding: 0 0 9px;
  font-size: 12px;
  white-space: nowrap;
  color: #8b8178
}

.part-tabs [role="button"].active {
  color: #8b664c;
  border-bottom: 2px solid var(--brand)
}

.label {
  font-size: 11px;
  color: #776c62;
  display: block;
  margin: 12px 0 7px
}

.family-select {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px
}

select,
input,
textarea {
  border: 1px solid #ddd5cc;
  border-radius: 3px;
  background: #fff;
  padding: 9px 10px;
  width: 100%;
  font-size: 12px
}

textarea {
  min-height: 95px;
  resize: vertical
}

select {
  padding-right: 24px
}

.swatch-heading {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 10px;
  color: #7e746c;
  font-size: 11px
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 9px;
  max-height: 195px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin
}

.swatch {
  padding: 0;
  font-size: 9px;
  color: #847568
}

.swatch .sample {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 3px solid #fff;
  outline: 1px solid #e9e1da;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
  background: #eae3dc;
  box-sizing: border-box;
  aspect-ratio: 1
}

/* Intrinsic square when aspect-ratio is unavailable. */
.swatch .sample::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 100%;
  pointer-events: none
}

@supports (aspect-ratio: 1) {
  .swatch .sample::before {
    display: none;
    padding-top: 0
  }
}

.sample img {
  width: 158%;
  max-width: none;
  height: 220%;
  object-fit: cover;
  position: absolute;
  top: -60%;
  left: -29%;
  display: block;
  border: 0
}

.swatch.selected .sample {
  outline: 2px solid #a28774
}

.swatch.selected .sample:after {
  content: "✓";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 1px 4px black;
  font-size: 16px;
  background: #0002
}

.swatch.selected {
  color: #70543f
}

.selected-fabric {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px
}

.selected-fabric img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px
}

.selected-fabric p {
  color: #9a8c80;
  font-size: 10px;
  margin-top: 3px
}

.empty-card {
  border: 1px dashed #d7cbc0;
  border-radius: 5px;
  padding: 34px 20px;
  text-align: center;
  margin-top: 22px;
  color: #94806f
}

.empty-card .sole-icon {
  display: block;
  width: 90px;
  height: 33px;
  border: 1px solid #b8a38e;
  border-radius: 70% 40% 40% 50%;
  margin: 0 auto 18px;
  transform: rotate(-12deg);
  background: repeating-linear-gradient(90deg, #ddd4c9, #ddd4c9 2px, #e9e2da 2px, #e9e2da 5px)
}

.empty-card p {
  margin-top: 6px;
  font-size: 11px
}

.panel-footer {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px
}

.text-button {
  font-size: 11px;
  color: #8d7b6c
}

.panel-footer>span {
  font-size: 10px;
  color: #a09489
}

.primary,
.outline {
  border-radius: 30px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 12px;
  white-space: nowrap;
  min-height: 41px
}

.primary {
  background: var(--brand);
  color: white
}

.primary:hover {
  background: #8e725d
}

.outline {
  border: 1px solid #c6b4a4;
  color: #806650;
  background: transparent
}

.outline:hover {
  background: #f6f0eb
}

.summary-bar {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line)
}

.summary-bar p {
  font-size: 12px;
  margin-top: 5px
}

.summary-actions {
  display: flex;
  gap: 12px;
  align-items: center
}

.summary-actions>span {
  font-size: 10px;
  color: #887362
}

.details {
  width: 87.5%;
  margin: 70px auto
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.detail-heading h2 {
  font-size: 22px
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 40px
}

.detail-grid article {
  border-top: 1px solid #d8cabe;
  padding-top: 20px
}

.detail-grid span {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #a28b77
}

.detail-grid h3 {
  font-size: 17px;
  margin: 14px 0 10px
}

.detail-grid p {
  font-size: 12px;
  color: #8a8179;
  line-height: 2
}

#modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
  border: 0;
  background: rgba(48, 41, 31, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-sizing: border-box
}

#modal:not([hidden]),
#modal.is-open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex
}

#modal .modal-panel {
  position: relative;
  border: 0;
  border-radius: 8px;
  padding: 32px;
  width: 90%;
  max-width: 620px;
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
  background: #fcfbf9;
  box-shadow: 0 20px 100px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin: auto
}

#modal h2 {
  font-size: 23px;
  margin: 5px 0 20px
}

#modal p {
  font-size: 13px;
  line-height: 2;
  color: #827164;
  margin: 12px 0
}

.close {
  position: absolute;
  right: 13px;
  top: 8px;
  font-size: 27px;
  color: #8a796b
}

#modal-content > .primary {
  margin-top: 20px
}

#modal .confirm-actions .primary {
  margin-top: 0
}

.modal-image {
  display: block;
  max-height: 68vh;
  margin: auto
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px
}

.review-row span:last-child {
  text-align: right;
  color: #8e755f;
  overflow-wrap: anywhere
}

.emb-options {
  display: flex;
  gap: 10px;
  margin: 15px 0
}

.emb-options [role="button"] {
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 11px
}

.emb-options [role="button"].active {
  border-color: var(--brand);
  background: #f6f1ec
}

.checklabel {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 15px 0
}

.checklabel input {
  width: 15px;
  height: 15px;
  accent-color: #a28774
}

.review-warning {
  font-size: 11px;
  color: #8c7460;
  background: #f8f3ee;
  padding: 13px;
  margin-top: 15px
}

#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  /* 提示居中显示，避免出现在页面底部不易察觉 */
  transform: translate(-50%, calc(-50% + 14px));
  padding: 14px 26px;
  border-radius: 8px;
  background: rgba(47, 41, 35, .97);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 1200;
  max-width: min(90vw, 460px);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .06);
  box-sizing: border-box;
  font-weight: 500;
  letter-spacing: .2px
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, -50%)
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px
}

.tiny {
  font-size: 10px;
  color: #8b7b6c;
  margin-top: 14px
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px
}

@media(min-width:1650px) {
  .intro {
    padding: 54px 0 44px
  }

  .intro h1 {
    font-size: 44px
  }

  .stage {
    min-height: 660px;
    padding: 40px 45px 25px
  }

  .visual {
    height: 320px
  }

  .config {
    padding: 36px 40px
  }

  .swatches {
    grid-template-columns: repeat(8, 1fr);
    max-height: 240px
  }

  .stage-caption {
    margin-bottom: 28px
  }

  
}

@media(max-width:1050px) {

  .workspace,
.intro,
.details {
    width: 94%
  }

  

  .editor {
    grid-template-columns: 1.15fr 1fr
  }

  .stage {
    padding: 25px 20px
  }

  .config {
    padding: 25px 20px
  }

  .summary-bar {
    padding: 18px
  }

  .summary-actions>span {
    display: none
  }

  .swatches {
    grid-template-columns: repeat(5, 1fr)
  }

  .intro h1 {
    font-size: 30px
  }

  .detail-grid {
    gap: 25px
  }

  .model .shoe-photo.soft img {
    top: -65px
  }

  .model .shoe-photo.cold img {
    top: -170px
  }
}

@media(max-width:760px) {
  

  

  

  

  

  

  

  

  

  .intro {
    width: 90%;
    padding: 28px 0
  }

  .intro h1 {
    font-size: 27px;
    letter-spacing: 0
  }

  .intro-right {
    display: none
  }

  .workspace {
    width: 100%;
    border-left: 0;
    border-right: 0
  }

  .steps {
    height: 57px
  }

  .step {
    gap: 3px;
    flex-direction: column;
    font-size: 10px
  }

  .step .num {
    font-size: 10px
  }

  .editor {
    display: flex;
    flex-direction: column
  }

  .stage {
    min-height: 360px;
    padding: 21px 23px 15px
  }

  .stage h2 {
    font-size: 20px
  }

  .stage-head p {
    font-size: 9px
  }

  .stage-head .eyebrow {
    font-size: 9px
  }

  .visual {
    height: 165px;
    margin-top: -8px;
    margin-bottom: 0
  }

  .view-switch {
    margin-top: -5px
  }

  .shoe-photo {
    max-width: 430px
  }

  .stage-caption {
    font-size: 9px;
    margin: 0 0 12px
  }

  .parts {
    gap: 6px
  }

  .part {
    font-size: 10px;
    padding: 5px 12px
  }

  .stage-foot {
    padding-top: 16px;
    font-size: 9px
  }

  .stage-foot [role="button"] {
    font-size: 9px
  }

  .watermark {
    font-size: 55px;
    bottom: -12px
  }

  .config {
    padding: 27px 24px 22px
  }

  #panel {
    min-height: 0
  }

  .panel-kicker {
    margin-bottom: 6px
  }

  .config h2 {
    font-size: 23px
  }

  .swatches {
    grid-template-columns: repeat(6, 1fr);
    max-height: 220px
  }

  .panel-footer {
    margin-top: 24px
  }

  .summary-bar {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
    padding: 21px 24px
  }

  .summary-actions {
    width: 100%;
    justify-content: space-between
  }

  .summary-actions [role="button"] {
    flex: 1;
    padding: 11px 14px
  }

  .summary-bar p {
    font-size: 11px
  }

  .details {
    width: 88%;
    margin: 40px auto
  }

  .detail-heading {
    display: block
  }

  .detail-heading h2 {
    font-size: 20px;
    margin-top: 10px
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 25px
  }

  .detail-grid h3 {
    margin: 9px 0
  }

  .detail-grid article {
    padding-top: 15px
  }

  .model .shoe-photo.soft img {
    top: -85px
  }

  .model .shoe-photo.cold img {
    top: -220px
  }

  

  

  

  

  #modal .modal-panel {
    padding: 28px 20px
  }

  .part-tabs {
    gap: 20px
  }
}

.visual {
  mix-blend-mode: multiply
}

.shoe-photo.soft {
  aspect-ratio: 832/300
}

.shoe-photo.soft img {
  top: -133.33%
}

.shoe-photo.cold {
  aspect-ratio: 806/235
}

.shoe-photo.cold img {
  top: -368.1%
}

.shoe-photo img {
  filter: brightness(1.09)
}

.model .shoe-photo {
  height: auto;
  margin: 24px 0 22px
}

.model .shoe-photo.soft img {
  top: -133.33%
}

.model .shoe-photo.cold img {
  top: -368.1%
}

.subcopy,
.note,
.tiny,
.selected-fabric {
  font-size: 12px
}

.swatch {
  font-size: 10px
}

.stage-caption {
  font-size: 11px
}

.eyebrow {
  font-size: 11px
}

.part {
  font-size: 12px
}

.label,
.swatch-heading {
  font-size: 12px
}

.model small {
  font-size: 11px
}

@media(max-width:760px) {
  .stage-caption {
    font-size: 9px
  }

  .eyebrow {
    font-size: 10px
  }

  .part {
    font-size: 11px
  }

  .subcopy,
.note,
.tiny {
    font-size: 12px
  }

  .model .shoe-photo {
    margin-top: 24px;
    margin-bottom: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    transition: none !important
  }
}

/* ===== layout.css ===== */
/* Figma 436:14787 — 1920 × 1080 showcase, shared 774px footer.
   Existing configurator styles are retained inside .designer. */
body {
  background: #e2dbd5
}

.showcase {
  position: relative;
  width: 100%;
  height: 56.25vw;
  min-height: 650px;
  overflow: hidden;
  background: #e2dbd5;
  isolation: isolate
}

.showcase-texture {
  position: absolute;
  left: -6.9792%;
  top: -5.8333%;
  width: 125.46875%;
  height: 125.2778%;
  max-width: none;
  object-fit: cover;
  opacity: .12;
  transform: scaleX(-1);
  z-index: -2;
  pointer-events: none
}

.showcase-heading {
  position: absolute;
  left: 8.4896%;
  top: 18.0556%
}

.showcase-heading p {
  font: 16px/1.2 Arial, sans-serif;
  letter-spacing: 1px;
  color: #666
}

.showcase-heading h1 {
  font: 400 48px/1.5 "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  margin-top: 19px
}

.showcase-heading i {
  display: block;
  width: 67px;
  height: 2px;
  background: #a28774;
  margin-top: 22px
}

.start-design {
  position: absolute;
  right: 8.3333%;
  top: 22.037%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #a28774;
  color: #fff;
  border-radius: 100px;
  padding: 10px 30px;
  font-size: 15px;
  line-height: 28px
}

.start-design img {
  display: block;
  max-width: none
}

.start-design:hover {
  background: #8c715d
}

.showcase-product {
  position: absolute;
  top: 25.1852%;
  left: 50%;
  transform: translateX(-50%);
  width: 25.706%;
  height: 52.8704%;
  display: flex;
  align-items: center;
  justify-content: center
}

.hero-pair {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-reference {
  min-width: 160%;
  flex-shrink: 0
}

.hero-arrow {
  position: absolute;
  top: 49.8148%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(8px 10px 6px #a287742e);
  padding: 0;
  z-index: 2
}

.hero-arrow img {
  display: block;
  max-width: none
}

.arrow-prev {
  left: 31.7708%
}

.arrow-next {
  left: 66.1458%
}

.arrow-next img {
  transform: rotate(180deg)
}

#hero-reference-label {
  position: absolute;
  top: 79%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #777472;
  white-space: nowrap
}

.sole-picker,
.fabric-picker {
  position: absolute;
  top: 42.5%;
  width: 12.8646%
}

.sole-picker {
  left: 8.4896%
}

.fabric-picker {
  right: 8.3333%
}

.sole-picker h2,
.fabric-picker h2 {
  font-size: 18px;
  line-height: 16px;
  color: #29221f;
  margin-bottom: 30px
}

.sole-picker h2 span,
.fabric-picker h2 span {
  font-family: Arial, sans-serif
}

.sole-options {
  display: flex;
  gap: 12px
}

.sole-options [role="button"] {
  width: calc((100% - 12px)/2);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 4px;
  overflow: hidden
}

.sole-options img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.hero-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.hero-swatches [role="button"] {
  padding: 0;
  aspect-ratio: 1;
  border: 2px solid white;
  border-radius: 4px;
  overflow: hidden
}

.hero-swatches img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.sole-options [role="button"]:hover,
.hero-swatches [role="button"]:hover {
  outline: 2px solid #a28774;
  outline-offset: 3px
}

.showcase-dots {
  position: absolute;
  right: 2.6042%;
  top: 37.8704%;
  width: 18px;
  height: 170px
}

.showcase-dots i {
  position: absolute;
  left: 4.5px;
  width: 9px;
  height: 9px;
  background: #e2cfba;
  opacity: .3;
  border-radius: 50%
}

.showcase-dots i:nth-child(1) {
  top: 16.5px
}

.showcase-dots i:nth-child(2) {
  top: 46.5px
}

.showcase-dots i:nth-child(3) {
  top: 72px;
  left: 0
}

.showcase-dots i:nth-child(4) {
  top: 106.5px
}

.showcase-dots i:nth-child(5) {
  top: 148.5px
}

.showcase-dots .selected {
  width: 18px;
  height: 18px;
  background: none;
  border: 2px solid #e2cfba;
  opacity: 1
}

.showcase-watermark {
  position: absolute;
  left: 50%;
  bottom: -.42em;
  transform: translateX(-50%);
  font: 500 17.96875vw/1.2 Arial, sans-serif;
  letter-spacing: -.025em;
  color: #a28774;
  opacity: .1;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none
}

.designer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: #fcfbf9;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px
}

.designer-toolbar {
  width: 87.5%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  color: #897463
}

.designer-toolbar>span {
  letter-spacing: 2px;
  font-size: 13px
}

.designer-toolbar [role="button"] {
  font-size: 13px
}

.designer-disclaimer {
  font-size: 11px;
  color: #8b7b6c;
  text-align: center;
  margin: 22px auto 0;
  padding: 0 20px
}

.designing {
  overflow: hidden
}

.designer .workspace {
  scroll-margin-top: 10px
}

@media(max-width:1650px) and (min-width:761px) {
  

  

  

  

  

  

  

  

  .showcase-heading p {
    font-size: clamp(11px, .8333vw, 16px)
  }

  .showcase-heading h1 {
    font-size: 2.5vw;
    margin-top: 1vw
  }

  .showcase-heading i {
    width: 3.49vw;
    margin-top: 1.15vw
  }

  .start-design {
    font-size: 12px;
    padding: 7px 22px;
    line-height: 23px
  }

  .sole-picker h2,
.fabric-picker h2 {
    font-size: clamp(12px, .9375vw, 18px);
    margin-bottom: 1.5625vw
  }

  .hero-swatches {
    gap: 8px
  }

  .sole-options {
    gap: 8px
  }

  .sole-options [role="button"] {
    width: calc((100% - 8px)/2)
  }

  .hero-arrow {
    width: 32px;
    height: 32px
  }

  

  

  

  

  

  

  

  

  

  

  

  

  
}

@media(max-width:1100px) and (min-width:761px) {
  

  

  .showcase {
    min-height: 620px
  }

  .showcase-product {
    width: 32%;
    height: auto;
    aspect-ratio: 493.554/571;
    top: 27%
  }

  .arrow-prev {
    left: 29%
  }

  .arrow-next {
    left: 68%
  }

  .sole-picker,
.fabric-picker {
    width: 17%;
    top: 46%
  }

  .sole-picker {
    left: 5%
  }

  .fabric-picker {
    right: 5%
  }

  

  

  

  

  

  

  

  

  .showcase-heading {
    top: 20%
  }

  .start-design {
    top: 24%
  }

  

  

  
}

@media(max-width:760px) {
  .showcase {
    height: auto;
    min-height: 0;
    padding: 155px 6% 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 27px 24px
  }

  

  

  

  

  

  

  

  

  

  

  .showcase-texture {
    width: 170%;
    height: 100%;
    left: -35%;
    top: 0;
    object-fit: cover
  }

  .showcase-heading {
    position: static;
    grid-column: 1
  }

  .showcase-heading p {
    font-size: 10px
  }

  .showcase-heading h1 {
    font-size: 28px;
    margin-top: 10px;
    letter-spacing: 1px
  }

  .showcase-heading i {
    width: 42px;
    margin-top: 12px
  }

  .start-design {
    position: static;
    justify-self: end;
    align-self: center;
    padding: 7px 18px;
    font-size: 12px;
    gap: 7px
  }

  .showcase-product {
    position: relative;
    grid-column: 1/-1;
    left: auto;
    top: auto;
    transform: none;
    width: 64%;
    height: auto;
    aspect-ratio: 493.554/571;
    margin: 0 auto;
    min-height: 0
  }

  .hero-reference {
    min-width: 145%
  }

  .hero-arrow {
    top: 350px;
    width: 32px;
    height: 32px
  }

  .arrow-prev {
    left: 8%
  }

  .arrow-next {
    left: auto;
    right: 8%
  }

  #hero-reference-label {
    position: static;
    grid-column: 1/-1;
    transform: none;
    font-size: 11px;
    text-align: center;
    margin-top: -16px
  }

  .sole-picker,
.fabric-picker {
    position: static;
    width: 100%;
    align-self: start
  }

  .sole-picker h2,
.fabric-picker h2 {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 14px
  }

  .hero-swatches {
    gap: 6px
  }

  .sole-options {
    gap: 8px
  }

  .sole-options [role="button"] {
    width: calc((100% - 8px)/2)
  }

  .showcase-watermark {
    font-size: 18vw;
    bottom: 4px
  }

  .showcase-dots {
    display: none
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .designer-toolbar {
    width: 90%;
    height: 65px;
    gap: 8px
  }

  .designer-toolbar>span {
    font-size: 10px;
    letter-spacing: 0
  }

  .designer-toolbar [role="button"] {
    font-size: 11px
  }

  .designer-disclaimer {
    font-size: 10px
  }
}

/* Inline customization within the original textile hero. */
.showcase {
  height: auto;
  min-height: 56.25vw;
  display: block;
  padding: 180px 0 66px
}

.showcase-heading {
  position: relative;
  left: auto;
  top: auto;
  width: 83.3333%;
  margin: 0 auto 30px;
  transform: none
}

.showcase-heading p {
  font-size: 12px;
  letter-spacing: 2px
}

.showcase-heading h1 {
  font-size: 36px;
  margin-top: 10px
}

.showcase-heading i {
  margin-top: 16px;
  width: 50px
}

.start-design {
  top: 215px;
  right: 8.3333%;
  font-size: 13px;
  padding: 6px 23px
}

.designer {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  background: transparent;
  overflow: visible;
  padding: 0;
  overscroll-behavior: auto
}

.designer .workspace {
  width: 83.3333%;
  background: transparent;
  border: 0;
  scroll-margin-top: 20px
}

.designer .steps {
  height: 58px;
  border-top: 1px solid #a2877440;
  border-bottom: 1px solid #a2877440
}

.designer .step.active {
  background: #ffffff35
}

.designer .editor {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr)
}

.designer .stage {
  background: transparent;
  min-height: 520px;
  padding: 26px 34px 22px 0
}

.designer .stage h2 {
  font-size: 23px
}

.designer .visual {
  height: 250px;
  margin-top: 4px
}

.designer .config {
  background: #ffffff42;
  border-left: 1px solid #a2877430;
  padding: 25px 28px 22px
}

.designer #panel {
  min-height: 390px
}

.designer .watermark {
  display: none
}

.designer .model {
  background: #ffffff30
}

.designer .model.selected {
  background: #ffffff66
}

.designer .note,
.designer .review-warning {
  background: #ffffff50
}

.designer .summary-bar {
  border-color: #a2877440;
  padding: 18px 0
}

.designer-disclaimer {
  width: 83.3333%;
  margin: 6px auto 0;
  text-align: left;
  color: #807267;
  font-size: 11px
}

@media(min-width:1650px) {
  .showcase {
    padding-top: 190px
  }

  .showcase-heading {
    margin-bottom: 32px
  }

  .showcase-heading h1 {
    font-size: 42px
  }

  .start-design {
    top: 230px
  }

  .designer .stage {
    min-height: 565px;
    padding-right: 44px
  }

  .designer .visual {
    height: 290px
  }

  .designer .config {
    padding: 28px 36px
  }

  .designer #panel {
    min-height: 420px
  }
}

@media(max-width:1100px) {

  .designer .workspace,
.showcase-heading,
.designer-disclaimer {
    width: 88%
  }

  .start-design {
    right: 6%
  }

  .designer .editor {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr)
  }

  .designer .stage {
    padding-right: 20px
  }

  .designer .config {
    padding: 23px 20px
  }
}

@media(max-width:760px) {
  .showcase {
    padding: 125px 0 36px;
    min-height: 0;
    display: block
  }

  .showcase-heading {
    margin-bottom: 24px;
    width: 88%
  }

  .showcase-heading p {
    font-size: 9px
  }

  .showcase-heading h1 {
    font-size: 27px;
    margin-top: 8px
  }

  .showcase-heading i {
    margin-top: 12px;
    width: 36px
  }

  .start-design {
    position: absolute;
    top: 156px;
    right: 6%;
    font-size: 11px;
    padding: 3px 15px
  }

  .designer .workspace {
    width: 88%
  }

  .designer .steps {
    height: 60px
  }

  .designer .editor {
    display: flex;
    flex-direction: column
  }

  .designer .stage {
    min-height: 360px;
    padding: 22px 0 18px
  }

  .designer .visual {
    height: 175px;
    margin-top: 0
  }

  .designer .stage h2 {
    font-size: 21px
  }

  .designer .stage-caption {
    font-size: 9px
  }

  .designer .config {
    padding: 23px 18px 20px;
    border-left: 0;
    border-top: 1px solid #a2877430
  }

  .designer #panel {
    min-height: 0
  }

  .designer .summary-bar {
    padding: 20px 0
  }

  .designer-disclaimer {
    width: 88%;
    font-size: 10px;
    line-height: 1.9
  }

  .showcase-texture {
    height: 100%;
    width: 150%;
    object-fit: cover
  }

  .showcase-watermark {
    font-size: 22vw
  }
}

/* Desktop viewport: keep preview, controls and actions on one screen. */
@media(min-width:1101px) {
  .showcase {
    height: 100svh;
    min-height: 720px;
    padding: 140px 0 12px;
    display: flex;
    flex-direction: column
  }

  .showcase-heading,
.designer .workspace,
.designer-disclaimer {
    width: calc(100% - 120px);
    max-width: 1800px
  }

  .showcase-heading {
    flex: none;
    margin: 0 auto 18px
  }

  .showcase-heading p {
    font-size: 11px
  }

  .showcase-heading h1 {
    font-size: 30px;
    line-height: 1.35;
    margin-top: 6px
  }

  .showcase-heading i {
    margin-top: 12px
  }

  .start-design {
    top: 163px;
    right: max(60px, calc((100% - 1800px)/2));
    padding: 4px 22px
  }

  .designer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column
  }

  .designer .workspace {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: 48px minmax(0, 1fr) 66px
  }

  .designer .steps {
    height: 48px
  }

  .designer .editor {
    min-height: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr)
  }

  .designer .stage {
    min-height: 0;
    padding: 18px 30px 12px 0
  }

  .designer .stage h2 {
    font-size: 22px;
    margin: 3px 0
  }

  .designer .stage-head p {
    font-size: 10px
  }

  .designer .view-switch {
    margin-top: 0
  }

  .designer .visual {
    flex: 1;
    min-height: 0;
    height: auto;
    margin: 0;
    container-type: size
  }

  .designer .visual .shoe-photo {
    width: min(100cqw, calc(100cqh * 2.773));
    height: auto;
    max-width: 100%
  }

  .designer .visual .shoe-photo.cold {
    width: min(100cqw, calc(100cqh * 3.43))
  }

  .designer .stage-caption {
    flex: none;
    margin: 4px 0 10px;
    font-size: 10px
  }

  .designer .parts {
    flex: none
  }

  .designer .part {
    padding: 4px 12px;
    font-size: 11px
  }

  .designer .stage-foot {
    flex: none;
    padding-top: 12px;
    margin-top: 0
  }

  .designer .config {
    min-height: 0;
    padding: 18px 24px 12px
  }

  .designer #panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b6a18f transparent;
    padding-right: 7px
  }

  .designer .config h2 {
    font-size: 22px
  }

  .designer .subcopy {
    margin-bottom: 14px
  }

  .designer .model {
    padding: 12px
  }

  .designer .model .shoe-photo {
    max-width: 220px;
    margin: 12px auto
  }

  .designer .note {
    margin-top: 14px;
    padding: 10px 12px
  }

  .designer .tiny {
    margin-top: 10px
  }

  .designer .panel-footer {
    flex: none;
    margin-top: 12px;
    padding-top: 10px
  }

  .designer .swatches {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-height: 170px
  }

  .designer .summary-bar {
    padding: 10px 0;
    min-height: 0
  }

  .designer-disclaimer {
    flex: none;
    margin: 4px auto 0;
    padding: 0;
    font-size: 10px;
    line-height: 18px
  }
}

@media(min-width:1101px) and (max-height:800px) {
  .showcase {
    padding-top: 128px
  }

  .showcase-heading {
    margin-bottom: 12px
  }

  .showcase-heading h1 {
    font-size: 26px
  }

  .showcase-heading i {
    margin-top: 8px
  }

  .start-design {
    top: 145px
  }

  .designer .stage {
    padding-top: 12px
  }

  .designer .config {
    padding-top: 12px
  }

  .designer .model .shoe-photo {
    max-width: 170px;
    margin: 8px auto
  }
}

/* Marked revision: steps align with the configuration column. */
.designer .summary-bar {
  justify-content: flex-end
}

@media(min-width:1101px) {
  .designer .workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr)
  }

  .designer .steps {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    background: #ffffff25
  }

  .designer .step {
    gap: 5px;
    font-size: 12px;
    white-space: nowrap
  }

  .designer .step .num {
    font-size: 10px
  }

  .designer .step.active:after {
    left: 10%;
    right: 10%
  }

  .designer .editor {
    grid-column: 1/-1;
    grid-row: 2
  }

  .designer .summary-bar {
    grid-column: 2;
    grid-row: 3;
    border-top: 0
  }

  .designer .stage-head {
    align-items: center
  }

  .designer .stage h2 {
    margin: 0
  }

  .designer .stage {
    padding-bottom: 22px
  }
}

@media(max-width:760px) {
  .designer .summary-bar {
    align-items: stretch
  }
}

/* Browser review: emphasize the single set of part selectors. */
.designer .part-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  border: 0
}

.designer .part-tabs [role="button"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 6px;
  border: 1px solid #b9a593;
  border-radius: 5px;
  background: #ffffff50;
  color: #725f50;
  font-size: 16px;
  font-weight: 500;
  text-align: center
}

.designer .part-tabs [role="button"].active {
  background: #a28774;
  border-color: #a28774;
  color: white;
  font-weight: 600;
  box-shadow: 0 3px 8px #80665020
}

.designer .part-tabs [role="button"]:hover:not(.active) {
  background: #ffffff90
}

@media(max-width:760px) {
  .designer .part-tabs {
    gap: 6px;
    margin-bottom: 18px
  }

  .designer .part-tabs [role="button"] {
    font-size: 14px;
    min-height: 44px
  }
}

.emb-upload {
  padding: 14px;
  border: 1px dashed #b9a593;
  background: #ffffff40;
  border-radius: 5px
}

.emb-upload input {
  background: #ffffff70;
  font-size: 12px;
  padding: 8px;
  max-width: 100%
}

.emb-upload input::file-selector-button {
  border: 0;
  border-radius: 4px;
  background: #a28774;
  color: white;
  padding: 8px 12px;
  margin-right: 10px;
  cursor: pointer
}

.emb-upload p {
  font-size: 11px;
  color: #806e60;
  line-height: 1.8;
  margin-top: 8px
}

.emb-image-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  min-width: 0
}

.emb-image-preview img {
  width: 100px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd3c9;
  border-radius: 4px
}

.emb-image-preview>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0
}

.emb-image-preview span {
  font-size: 12px;
  overflow-wrap: anywhere
}

.emb-image-preview .outline {
  font-size: 11px;
  padding: 6px 14px;
  min-height: 32px
}

#sole-choice {
  min-height: 48px;
  font-size: 14px;
  background: #ffffffbf;
  border-color: #b9a593;
  padding: 12px 14px
}

.designer .panel-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr
}

.designer .panel-footer #prev {
  justify-self: start
}

.designer .panel-footer #next {
  justify-self: end
}

.sole-heading {
  margin-top: 0
}

.sole-swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px 9px;
  padding: 6px 4px 10px;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-bottom: 18px
}

.sole-swatch {
  padding: 0;
  font-size: 10px;
  color: #847568;
  text-align: center
}

.sole-sample {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid white;
  outline: 1px solid #e9e1da;
  border-radius: 50%;
  background: #f5f5f5;
  margin-bottom: 7px
}

.sole-sample img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.sole-swatch:hover .sole-sample {
  outline-color: #a28774
}

.sole-swatch.selected .sole-sample {
  outline: 2px solid #a28774
}

.sole-swatch.selected .sole-sample:after {
  content: '✓';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0002;
  color: white;
  text-shadow: 0 1px 4px #000;
  font-size: 18px
}

.sole-swatch.selected {
  color: #70543f
}

@media(max-width:760px) {
  .sole-swatches {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }
}

.history-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: none;
  color: #80766e
}

.history-tools>span {
  font-size: 11px;
  line-height: 1.3
}

.history-buttons {
  display: flex;
  gap: 3px
}

.history-buttons [role="button"] {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 4px;
  background: #ffffff60;
  border: 1px solid #a99e94;
  border-radius: 3px;
  color: #65594f
}

.history-buttons svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.history-buttons [role="button"][disabled] {
  opacity: .35
}

.history-buttons [role="button"]:hover:not([disabled]) {
  background: #ffffffb0;
  border-color: #8d735d
}

.designer .view-switch {
  margin-top: 10px
}

.designer .stage>.view-switch {
  align-self: center;
  flex: none;
  margin: 12px 0 0
}

/* Embroidery: customer artwork, independent left/right brief and production intent. */
.emb-enable {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #b5a59655;
  padding-bottom: 10px;
  margin-bottom: 12px
}

.emb-enable .checklabel {
  margin: 0;
  font-size: 15px
}

.emb-enable>span {
  font-size: 10px;
  color: #94806f
}

.emb-welcome {
  padding: 42px 12px;
  color: #806e60
}

.emb-welcome>span {
  font-size: 21px
}

.emb-welcome p {
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.9
}

.emb-top-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px
}

.emb-top-controls .label {
  margin: 0 0 7px
}

.emb-segment,
.emb-foot-tabs,
.emb-source-tabs {
  display: flex;
  gap: 5px
}

.emb-segment [role="button"] {
  flex: 1;
  border: 1px solid #c5b7aa;
  padding: 7px 4px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap
}

.emb-segment [role="button"].active,
.emb-foot-tabs [role="button"].active {
  background: #a28774;
  color: white;
  border-color: #a28774
}

.emb-foot-tabs {
  margin-top: 12px
}

.emb-foot-tabs [role="button"] {
  flex: 1;
  border: 1px solid #c5b7aa;
  font-size: 12px;
  padding: 7px;
  border-radius: 4px
}

.emb-section-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #b5a59655;
  margin: 15px 0 12px
}

.emb-section-tabs [role="button"] {
  font-size: 13px;
  color: #8b7b6c;
  padding: 0 0 9px;
  border-bottom: 2px solid transparent
}

.emb-section-tabs [role="button"].active {
  color: #70543f;
  border-color: #a28774;
  font-weight: 600
}

.emb-source-tabs {
  padding: 3px;
  border-radius: 24px;
  background: #b6a18f20;
  margin-bottom: 12px
}

.emb-source-tabs [role="button"] {
  flex: 1;
  border-radius: 20px;
  padding: 6px 8px;
  font-size: 12px;
  color: #8b7b6c
}

.emb-source-tabs [role="button"].active {
  background: #fff9;
  color: #70543f
}

.emb-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #8b7b6c;
  margin-bottom: 10px
}

.emb-library-heading select {
  width: 105px;
  padding: 5px 8px;
  font-size: 11px
}

.emb-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin
}

.emb-art-card {
  position: relative;
  min-width: 0;
  text-align: left;
  border: 1px solid #d8cdc2;
  border-radius: 5px;
  padding: 7px;
  background: #ffffff65
}

.emb-art-card img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #fffc;
  border-radius: 3px;
  margin-bottom: 7px
}

.emb-art-card>span {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.emb-art-card small {
  font-size: 9px;
  color: #928173;
  display: block;
  margin-top: 2px
}

.emb-art-card.selected {
  border-color: #9a775c;
  box-shadow: 0 0 0 1px #9a775c;
  background: #ffffffb0
}

.emb-art-card i {
  position: absolute;
  right: 4px;
  top: 4px;
  background: #a28774;
  color: white;
  width: 19px;
  height: 19px;
  text-align: center;
  line-height: 19px;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal
}

.emb-reference {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 9px 0;
  border-top: 1px solid #c5b7aa55
}

.emb-reference strong {
  font-size: 12px;
  font-weight: 500
}

.emb-reference span {
  display: block;
  color: #8b7b6c;
  font-size: 10px
}

.emb-next-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9a593;
  border-radius: 4px;
  font-size: 12px;
  color: #806650;
  background: #ffffff30;
  margin-top: 12px
}

.emb-spec-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 12px
}

.emb-spec-heading strong {
  font-weight: 500;
  overflow-wrap: anywhere
}

.emb-spec-heading>span {
  color: #928173;
  white-space: nowrap;
  font-size: 11px
}

.emb-size-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 8px;
  font-size: 12px;
  color: #776c62
}

.emb-dimensions {
  display: grid;
  grid-template-columns: 1fr 16px 1fr;
  gap: 8px;
  align-items: end
}

.emb-dimensions label {
  font-size: 10px;
  color: #8b7b6c
}

.emb-dimensions input {
  margin-top: 4px
}

.emb-dimensions>span {
  align-self: center;
  text-align: center;
  margin-top: 18px;
  color: #a28774
}

.emb-error {
  font-size: 11px;
  color: #9b493b;
  margin-top: 4px
}

.emb-production-note {
  font-size: 10px;
  color: #8b7b6c;
  line-height: 1.8;
  margin-top: 12px
}

.emb-source-image {
  display: block;
  max-width: 100%;
  width: 240px;
  height: 220px;
  object-fit: contain;
  margin: auto
}

.emb-source-filename {
  overflow-wrap: anywhere;
  font-size: 11px
}

#emb-board {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 15px
}

.emb-board-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: #786655;
  font-size: 14px;
  flex: none
}

.emb-board-heading small {
  font-size: 11px;
  color: #928173
}

.emb-pair-preview {
  display: flex;
  gap: 24px;
  min-height: 0;
  max-height: 75%;
  justify-content: center
}

.emb-foot-preview {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #b5a59655;
  padding-top: 12px
}

.emb-foot-preview>span {
  font-size: 11px;
  color: #928173;
  margin-bottom: 12px
}

.emb-art-stage {
  height: clamp(100px, 26vh, 280px);
  max-height: 100%;
  width: 100%;
  min-height: 0;
  background: #ffffff55;
  border-radius: 50% 50% 8px 8px;
  display: grid;
  place-items: center;
  padding: 20px
}

.emb-art-stage img {
  max-height: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  min-height: 0
}

.emb-art-empty {
  font-size: 13px;
  line-height: 2;
  color: #ac9988;
  text-align: center
}

.emb-foot-preview strong {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  overflow-wrap: anywhere
}

.emb-foot-preview p {
  font-size: 11px;
  color: #928173;
  margin-top: 5px;
  text-align: center
}

.emb-board-caption {
  font-size: 10px;
  line-height: 1.8;
  color: #928173;
  text-align: center;
  margin-top: 18px;
  flex: none
}

.emb-review {
  margin-top: 18px;
  border-top: 1px solid #c5b7aa
}

.emb-review-title {
  padding: 12px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between
}

.emb-review-title span {
  font-size: 11px;
  color: #928173
}

.emb-review-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #c5b7aa55
}

.emb-review-item img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #fff8
}

.emb-review-item>div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere
}

.emb-review-item strong {
  font-size: 12px;
  font-weight: 500
}

.emb-review-item p {
  font-size: 11px;
  color: #806e60;
  margin-top: 4px
}

.emb-review-item small {
  font-size: 10px;
  color: #928173
}

.designer .visual:has(#emb-board:not([hidden])) {
  mix-blend-mode: normal
}

@media(min-width:1101px) and (max-height:800px) {
  .emb-library {
    max-height: 190px
  }

  .emb-art-card img {
    height: 56px
  }

  .emb-art-stage {
    height: 170px;
    padding: 14px
  }

  .emb-pair-preview {
    gap: 18px
  }

  .emb-board-caption {
    margin-top: 12px
  }
}

@media(max-width:760px) {
  .emb-top-controls {
    gap: 10px
  }

  .emb-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 270px
  }

  .emb-library-heading>span {
    font-size: 9px
  }

  .emb-enable>span {
    font-size: 9px
  }

  .designer .visual:has(#emb-board:not([hidden])) {
    height: 330px;
    flex: none
  }

  #emb-board {
    padding: 10px 0
  }

  .emb-art-stage {
    height: 160px;
    padding: 14px
  }

  .emb-pair-preview {
    gap: 12px
  }

  .emb-board-heading {
    font-size: 12px
  }

  .emb-board-caption {
    font-size: 9px
  }

  .emb-foot-preview strong {
    font-size: 11px
  }

  .emb-foot-preview p {
    font-size: 10px
  }

  .emb-size-title {
    gap: 6px
  }

  .emb-size-title .text-button {
    font-size: 10px
  }
}

.designer .visual:has(#emb-board:not([hidden])) {
  width: 100%;
  margin-left: 0;
  margin-right: 0
}

/* Match the marked desktop operation area; keep long step content inside it. */
@media(min-width:1101px) {
  .designer .config {
    margin: 14px -14px 4px 0;
    padding-top: 0;
    padding-bottom: 0;
    min-width: 0;
    min-height: 0
  }

  .designer #panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto
  }

  .designer .panel-footer {
    min-height: 52px;
    margin-top: 10px;
    padding-top: 8px;
    padding-bottom: 0
  }
}

/* Square material cards, following the supplied sole selector reference. */
.sole-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  max-height: none;
  overflow: visible;
  padding: 4px;
  margin-bottom: 22px
}

.sole-card-grid .sole-swatch {
  font-size: 13px;
  color: #716458
}

.sole-card-grid .sole-sample {
  border-radius: 8px;
  border: 2px solid transparent;
  outline: none;
  background: #fff9;
  margin-bottom: 7px;
  padding: 5px;
  transition: border-color .15s, box-shadow .15s
}

.sole-card-grid .sole-sample img {
  border-radius: 4px;
  object-fit: contain
}

.sole-card-grid .sole-swatch:hover .sole-sample {
  border-color: #c5b19f
}

.sole-card-grid .sole-swatch.selected .sole-sample {
  border-color: #a28774;
  outline: none;
  box-shadow: 0 0 0 2px #a2877425;
  background: #fff
}

.sole-card-grid .sole-swatch.selected .sole-sample:after {
  display: none
}

.sole-card-grid .sole-swatch.selected {
  color: #70543f;
  font-weight: 600
}

@media(max-width:760px) {
  .sole-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px
  }

  .sole-card-grid .sole-swatch {
    font-size: 12px
  }
}

/* Keep the part definitions in the marked lower area of the model step. */
.designer #panel.model-selection-panel {
  display: flex;
  flex-direction: column
}

.model-selection-panel>* {
  flex-shrink: 0
}

.part-guide {
  margin: auto 20px 16px;
  padding-top: 28px;
  color: #7b6e63;
  font-size: 13px;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: break-word
}

.part-guide strong {
  font-weight: 600;
  color: #66594f
}

.part-guide p {
  margin: 0
}

.part-guide .part-guide-confirm {
  margin-top: 5px;
  color: #918174
}

@media(max-width:760px) {
  .part-guide {
    margin: 22px 0 0;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.9
  }

  .sole-heading {
    gap: 8px
  }

  .sole-heading>span:last-child {
    font-size: 10px
  }
}

.emb-simple-position {
  margin-bottom: 20px
}

.emb-simple-position .label {
  margin-top: 0
}

.emb-simple-position .emb-segment [role="button"] {
  font-size: 14px;
  min-height: 40px
}

.emb-single-preview {
  width: 100%;
  max-width: 430px;
  align-self: center
}

.emb-single-preview .emb-foot-preview {
  border-top: 0;
  padding-top: 0
}

.emb-single-preview .emb-art-stage {
  border-radius: 12px;
  height: clamp(170px, 32vh, 340px)
}

@media(max-width:760px) {
  .emb-single-preview {
    max-width: 260px
  }

  .emb-single-preview .emb-art-stage {
    height: 200px
  }
}

/* A: stable scrolling options area; definitions and navigation stay outside. */
.designer .config {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto 52px;
  gap: 16px;
  overflow: hidden;
  padding-top: 28px
}

.designer #panel {
  display: block;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b6a18f transparent;
  padding-right: 7px
}

.designer .config>.part-guide {
  margin: 24px 18px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.85
}

.designer .config>.panel-footer {
  margin: 0;
  min-height: 52px
}

.designer #panel .emb-library,
.designer #panel .swatches {
  max-height: none;
  overflow: visible
}

@media(max-width:1100px) {
  .designer .config {
    height: 620px;
    min-height: 0
  }

  .designer #panel {
    min-height: 0
  }
}

@media(max-width:760px) {
  .designer .config {
    height: 650px;
    padding-top: 22px;
    gap: 14px
  }

  .designer .config>.part-guide {
    margin: 10px 0 0;
    font-size: 12px
  }
}

/* Shared configuration / two-view presentation, November 2026. */
.stage .view-switch[hidden] {
  display: none !important
}

.stage .visual {
  mix-blend-mode: normal;
  min-height: 180px
}

.stage #diagram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.stage #diagram svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain
}

.angle-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #8b7867
}

.angle-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex: none;
  margin: 8px 0
}

.angle-card {
  width: 112px;
  padding: 6px 10px 9px;
  border: 1px solid #cbbbad;
  border-radius: 8px;
  background: #ffffff30;
  color: #786755;
  font-size: 12px
}

.angle-card.active {
  border-color: #a28774;
  background: #ffffff88;
  box-shadow: 0 0 0 1px #a28774
}

.angle-mini {
  display: block;
  height: 48px
}

.angle-mini svg {
  width: 100%;
  height: 100%
}

.preview-config-note {
  text-align: center;
  margin: 3px 0 10px;
  font-size: 11px;
  color: #887563;
  flex: none
}

.option-intro {
  margin-bottom: 20px
}

.option-intro h3,
.customer-form h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 5px 0 10px
}

.option-intro p {
  font-size: 12px;
  color: #8b7c70;
  margin: 0;
  line-height: 1.8
}

.sole-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px
}

.sole-option {
  position: relative;
  padding: 16px;
  border: 1px solid #cbbeb2;
  border-radius: 5px;
  background: #ffffff30;
  text-align: left;
  color: #51473f
}

.sole-option.selected,
.lining-option.selected {
  border-color: #a28774;
  background: #ffffff65;
  box-shadow: 0 0 0 1px #a28774
}

.sole-option strong,
.sole-option small {
  display: block
}

.sole-option small {
  font-size: 12px;
  color: #8b7c70;
  margin-top: 7px
}

.standard-sole-art {
  display: block;
  height: 88px
}

.standard-sole-art svg,
.standard-sole-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.custom-sole-icon {
  display: grid;
  place-items: center;
  height: 88px;
  font-size: 40px;
  font-weight: 200;
  color: #ac9580
}

.choice-check {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #a28774
}

.moq-notice {
  padding: 14px 16px;
  border-left: 2px solid #a28774;
  background: #ffffff50;
  margin: 18px 0
}

.moq-notice strong {
  font-size: 14px
}

.moq-notice span {
  display: block;
  font-size: 12px;
  color: #8c7d6f;
  margin-top: 6px
}

.lining-choice-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px
}

.lining-option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px;
  border: 1px solid #cbbeb2;
  border-radius: 5px;
  background: #ffffff30
}

.lining-option strong {
  font-size: 14px;
  font-weight: 500
}

.lining-option small {
  display: block;
  margin-top: 6px;
  color: #8b7c70
}

.lining-option i {
  margin-left: auto;
  color: #a28774;
  font-style: normal
}

.lining-texture {
  height: 48px;
  width: 48px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #fff
}

.lining-texture.linen {
  background: repeating-linear-gradient(0deg, #e7dcc5 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, #d5c6a9 0 2px, #e8dbc1 2px 4px)
}

.lining-texture.terry {
  background: radial-gradient(circle, #e5e5e1 1px, #c4c6c4 2px);
  background-size: 5px 5px
}

.lining-texture.custom {
  display: grid;
  place-items: center;
  background: #eee8df;
  font-size: 24px;
  color: #a28774
}

.review-row>span:last-child {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 68%;
  text-align: right
}

.customer-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #cbbeb2
}

.customer-form input {
  width: 100%;
  box-sizing: border-box
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px
}

#design-errors {
  font-size: 13px;
  line-height: 1.8;
  color: #956147
}

#design-errors:empty {
  display: none
}

#design-errors ul {
  padding-left: 20px
}

#modal.design-sheet-modal .modal-panel {
  width: min(1000px, 94vw);
  max-width: 94vw
}

.sheet-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.sheet-modal-heading .primary {
  text-decoration: none;
  white-space: nowrap
}

.design-sheet-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px
}

.sheet-modal-heading p {
  font-size: 12px
}

@media(max-width:760px) {
  .angle-card {
    width: 96px
  }

  .angle-mini {
    height: 38px
  }

  .stage .visual {
    min-height: 240px
  }

  .sole-option {
    padding: 10px
  }

  .sheet-modal-heading {
    display: block
  }

  .sheet-modal-heading .primary {
    display: inline-block;
    margin-top: 8px
  }
}

#diagram .shoe-decal {
  cursor: grab;
  touch-action: none;
  user-select: none
}

#diagram .shoe-decal.dragging {
  cursor: grabbing
}

.decal-rotation-controls {
  padding: 12px 14px;
  margin: 12px 0 18px;
  background: #ffffff45;
  border: 1px solid #cbbbad;
  border-radius: 6px
}

.rotation-heading {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #715b48
}

.rotation-heading output {
  font-variant-numeric: tabular-nums
}

.rotation-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px
}

.rotation-inputs [role="button"] {
  flex: none;
  padding: 7px 9px;
  border: 1px solid #c5b3a2;
  border-radius: 5px;
  font-size: 12px
}

.rotation-inputs input[type=range] {
  min-width: 0;
  flex: 1;
  width: 100%;
  padding: 0;
  accent-color: #a28774;
  cursor: pointer
}

.decal-rotation-controls p {
  font-size: 11px;
  line-height: 1.6;
  color: #8b7765;
  margin: 10px 0 0
}

.decal-rotation-controls {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ece6df;
  box-shadow: 0 3px 12px #82715e0c
}

.rotation-inputs [role="button"][disabled],
.rotation-inputs input:disabled {
  opacity: .45;
  cursor: not-allowed
}

/* ===== buttons.css ===== */
/* SRC button system. Reference: the restore-draft action, 41px / 12px. */
:root {
  --button-height: 41px;
  --button-font: 12px;
  --button-radius: 24px;
  --button-gap: 12px;
  --button-padding: 20px;
  --button-border: #c6b4a4;
  --button-ink: #806650;
  --button-fill: #a28774
}

body .preview-rotation {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 8px;
  width: 208px;
  max-width: 100%;
  z-index: 4;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cbbbad;
  border-radius: 8px;
  background: #f0ebe4ed;
  box-shadow: 0 3px 12px #82715e0c
}

body .preview-rotation .rotation-heading {
  font-size: 12px;
  line-height: 18px
}

body .preview-rotation .rotation-inputs {
  gap: 8px;
  margin-top: 5px
}

body .preview-rotation .rotation-inputs [role="button"] {
  width: 41px;
  min-width: 41px;
  padding: 0;
  border-radius: 8px;
  font-size: 19px
}

body .preview-rotation #rotation-hint {
  font-size: 10px;
  line-height: 16px;
  margin: 4px 0 0
}

@media(max-width:760px) {
  body .designer .visual {
    padding-bottom: 116px;
    min-height: 356px
  }

  body .preview-rotation {
    bottom: 0;
    right: 0
  }
}

button,
[role="button"],
a.primary,
a.outline,
a.text-button,
a.member-demo,
.start-design {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease
}

body .primary,
body .outline,
body .text-button,
body .rotation-inputs [role="button"] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  min-height: var(--button-height);
  padding: 0 var(--button-padding);
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: var(--button-font);
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  gap: 8px;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
  margin-top: 0;
}

body .primary,
body .outline {
  min-width: 104px
}

body .primary {
  background: var(--button-fill);
  color: #fff;
  border-color: var(--button-fill)
}

body .primary:hover:not([disabled]) {
  background: #8e725d;
  border-color: #8e725d
}

body .outline,
body .rotation-inputs [role="button"] {
  border-color: var(--button-border);
  color: var(--button-ink);
  background: transparent
}

body .outline:hover:not([disabled]),
body .rotation-inputs [role="button"]:hover:not([disabled]) {
  background: #fff6;
  border-color: #a28774
}

body .text-button {
  color: var(--button-ink);
  padding-inline: 12px
}

body .text-button:hover:not([disabled]) {
  background: #ffffff60
}

body [role="button"][disabled] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none
}

body .confirm-actions,
body .review-actions,
body .btn-row,
body .summary-actions {
  align-items: center;
  gap: var(--button-gap);
  flex-wrap: wrap
}

body .confirm-actions {
  margin-top: 24px
}

body .confirm-actions .primary,
body .confirm-actions .outline,
body .sheet-modal-heading .primary {
  margin: 0
}

body .summary-actions>[role="button"] {
  flex: 0 0 auto
}

body .rotation-inputs {
  gap: var(--button-gap)
}

body .rotation-inputs [role="button"] {
  min-width: 64px;
  padding-inline: 12px
}

body .history-buttons {
  gap: 8px
}

body .history-buttons [role="button"],
body .close,
body #enlarge {
  width: 41px;
  height: 41px;
  min-width: 41px;
  min-height: 41px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  line-height: 1
}

body .history-buttons [role="button"] {
  border: 1px solid var(--button-border)
}

body .close {
  right: 8px;
  top: 8px;
  font-size: 24px
}

body .close:hover,
body #enlarge:hover {
  background: #a2877414
}

/* Segmented choices retain their role, using the same height and type scale. */
body .designer .part-tabs,
body .emb-segment {
  gap: 8px
}

body .designer .part-tabs [role="button"],
body .emb-simple-position .emb-segment [role="button"] {
  height: 41px;
  min-height: 41px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  border-radius: 8px;
}

body .designer .part-tabs [role="button"].active {
  font-weight: 500;
  box-shadow: none
}

body .designer .step {
  font-size: 12px;
  line-height: 18px;
  gap: 6px;
  min-height: 41px;
  padding: 0 6px
}

body .designer .step .num {
  font-size: 10px
}

/* Image selectors remain cards, rather than compressing product images into actions. */
body .model,
body .sole-option,
body .lining-option,
body .emb-art-card,
body .angle-card {
  border-radius: 8px
}

body .angle-card {
  font-size: 12px;
  line-height: 18px;
  padding: 8px 12px
}

body .emb-art-card>span,
body .sole-option strong,
body .lining-option strong {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400
}

@media(max-width:760px) {

  body .designer .part-tabs [role="button"],
body .emb-simple-position .emb-segment [role="button"] {
    padding-inline: 6px
  }

  body .designer .step {
    font-size: 10px;
    gap: 2px
  }

  body .summary-actions {
    justify-content: flex-end;
    gap: 8px
  }

  body .summary-actions>[role="button"] {
    flex: 1 1 auto;
    padding-inline: 16px
  }

  body .confirm-actions {
    gap: 8px
  }

  body .confirm-actions .primary,
body .confirm-actions .outline {
    padding-inline: 16px
  }
}

/* Preview controls share one baseline and an 84px card height. */
body .angle-switch {
  position: relative;
  min-height: 84px;
  align-items: end
}

body .angle-card {
  height: 84px;
  min-height: 84px
}

body .angle-switch .preview-rotation {
  top: auto;
  bottom: 0;
  right: 0;
  height: 84px;
  padding: 8px 12px
}

body .preview-rotation #rotation-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

@media(min-width:761px) and (max-width:1600px) {
  body .angle-switch {
    justify-content: flex-start;
    padding-right: 220px;
    gap: 8px
  }

  body .angle-card {
    width: 96px
  }
}

@media(max-width:760px) {
  body .designer .visual {
    padding-bottom: 0;
    min-height: 240px
  }

  body .angle-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 164px;
    gap: 6px
  }

  body .angle-card {
    width: 100%;
    min-width: 0;
    padding: 8px 4px
  }

  body .angle-switch .preview-rotation {
    position: relative;
    width: 164px;
    padding: 8px
  }

  body .preview-rotation .rotation-inputs {
    gap: 4px
  }

  body .angle-mini {
    height: 48px
  }
}

body .decal-tool-tabs {
  display: flex;
  gap: 12px;
  height: 18px;
  padding-right: 38px
}

body .preview-rotation .decal-tool-tabs [role="button"] {
  height: 18px;
  min-height: 18px;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 11px;
  line-height: 18px;
  color: #8b7b6c
}

body .preview-rotation .decal-tool-tabs [role="button"][aria-pressed=true] {
  color: #5b4434;
  border-bottom: 1px solid #a28774
}

body .decal-size-panel>output,
body .decal-turn-panel .rotation-heading {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 11px;
  line-height: 18px
}

body .decal-turn-panel .rotation-heading label {
  display: none
}

body .preview-rotation [hidden] {
  display: none !important
}

/* ===== member.css ===== */
.showcase.member-mode {
  height: auto;
  min-height: 100svh;
  padding: 155px 0 60px;
  overflow: hidden
}

.member-mode .showcase-watermark {
  opacity: .35
}

.member-mode .showcase-texture {
  height: 100%;
  object-fit: cover
}

#member-page {
  position: relative;
  z-index: 2;
  width: min(1240px, 90%);
  margin: auto;
  color: #514b45
}

.member-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 600px;
  background: #ffffff22;
  border: 1px solid #a2877429;
  border-radius: 12px;
  overflow: hidden
}

.member-story {
  position: relative;
  padding: 56px 48px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(140deg, #ece5dc70, #d1c2b34d)
}

.member-story h1 {
  font-size: 36px;
  line-height: 1.6;
  letter-spacing: 2px;
  margin: 22px 0
}

.member-story>p:not(.eyebrow) {
  font-size: 14px;
  color: #897766;
  line-height: 2.2
}

.member-art {
  position: relative;
  aspect-ratio: 832/300;
  margin: 52px -12px 40px;
  overflow: hidden;
  mix-blend-mode: multiply
}

.member-art img {
  position: absolute;
  width: 100%;
  max-width: none;
  top: -133.33%;
  filter: brightness(1.09)
}

.member-story-foot {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 2px;
  color: #998373
}

.member-form-card {
  padding: 42px 52px;
  background: #faf8f4b3
}

.member-form-card h2 {
  font-size: 28px;
  font-weight: 400;
  margin: 12px 0
}

.member-intro {
  font-size: 13px;
  color: #8d7d70;
  line-height: 1.9;
  margin-bottom: 24px
}

.member-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #d7ccc1;
  margin-bottom: 24px
}

.member-tabs [role="button"] {
  min-height: 41px;
  font-size: 13px;
  padding: 0 0 12px;
  position: relative;
  color: #978779
}

.member-tabs [role="button"].active {
  color: #806650
}

.member-tabs [role="button"].active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 2px;
  left: 0;
  right: 0;
  background: #a28774
}

.member-field {
  display: block;
  margin: 17px 0;
  font-size: 12px;
  color: #796b60
}

.member-field input {
  display: block;
  height: 44px;
  margin-top: 8px;
  border: 1px solid #cfc2b5;
  border-radius: 6px;
  background: #fff9;
  padding: 0 14px;
  font-size: 13px
}

.member-sms {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px
}

.member-sms input {
  margin: 0;
  min-width: 0;
  flex: 1
}

/* 获取验证码按钮：倒计时期间保持可见但不可点击 */
.member-sms [data-sms] {
  white-space: nowrap;
  min-width: 96px;
  text-align: center;
  transition: opacity .2s
}

.member-sms [data-sms][disabled] {
  cursor: not-allowed;
  opacity: .55
}

.member-form-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #998879;
  margin: 12px 0 22px
}

.member-form-links [role="button"],
.member-form-bottom [role="button"] {
  color: #806650;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 12px
}

.member-form-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: #958476;
  margin: 22px 0
}

.member-form-card .member-submit {
  width: 100%;
  margin-top: 10px
}

.member-form-card .member-demo {
  width: 100%;
  margin-top: 8px
}

.member-demo-note {
  font-size: 11px;
  text-align: center;
  margin-top: 22px;
  line-height: 1.8;
  color: #9e8c7b
}

.member-feedback {
  font-size: 12px;
  color: #996b4c;
  line-height: 1.8;
  margin-top: 12px;
  overflow-wrap: anywhere
}

.member-feedback:empty {
  display: none
}

.member-terms {
  font-size: 11px;
  color: #8d7d70;
  line-height: 1.8
}

.wechat-placeholder {
  min-height: 396px;
  padding: 8px 12px 16px;
  margin-top: 4px;
  box-sizing: border-box;
  border: 1px dashed #c6b4a4;
  border-radius: 8px;
  background: #fff6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px
}

.wechat-placeholder>span {
  font-size: 64px;
  line-height: 1;
  color: #c5b4a3
}

.wechat-placeholder strong {
  font-size: 16px;
  font-weight: 400
}

.wechat-placeholder p {
  font-size: 11px;
  color: #9a8776
}

.member-center {
  padding: 18px 0
}

.member-center-heading {
  padding: 0 0 30px;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #aa958344
}

.member-center-heading h1 {
  font-size: 30px;
  margin: 8px 0
}

.member-center-heading p:not(.eyebrow) {
  font-size: 13px;
  color: #897766
}

.member-center-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  margin-top: 30px
}

.member-side {
  align-self: start;
  padding: 30px 22px;
  background: #faf7f080;
  border: 1px solid #a2877433;
  border-radius: 10px;
  text-align: center
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d6c7b7;
  color: #fff;
  display: grid;
  place-items: center;
  font: 32px Georgia, serif;
  overflow: hidden;
  margin: 0 auto 14px
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.member-side>strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere
}

.member-tag {
  display: inline-block;
  color: #947b65;
  border: 1px solid #baa59260;
  border-radius: 20px;
  font-size: 10px;
  padding: 3px 10px;
  margin-top: 10px
}

.member-side nav {
  display: grid;
  gap: 8px;
  margin: 28px 0 18px
}

.member-side nav [role="button"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  color: #8b796a
}

.member-side nav [role="button"].active {
  background: #a28774;
  color: white
}

.member-center-body {
  padding: 28px 32px;
  background: #fbf9f3a8;
  border: 1px solid #a287742b;
  border-radius: 10px;
  min-height: 480px
}

.member-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px
}

.member-section-heading h2 {
  font-size: 23px;
  font-weight: 400
}

.member-section-heading p {
  font-size: 12px;
  color: #94816f;
  margin-top: 8px
}

.member-empty {
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 18px
}

.member-empty>span {
  font-size: 55px;
  color: #bfa78e
}

.member-empty h3 {
  font-size: 20px;
  font-weight: 400
}

.member-empty p {
  font-size: 12px;
  color: #9b8877;
  line-height: 1.8
}

.member-local-note {
  font-size: 11px;
  line-height: 1.8;
  color: #978574;
  margin-top: 20px
}

.member-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px
}

.member-record {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #d5c7b9;
  background: #fff5
}

.record-image {
  height: 180px;
  padding: 20px;
  background: #eee8df88
}

.record-image svg {
  width: 100%;
  height: 100%
}

.record-info {
  padding: 20px
}

.record-info>span {
  font-size: 10px;
  color: #a08b78
}

.record-info h3 {
  font-size: 17px;
  margin: 9px 0;
  font-weight: 400
}

.record-info p {
  font-size: 10px;
  color: #9c8978
}

.record-info>div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.member-detail-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px
}

.member-detail-views figure {
  margin: 0;
  padding: 16px;
  background: #e9e2d955;
  text-align: center;
  border-radius: 8px
}

.member-detail-views svg {
  width: 100%;
  height: 200px
}

.member-detail-views figcaption {
  font-size: 12px;
  color: #8b7561
}

.member-detail-table>div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid #d9cec2;
  padding: 13px 0;
  font-size: 12px
}

.member-detail-table span {
  color: #99836f
}

.member-detail-table strong {
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.member-center-body>#detail-resume {
  margin-top: 24px
}

.member-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap
}

.member-avatar-row .member-avatar {
  margin: 0
}

.member-avatar-row>span {
  font-size: 11px;
  color: #978574
}

.member-upload {
  position: relative;
  cursor: pointer;
  overflow: hidden
}

.member-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%
}

.member-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px
}

.profile-form {
  max-width: 660px
}

.profile-form>.primary {
  margin-top: 22px
}

.member-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8cbbf;
  padding: 24px 0;
  gap: 18px
}

.member-security-row strong {
  font-size: 15px;
  font-weight: 400
}

.member-security-row p {
  font-size: 12px;
  color: #9a8674;
  margin-top: 8px
}

#security-form {
  margin-top: 24px
}

@media(max-width:1000px) {
  .member-story {
    padding: 38px 28px
  }

  .member-story h1 {
    font-size: 28px
  }

  .member-form-card {
    padding: 32px
  }

  .member-center-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px
  }

  .member-center-body {
    padding: 24px
  }

  .member-records {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  .showcase.member-mode {
    padding: 128px 0 35px
  }

  #member-page {
    width: 90%
  }

  .member-layout {
    grid-template-columns: 1fr
  }

  .member-story,
  #member-page .member-story {
    display: none
  }

  .member-art,
  .member-story-foot {
    display: none
  }

  .member-form-card {
    padding: 28px 24px
  }

  .member-form-card h2 {
    font-size: 24px
  }

  .member-tabs {
    gap: 18px
  }

  .member-tabs [role="button"] {
    font-size: 12px
  }

  .member-center-heading {
    gap: 16px;
    align-items: flex-start
  }

  .member-center-heading h1 {
    font-size: 26px
  }

  .member-center-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px
  }

  .member-side {
    padding: 18px
  }

  .member-side .member-avatar,
.member-side>strong,
.member-side>.member-tag {
    display: none
  }

  .member-side nav {
    display: flex;
    margin: 0;
    gap: 6px
  }

  .member-side nav [role="button"] {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px
  }

  .member-side nav [role="button"] span {
    display: none
  }

  .member-side>#member-exit {
    margin-top: 10px
  }

  .member-center-body {
    padding: 22px 18px
  }

  .member-section-heading h2 {
    font-size: 21px
  }

  .member-form-grid {
    grid-template-columns: 1fr
  }

  .member-detail-views {
    gap: 8px
  }

  .member-detail-views figure {
    padding: 8px
  }

  .member-detail-views svg {
    height: 130px
  }

  .member-detail-table>div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px
  }

  .member-center-heading>.primary {
    padding-inline: 12px;
    min-width: 0
  }

  .member-empty h3 {
    font-size: 17px
  }
}

/* ===== figma-latest.css ===== */
/* Figma 53:6631–53:8723. Designer-only skin; account screens retain their layout. */
/* Input guidance shares one opacity across the designer, member forms and dialogs. */
input::placeholder,
textarea::placeholder {
  color: inherit;
  opacity: .5
}

#designer {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #333;
  --button-height: 48px;
  --button-font: 16px;
  --button-radius: 24px;
  --button-padding: 24px;
  --button-gap: 16px
}

.designer-title p {
  font: 16px/20px Arial, sans-serif;
  letter-spacing: 1px;
  color: #666
}

.designer-title h1 {
  font-size: 48px;
  line-height: 64px;
  letter-spacing: 2px;
  margin-top: 18px
}

.designer-title i {
  display: block;
  width: 67px;
  height: 2px;
  background: #a28774;
  margin-top: 29px
}

#designer .part-guide-confirm {
  display: none
}

#designer .part-guide strong {
  display: block;
  color: #a28774;
  font-weight: 700
}

#designer .part-guide {
  color: #0005;
  font-size: 14px;
  line-height: 22px
}

#designer .step,
#designer .step .num {
  font-size: 16px;
  line-height: 32px;
  color: #8b7867
}

#designer .step {
  gap: 8px;
  flex-direction: row;
  background: #eae6d94d
}

#designer .step.active {
  background: #ffffff80;
  color: #a28774
}

#designer .step.active:after {
  left: 0;
  right: 0;
  height: 1px;
  background: #a28774
}

#designer .part-tabs,
#designer .emb-segment {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  border: 0
}

#designer .part-tabs [role="button"],
#designer .emb-segment [role="button"] {
  flex: 1;
  height: 56px;
  min-height: 56px;
  font-size: 16px;
  line-height: 32px;
  border: 1px solid #a28774;
  border-radius: 8px;
  background: #faf8f4;
  color: #806650;
  padding: 0 8px;
  font-weight: 400
}

#designer .part-tabs [role="button"].active,
#designer .emb-segment [role="button"].active {
  background: #a28774;
  color: white;
  box-shadow: none
}

#designer .label {
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 4px;
  color: #8b7867
}

#designer input:not([type=range]),
#designer select,
#designer textarea {
  font-size: 16px;
  background: #faf8f4;
  border: 1px solid #cbbbad;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 48px
}

#designer .family-select {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 20px
}

#designer select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%238b7867'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat
}

#designer .swatch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
  margin: 0 0 20px;
  color: #a28774
}

#designer #panel .swatches {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px 12px;
  height: 240px;
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 12px 4px 2px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #a28774 #e2cfba
}

#designer .swatch {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #8b7867
}

#designer .swatch .sample {
  width: 100%;
  margin: 0 auto 12px;
  border-width: 3px;
  aspect-ratio: 1;
  height: auto;
  padding: 0
}

#designer .swatch > span:not(.sample) {
  display: block;
  text-align: center
}

#designer .selected-fabric,
#designer #fabric-branch > .tiny {
  display: none
}

#designer .model-grid {
  gap: 16px
}

#designer .model {
  height: 256px;
  padding: 16px;
  background: #ffffff30;
  border: 1px solid transparent;
  border-radius: 8px
}

#designer .model.selected {
  border-color: #a28774;
  background: #ffffff50
}

#designer .model .shoe-photo {
  height: 150px;
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  mix-blend-mode: normal;
  aspect-ratio: auto
}

#designer .model .shoe-photo img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none
}

#designer .model strong {
  font-size: 18px;
  line-height: 24px
}

#designer .model small {
  font-size: 14px;
  line-height: 22px;
  margin-top: 8px
}

#designer .model .check {
  z-index: 1;
  top: 16px;
  right: 16px;
  font-size: 14px
}

#designer .model.selected .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #a28774 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' fill='%23A28774'/%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' stroke='%23C6B4A4' stroke-width='0.5'/%3E%3Cpath d='M10.69 15.13a1.05 1.05 0 0 1-.74-.31L7.75 12.38a1 1 0 0 1 1.41-1.41l2.28 2.28a.5.5 0 0 0 .7 0l4.89-4.89a1 1 0 0 1 1.41 1.41l-5.25 5.25c-.2.2-.46.31-.74.31z' fill='%23fff'/%3E%3C/svg%3E") center/24px 24px no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 24px
}

#designer .sole-option .choice-check {
  top: 16px;
  right: 16px
}

#designer .sole-option.selected .choice-check {
  width: 24px;
  height: 24px;
  background: #a28774 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' fill='%23A28774'/%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' stroke='%23C6B4A4' stroke-width='0.5'/%3E%3Cpath d='M10.69 15.13a1.05 1.05 0 0 1-.74-.31L7.75 12.38a1 1 0 0 1 1.41-1.41l2.28 2.28a.5.5 0 0 0 .7 0l4.89-4.89a1 1 0 0 1 1.41 1.41l-5.25 5.25c-.2.2-.46.31-.74.31z' fill='%23fff'/%3E%3C/svg%3E") center/24px 24px no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 24px
}

#designer .note {
  font-size: 12px;
  line-height: 20px;
  padding: 12px 14px;
  margin-top: 16px;
  background: #ffffff50
}

#designer .tiny {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #8b7b6c
}

#designer #panel-step-0 > .tiny {
  display: none
}

#designer .option-intro {
  margin-bottom: 16px
}

#designer .option-intro .eyebrow {
  display: none
}

#designer .option-intro h3 {
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 16px
}

#designer .option-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #8b7867
}

#designer .sole-choice-grid {
  gap: 16px;
  margin: 0 0 16px
}

#designer .sole-option {
  height: 256px;
  padding: 16px;
  background: #ffffff30
}

#designer .standard-sole-art,
#designer .custom-sole-icon {
  height: 150px;
  margin-bottom: 20px
}

#designer .sole-option strong {
  font-size: 18px;
  line-height: 24px
}

#designer .sole-option small {
  font-size: 14px;
  line-height: 22px;
  margin-top: 4px
}

#designer .lining-option {
  min-height: 88px;
  padding: 12px;
  gap: 16px
}

#designer .lining-option strong {
  font-size: 16px;
  line-height: 24px
}

#designer .lining-option small {
  font-size: 14px;
  line-height: 22px
}

#designer .lining-texture {
  width: 56px;
  height: 56px
}

/* Compact spacing only while custom-sole fields are visible (ref injects #sole-custom on demand). */
#designer #panel-step-1:has(#sole-custom-block:not([hidden])) .option-intro {
  margin-bottom: 8px
}

#designer #panel-step-1:has(#sole-custom-block:not([hidden])) .option-intro h3 {
  margin-bottom: 8px
}

#designer #panel-step-1:has(#sole-custom-block:not([hidden])) .sole-choice-grid {
  margin-bottom: 8px
}

#designer .moq-notice {
  height: 44px;
  padding: 12px 14px;
  margin: 8px 0 16px;
  line-height: 20px;
  background: #ffffff50
}

#designer .moq-notice strong {
  font-size: 12px;
  font-weight: 400;
  color: #a28774
}

#designer .moq-notice span,
#designer #sole-custom-block .tiny {
  display: none
}

#designer #sole-custom {
  height: 48px;
  min-height: 48px;
  line-height: 22px;
  padding: 12px 16px;
  resize: vertical
}

#designer .emb-simple-position {
  margin: 0 0 16px
}

#designer .emb-simple-position>.label,
#designer .emb-reference,
#designer .emb-production-note {
  display: none
}

#designer .emb-segment {
  margin: 0
}

.emb-design-instruction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  min-height: 28px;
  color: #a28774;
  font-size: 14px;
  line-height: 20px
}

.emb-design-instruction>span {
  flex: 1;
  min-width: 0;
  font-size: 12px
}

#designer #decal-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 2px;
  background: #a28774;
  color: white;
  font-size: 12px;
  line-height: 1;
  box-sizing: border-box
}

/* Embroidery: hide outer #panel scroll (ref). Prefer data-* — :has() fails in older 360. */
.showcase[data-design-step="3"] #designer #panel,
#designer #panel[data-panel-step="3"] {
  overflow: hidden !important;
  padding-right: 0
}

.showcase[data-design-step="3"] #designer #panel::-webkit-scrollbar,
#designer #panel[data-panel-step="3"]::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important
}

#designer #panel .emb-library {
  height: 304px;
  max-height: 304px;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 16px 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 12px 0 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #a28774 #e2cfba
}

/* Library keeps its own scrollbar (ref); only the outer #panel scroll is suppressed. */
.showcase[data-design-step="3"] #designer #panel .emb-library,
#designer #panel[data-panel-step="3"] .emb-library {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 12px
}

/* Shared thin scrollbar (embroidery / swatches / review) — works in 360 WebKit. */
#designer #panel .emb-library,
#designer #panel .swatches,
.showcase[data-design-step="4"] #designer #panel,
#designer #panel[data-panel-step="4"] {
  scrollbar-width: thin;
  scrollbar-color: #a28774 #e2cfba
}

#designer #panel .emb-library::-webkit-scrollbar,
#designer #panel .swatches::-webkit-scrollbar,
.showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar,
#designer #panel[data-panel-step="4"]::-webkit-scrollbar {
  width: 8px
}

#designer #panel .emb-library::-webkit-scrollbar-track,
#designer #panel .swatches::-webkit-scrollbar-track,
.showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-track,
#designer #panel[data-panel-step="4"]::-webkit-scrollbar-track {
  background: #e2cfba;
  border-radius: 4px
}

#designer #panel .emb-library::-webkit-scrollbar-thumb,
#designer #panel .swatches::-webkit-scrollbar-thumb,
.showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-thumb,
#designer #panel[data-panel-step="4"]::-webkit-scrollbar-thumb {
  background: #a28774;
  border-radius: 4px
}

#designer #panel .emb-library::-webkit-scrollbar-button,
#designer #panel .swatches::-webkit-scrollbar-button,
.showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-button,
#designer #panel[data-panel-step="4"]::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0
}

#designer .emb-art-card {
  height: 144px;
  padding: 8px;
  background: #ffffff59;
  border: 1px solid #cbbbad;
  box-shadow: none
}

#designer .emb-art-card.selected {
  border-color: #a28774
}

#designer .emb-art-card img {
  height: 100px;
  margin: 0 0 8px;
  background: transparent;
  border-radius: 0
}

#designer .emb-art-card>span {
  font-size: 14px;
  line-height: 20px
}

#designer .emb-art-card i {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #a28774 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' fill='%23A28774'/%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' stroke='%23C6B4A4' stroke-width='0.5'/%3E%3Cpath d='M10.69 15.13a1.05 1.05 0 0 1-.74-.31L7.75 12.38a1 1 0 0 1 1.41-1.41l2.28 2.28a.5.5 0 0 0 .7 0l4.89-4.89a1 1 0 0 1 1.41 1.41l-5.25 5.25c-.2.2-.46.31-.74.31z' fill='%23fff'/%3E%3C/svg%3E") center/19px 19px no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  font-style: normal;
  display: block
}

#designer .review-section-title {
  font-size: 20px;
  line-height: 30px;
  color: white;
  background: #a28774;
  padding: 10px 16px;
  margin: 0;
  height: 50px
}

#designer .review-table {
  padding: 20px 0;
  margin: 8px 0
}

#designer .review-row {
  min-height: 33px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  align-items: start;
  font-size: 16px;
  line-height: 22px;
  gap: 8px;
  border-color: #e2cfba
}

#designer .review-row:last-child {
  margin: 0
}

#designer .review-row>span:first-child {
  padding-left: 20px;
  flex: 0 0 32%
}

#designer .review-row>span:last-child {
  flex: 1;
  max-width: none;
  color: #8b7867
}

#designer .customer-form {
  padding: 0;
  margin: 0;
  border: 0
}

#designer .customer-fields {
  padding: 20px 0 20px 20px;
  display: grid;
  gap: 10px
}

#designer .customer-fields .label {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 7px
}

#designer .customer-fields input {
  height: 54px;
  min-height: 54px
}

#designer .review-actions {
  justify-content: center;
  margin: 8px 0 0;
  gap: 16px
}

#designer #panel:has(.review-actions)::after {
  content: "";
  display: block;
  height: 30px;
  flex: none
}

#designer #edit-fabric {
  width: 120px
}

#designer #generate-design {
  width: 164px;
  padding: 0 16px
}

#designer .summary-actions {
  gap: 16px;
  flex-wrap: nowrap
}

#designer #save {
  width: 120px;
  background: transparent;
  border-color: #a28774;
  color: #a28774
}

#designer #contact-team {
  width: 182px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid #a28774;
  border-color: #a28774;
  color: #a28774
}

#designer #next {
  width: 129px;
  min-width: 129px;
  padding: 0 20px;
  font-size: 15px;
  background: #a28774
}

#designer #step-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-variant-numeric: tabular-nums
}

#designer #step-counter .step-current {
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  color: #a28774
}

#designer #step-counter .step-total {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: #a9a5a1
}

#designer #prev {
  font-size: 16px;
  padding: 0;
  min-height: 32px;
  height: 32px
}

#designer .action-arrow {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 9px;
  background-color: currentColor;
  mask: var(--action-arrow-mask) center/contain no-repeat;
  -webkit-mask: var(--action-arrow-mask) center/contain no-repeat
}

#designer .action-arrow-back {
  transform: rotate(180deg)
}

#designer .history-buttons {
  gap: 10px
}

#designer .history-buttons [role="button"] {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 24px;
  color: #806650
}

#designer #undo:not([disabled]) {
  background: #a28774;
  color: #fff
}

#designer .history-tools>span {
  font-size: 16px;
  line-height: 32px
}

#designer .angle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 136px;
  height: 112px;
  min-height: 112px;
  padding: 8px;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  box-shadow: none;
  border-color: #e2cfba
}

#designer .angle-card.active {
  border-color: #a28774;
  background: #ffffff80
}

#designer .angle-mini {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 112px;
  height: 56px;
  margin: 0 0 8px;
  overflow: hidden;
  line-height: 0
}

#designer .angle-mini svg {
  display: block;
  width: 100%;
  height: 100%
}

#designer .angle-card>span:not(.angle-mini) {
  display: block;
  width: 100%;
  height: 32px;
  line-height: 32px;
  text-align: center;
  overflow: hidden
}

#designer .angle-switch .preview-rotation {
  width: 313px;
  height: 112px;
  min-height: 112px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible
}

#designer .decal-tool-tabs {
  height: 30px;
  gap: 0;
  padding: 0
}

#designer .decal-tool-tabs [role="button"] {
  height: 30px;
  min-height: 30px;
  width: 84px;
  padding: 0;
  font-size: 16px;
  line-height: 30px;
  background: #eae6d9;
  border: 0;
  border-radius: 6px 6px 0 0;
  color: #a28774;
  text-align: center;
}

#designer .decal-tool-tabs [role="button"][aria-pressed=true] {
  background: #a28774;
  color: white
}

#designer .decal-size-panel,
#designer .decal-turn-panel {
  position: relative;
  height: 82px;
  border: 1px solid #cbbbad;
  border-radius: 0 8px 8px 8px;
  background: #eee8df;
  padding: 28px 18px 6px;
  overflow: visible
}

#designer .decal-size-panel>output,
#designer .decal-turn-panel .rotation-heading {
  position: absolute;
  top: 6px;
  right: 18px;
  font: 16px/18px Arial;
  color: #715b48
}

#designer .rotation-inputs {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 10px;
  height: 48px;
  overflow: visible
}

#designer .rotation-inputs [role="button"] {
  flex: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 24px;
  padding: 0;
  font-size: 16px
}

#designer .rotation-inputs input[type=range] {
  flex: 1;
  min-width: 0
}

/* Range: taller hit area so 360 WebKit can reach min/max; track drawn on runnable-track. */
#designer input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: #a28774;
  cursor: pointer;
  box-sizing: border-box;
  overflow: visible
}

#designer input[type=range]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to right, #a28774 0 var(--range-fill, 30%), #d5cfca var(--range-fill, 30%) 100%)
}

#designer input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  background: #a28774;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  z-index: 2
}

#designer input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: #d5cfca
}

#designer input[type=range]::-moz-range-progress {
  height: 8px;
  border-radius: 8px;
  background: #a28774
}

#designer input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #a28774;
  cursor: pointer
}

#designer #panel,
#designer .swatches,
#designer .emb-library {
  scrollbar-width: thin;
  scrollbar-color: #a28774 #e2cfba
}

/* Lining branch uses nested panes — mirror ref flex scroll without requiring direct #panel children. */
#designer #panel:has(#lining-branch:not([hidden])) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 0
}

#designer #panel:has(#lining-branch:not([hidden])) #panel-step-2,
#designer #lining-branch:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden
}

#designer #lining-branch:not([hidden]) > .part-tabs {
  flex: none;
  margin-bottom: 20px;
  padding-right: 8px
}

#designer .lining-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a28774 #e2cfba
}

#designer .lining-scroll::-webkit-scrollbar {
  width: 8px
}

#designer .lining-scroll::-webkit-scrollbar-track {
  background: #e2cfba;
  border-radius: 4px
}

#designer .lining-scroll::-webkit-scrollbar-thumb {
  background: #a28774;
  border-radius: 4px
}

#designer .lining-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0
}

@media(min-width:1101px) {
  body .showcase:not(.member-mode) {
    display: block;
    width: 1920px;
    height: 1080px;
    min-height: 1080px;
    padding: 0;
    zoom: var(--designer-zoom, 1);
    margin: 0 auto;
    overflow: hidden
  }

  .showcase:not(.member-mode) .showcase-texture {
    left: -144px;
    top: -56px;
    width: 2416px;
    height: 1360px;
    object-fit: cover
  }

  .showcase:not(.member-mode) .showcase-watermark {
    font-size: 345px;
    line-height: 518px;
    bottom: -189px;
    letter-spacing: -10px
  }

  #designer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    pointer-events: none
  }

  #designer .designer-title {
    position: absolute;
    left: 61px;
    top: 182px;
    width: auto;
    white-space: nowrap;
    pointer-events: auto
  }

  #designer .workspace {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 1920px;
    max-width: none;
    height: 100%;
    margin: 0;
    background: none;
    border: 0;
    pointer-events: none
  }

  #designer .steps {
    position: absolute;
    left: 1100px;
    top: 208px;
    width: 760px;
    height: 56px;
    display: grid;
    pointer-events: auto;
    border: 0
  }

  /* Avoid display:contents — older 360 Chromium mishandles absolute descendants. */
  #designer .editor {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    pointer-events: none
  }

  #designer .stage {
    position: absolute;
    left: 61px;
    top: 336px;
    width: 1005px;
    height: 696px;
    min-height: 0;
    padding: 0;
    display: block;
    background: none;
    overflow: visible;
    pointer-events: auto
  }

  #designer .stage-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: auto;
    align-items: flex-start
  }

  #designer .stage h2 {
    font-size: 24px;
    line-height: 40px;
    letter-spacing: 0;
    margin: 0
  }

  #designer .angle-label {
    font-size: 16px;
    line-height: 32px;
    margin: 0;
    letter-spacing: 0
  }

  #designer .history-tools {
    position: absolute;
    right: 0;
    top: 2px
  }

  #designer .history-tools>span {
    display: block;
    margin: 0 0 2px;
    text-align: center
  }

  #designer .visual {
    position: absolute;
    left: 114px;
    top: 4px;
    width: 751px;
    height: 486px;
    min-height: 0;
    padding: 0;
    margin: 0;
    container-type: normal;
    pointer-events: none;
    z-index: 0
  }

  #designer #diagram .shoe-decal {
    pointer-events: auto
  }

  #designer #diagram svg {
    height: 100%;
    width: 100%;
    overflow: visible
  }

  #designer .angle-switch {
    position: absolute;
    left: 0;
    right: 0;
    top: 533px;
    min-height: 112px;
    height: 112px;
    margin: 0;
    padding: 0 25px 0 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-end
  }

  /* Only shift layout when rotation tools are actually visible (hidden attr still matches :has). */
  #designer .angle-switch:has(.preview-rotation:not([hidden])) {
    justify-content: flex-start;
    padding: 0
  }

  #designer .angle-switch .preview-rotation {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto
  }

  #designer .preview-config-note {
    position: absolute;
    left: 0;
    top: 662px;
    width: 980px;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    text-align: center;
    color: #a28774
  }

  #designer .stage:has(.preview-rotation:not([hidden])) .preview-config-note {
    left: auto;
    right: 0;
    width: 313px;
    font-size: 12px;
    text-align: left
  }

  #designer .config {
    position: absolute;
    left: 1100px;
    top: 264px;
    width: 760px;
    height: 688px;
    min-height: 0;
    padding: 0;
    margin: 0;
    display: block;
    border: 0;
    pointer-events: auto;
    background: #ffffff4d;
    overflow: hidden
  }

  #designer #panel {
    position: absolute;
    left: 20px;
    top: 24px;
    width: 720px;
    height: 480px;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto
  }

  #designer .config>.part-guide {
    position: absolute;
    left: 20px;
    top: 528px;
    width: 720px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 22px
  }

  #designer .config>.panel-footer {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 594px;
    height: 78px;
    margin: 0;
    padding: 16px 0 0 12px;
    border-top: 1px solid #cbbbad;
    min-height: 0
  }

  #designer .summary-bar {
    position: absolute;
    left: 1322px;
    top: 968px;
    width: 318px;
    padding: 0;
    margin: 0;
    height: 48px;
    border: 0;
    pointer-events: auto
  }

  #designer #save-status {
    position: absolute;
    right: 0;
    top: 54px;
    white-space: nowrap
  }

  .showcase[data-design-step="4"] #designer #panel,
  #designer #panel[data-panel-step="4"] {
    top: 20px;
    left: 10px;
    width: 740px;
    height: 484px;
    padding-right: 20px;
    display: block;
    overflow-x: hidden;
    overflow-y: scroll !important;
    overscroll-behavior: contain
  }
}

@media(max-width:1100px) {
  .designer-title {
    margin: 16px auto 32px;
    width: 88%
  }

  .designer-title h1 {
    font-size: 32px;
    line-height: 48px;
    margin-top: 8px
  }

  .designer-title i {
    margin-top: 12px
  }

  #designer .model {
    height: 220px
  }

  #designer .model .shoe-photo {
    height: 110px
  }

  #designer .config {
    height: 720px
  }

  .showcase[data-design-step="4"] #designer #panel,
  #designer #panel[data-panel-step="4"] {
    display: block;
    overflow-x: hidden;
    overflow-y: scroll !important;
    overscroll-behavior: contain
  }

  #designer .angle-switch {
    gap: 8px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center
  }

  #designer .angle-switch .preview-rotation {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 12px auto
  }

  #designer .step,
#designer .step .num {
    font-size: 12px
  }

  #designer .step {
    white-space: nowrap;
    gap: 2px;
    flex-direction: column;
    line-height: 20px
  }

  #designer .emb-design-instruction {
    align-items: center
  }

  #designer .part-tabs [role="button"] {
    font-size: 14px
  }

  #designer #panel .swatches {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: 240px
  }

  #designer #panel .emb-library {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  #designer .model strong,
#designer .model small {
    font-size: 12px
  }

  #designer .summary-actions {
    flex-wrap: wrap
  }

  #designer .review-row {
    font-size: 14px
  }
}

/* Selection marks: data-URI SVG (file MIME image/svg breaks CSS backgrounds in 360). */
#designer .model.selected .check,
#designer .sole-option.selected .choice-check,
#designer .lining-option.selected>i {
  position: relative;
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #a28774 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' fill='%23A28774'/%3E%3Crect x='0.25' y='0.25' width='23.5' height='23.5' rx='11.75' stroke='%23C6B4A4' stroke-width='0.5'/%3E%3Cpath d='M10.69 15.13a1.05 1.05 0 0 1-.74-.31L7.75 12.38a1 1 0 0 1 1.41-1.41l2.28 2.28a.5.5 0 0 0 .7 0l4.89-4.89a1 1 0 0 1 1.41 1.41l-5.25 5.25c-.2.2-.46.31-.74.31z' fill='%23fff'/%3E%3C/svg%3E") center/24px 24px no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0
}

#designer .model.selected .check,
#designer .sole-option.selected .choice-check {
  position: absolute
}

#designer .model.selected .check::after,
#designer .sole-option.selected .choice-check::after,
#designer .lining-option.selected>i::after {
  content: none
}

#designer .swatch.selected .sample::after,
#designer .sole-swatch.selected .sole-sample::after {
  content: "✓";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0002;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 4px #000;
  filter: none;
  -webkit-mask: none;
  mask: none
}

/* ===== member-latest.css ===== */
/* Member pages matched to the approved November 11 Figma frames. */
#member-page {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #514b45
}

#member-page .action-arrow {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 9px;
  background-color: currentColor;
  mask: var(--action-arrow-mask) center/contain no-repeat;
  -webkit-mask: var(--action-arrow-mask) center/contain no-repeat
}

#member-page .primary,
#member-page .outline,
#member-page .text-button {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  line-height: 32px;
  padding: 0 30px;
  border-radius: 100px;
  gap: 6px
}

#member-page .primary {
  background: #a28774
}

#member-page .outline {
  border-color: #a28774;
  color: #a28774
}

#member-page .member-layout {
  grid-template-columns: 1fr 1fr;
  height: 808px;
  min-height: 0;
  border-radius: 16px;
  border-color: #cbbbad80
}

#member-page .member-story {
  padding: 64px 56px 32px;
  background: #c5b198;
  display: block;
  isolation: isolate
}

#member-page .member-story:before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -4.444%;
  top: -1.114%;
  width: 162.083%;
  height: 101.361%;
  background: url('../assets/member-story-slippers.png') left center/100% 100% no-repeat;
  pointer-events: none
}

#member-page .member-story .eyebrow {
  font: 16px/32px Arial;
  color: #fff;
  letter-spacing: 0
}

#member-page .member-story h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 64px;
  letter-spacing: 0;
  margin: 8px 0 23px;
  color: #fff
}

#member-page .member-story>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 32px;
  color: #fff
}

#member-page .member-story-foot {
  position: absolute;
  left: 56px;
  bottom: 32px;
  font: 16px/32px Arial;
  color: #eae6d9;
  letter-spacing: 0
}

#member-page .member-form-card {
  position: relative;
  padding: 55px 50px 43px;
  background: #faf8f4b3;
  display: flex;
  flex-direction: column
}

#member-page .member-form-card h2 {
  font-size: 32px;
  line-height: 56px;
  font-weight: 700;
  color: #a28774;
  margin: 0
}

#member-page .member-intro {
  font-size: 14px;
  line-height: 18px;
  margin: 0;
  color: #0008
}

#member-page .member-tabs {
  gap: 30px;
  margin: 60px 0 16px;
  height: 43px;
  min-height: 43px;
  border: 0;
  position: relative
}

#member-page .member-tabs:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: #eae6d9
}

#member-page .member-tabs [role="button"] {
  font-size: 16px;
  line-height: 24px;
  padding: 0 0 4px;
  height: 29px;
  min-height: 0;
  color: #a2877480;
  border-radius: 0
}

#member-page .member-tabs [role="button"].active {
  color: #a28774
}

#member-page .member-tabs [role="button"].active:after {
  height: 1px;
  bottom: 0
}

#member-page .member-field {
  font-size: 16px;
  line-height: 32px;
  color: #a28774;
  margin: 0 0 10px
}

#member-page .member-field input {
  height: 48px;
  border: 1px solid #cbbbad;
  border-radius: 8px;
  background: #faf8f4;
  font: 16px/32px Arial, "Microsoft YaHei", sans-serif;
  padding: 0 15px;
  color: #333;
  margin-top: 8px
}

#member-page input::placeholder {
  color: #333;
  opacity: .5
}

#member-page .member-form-card input {
  height: 56px
}

#member-page .member-sms {
  gap: 16px;
  margin-top: 8px;
  align-items: end
}

#member-page .member-sms input {
  margin: 0;
  width: 0;
  flex: 1
}

#member-page .member-sms [role="button"] {
  height: 56px;
  min-height: 56px;
  width: 184px;
  border-radius: 8px;
  padding: 0;
  border-color: #c6b4a4
}

#member-page .member-form-links {
  font-size: 14px;
  line-height: 18px;
  margin: -6px 0 30px;
  color: #a28774
}

#member-page .member-form-links [role="button"],
#member-page .member-form-bottom [role="button"] {
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
  color: #a28774;
  padding: 0;
  min-height: 0
}

#member-page .member-form-card .member-submit {
  height: 56px;
  min-height: 56px;
  border-radius: 8px;
  font-size: 18px;
  margin: 0;
  width: 100%
}

#member-page .member-form-bottom {
  font-size: 14px;
  line-height: 18px;
  margin: 4px 0 0;
  justify-content: space-between;
  color: #a28774;
  gap: 8px
}

#member-page .member-form-card .member-demo {
  margin-top: auto;
  width: 100%;
  border-color: #c6b4a4
}

#member-page a.outline,
#member-page a.text-button,
#member-page a.primary,
#member-page a.member-demo {
  text-decoration: none;
  cursor: pointer
}

#member-page a.outline,
#member-page a.member-demo {
  color: #a28774
}

#member-page a.primary {
  color: #fff;
}

#member-page .member-form-card a.primary,
#member-page .member-empty a.primary,
#member-page .member-center-heading > a.primary {
  margin-top: 8px;
}

#member-page .record-info a.primary {
  margin-top: 0;
}

#member-page a.text-button {
  color: inherit
}

#member-page .member-form-card #demo-custom {
  display: none
}

#member-page .member-form-card[data-kind="CREATE AN ACCOUNT"] form,
#member-page .member-form-card[data-kind="RESET PASSWORD"] form {
  margin-top: 30px
}

#member-page .member-form-card[data-kind="CREATE AN ACCOUNT"] .member-field,
#member-page .member-form-card[data-kind="RESET PASSWORD"] .member-field {
  line-height: 24px;
  margin-bottom: 8px
}

#member-page .member-form-card[data-kind="CREATE AN ACCOUNT"] .member-submit,
#member-page .member-form-card[data-kind="RESET PASSWORD"] .member-submit {
  margin-top: 22px
}

#member-page .wechat-placeholder {
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  gap: 10px;
  margin: 4px 0 0;
  padding: 6px 0 0;
  justify-content: flex-start
}

#member-page .wechat-placeholder strong {
  font-size: 16px;
  line-height: 24px;
  color: #a28774;
  margin: 0 0 4px;
  display: block
}

#member-page .member-qr {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e2cfba;
  border-radius: 4px;
  background: #fff
}

#member-page .member-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

#member-page .member-security-row em {
  font-style: normal;
  color: #c9793f;
  font-weight: 500
}

#member-page .member-security-row em.ok {
  color: #2f8f5b
}

/* 内嵌微信二维码容器
   注意：iframe 内容高度会随状态变化（未扫码 / 已登录头像 / 二维码），
   因此容器不写死高度，由 JS 按 iframe 实际内容高度设置，避免任何一种状态被裁切 */
/* 内嵌微信二维码容器
   iframe 内部三种状态（二维码 / 已登录头像 / 提示）高度不同，
   容器按 iframe 缩放后的最大尺寸给足，保证任何一种状态都完整可见 */
#member-page .wechat-qr-box {
  position: relative;
  width: 216px;
  height: 150px;
  flex: 0 0 auto;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2cfba;
  border-radius: 6px
}

#member-page .wechat-qr-box iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  height: 400px;
  border: 0;
  transform: translateX(-50%) scale(0.72);
  transform-origin: top center
}

#member-page .wechat-qr-loading {
  font-size: 12px;
  color: #a28774;
  text-align: center;
  padding: 0 12px;
  line-height: 1.6
}

#member-page .wechat-qr-tip {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #a28774;
  text-align: center
}

#member-page .wechat-qr-link {
  display: block;
  margin: 0 auto;
  cursor: pointer
}

#member-page .wechat-qr-link:hover {
  border-color: #a28774
}

#member-page .wechat-instruction {
  display: flex;
  gap: 0;
  align-items: center;
  font-size: 16px;
  color: #a28774
}

#member-page .wechat-instruction img {
  width: 24px;
  height: 24px
}

#member-page .wechat-placeholder small {
  font-size: 12px;
  color: #a28774;
  line-height: 18px
}

#member-page .wechat-demo-caption {
  position: absolute;
  bottom: 98px
}

/* Mobile wechat pane: keep caption in flow so it doesn't cover .member-form-bottom. */
@media(max-width:760px) {
  #member-page .wechat-placeholder {
    height: auto;
    min-height: 0;
    margin: 8px 0 20px;
    gap: 12px
  }

  #member-page .wechat-demo-caption {
    position: static;
    bottom: auto;
    display: block;
    margin: 4px 0 0;
    text-align: center
  }

  #member-page .member-form-bottom {
    position: relative;
    z-index: 1;
    margin: 16px 0 12px;
    flex: none
  }

  #member-page .member-form-card .member-demo {
    margin-top: 8px
  }
}

#member-page .member-center {
  padding: 0
}

#member-page .member-center-heading {
  position: relative;
  padding: 0 0 26px;
  height: 118px;
  align-items: center;
  border-color: #cbbbad
}

#member-page .member-center-heading:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 268px;
  height: 2px;
  background: #a28774
}

#member-page .member-center-heading h1 {
  font-size: 42px;
  line-height: 55px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0 0 4px;
  color: #333
}

#member-page .member-center-heading p {
  font-size: 16px;
  line-height: 32px;
  color: #8b7867
}

#member-page .member-center-heading>.primary {
  margin-top: 16px
}

#member-page .member-center-layout {
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px
}

#member-page .member-side {
  padding: 32px 29px 24px;
  border: 0;
  border-radius: 8px;
  background: #faf7f080;
  height: 448px
}

#member-page .member-avatar {
  width: 80px;
  height: 80px;
  font: 32px/56px Arial;
  margin: 0 auto 16px
}

#member-page .member-side>strong {
  line-height: 32px;
  font-size: 16px
}

#member-page .member-side nav {
  margin: 16px 0 16px;
  gap: 16px
}

#member-page .member-side nav [role="button"] {
  height: 56px;
  min-height: 56px;
  width: 210px;
  justify-content: center;
  gap: 6px;
  border: 1px solid #a28774;
  border-radius: 100px;
  font-size: 16px;
  color: #a28774;
  padding: 0
}

#member-page .member-side nav [role="button"].active {
  background: #a28774;
  color: white
}

#member-page .member-side>#member-exit {
  height: 32px;
  min-height: 32px;
  padding: 0;
  color: #a28774;
  padding: 0 20px;  
}

#member-page .member-center-body {
  height: 640px;
  min-height: 0;
  padding: 39px 46px;
  background: #fbf9f3a6;
  border: 0;
  border-radius: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b29b85 transparent
}

#member-page .member-section-heading {
  margin: 0 0 16px;
  gap: 8px;
  align-items: start
}

#member-page .member-section-heading h2 {
  font-size: 24px;
  line-height: 40px;
  color: #333;
  font-weight: 400
}

#member-page .member-section-heading p {
  font-size: 16px;
  line-height: 32px;
  margin: 4px 0 0;
  color: #a28774
}

#member-page .member-center>.member-local-note {
  width: 1100px;
  margin: 24px 0 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 32px;
  color: #8b7867
}

#member-page .member-empty {
  padding-top: 64px;
  min-height: 336px;
  justify-content: start;
  gap: 16px
}

#member-page .member-empty>span {
  font-size: 64px;
  line-height: 104px;
  color: #a28774
}

#member-page .member-empty h3 {
  font-size: 24px;
  line-height: 40px;
  color: #333
}

#member-page .member-empty p {
  font-size: 16px;
  line-height: 32px
}

#member-page .member-records {
  grid-template-columns: repeat(2, minmax(0, 480px));
  gap: 24px
}

#member-page .member-record {
  border: 0;
  background: #faf8f4;
  border-radius: 8px
}

#member-page .record-image {
  height: 240px;
  background: none;
  padding: 16px 24px
}

#member-page .record-info {
  padding: 0 24px 24px
}

#member-page .record-info>span,
#member-page .record-info p {
  font-size: 14px;
  line-height: 32px
}

#member-page .record-info h3 {
  font-size: 16px;
  line-height: 32px;
  margin: 8px 0
}

#member-page .record-info>div {
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 8px
}

#member-page .record-info [role="button"],
#member-page .record-info a.primary,
#member-page .record-info a.outline {
  flex: 1;
  padding: 0 12px
}

#member-page .member-detail-views {
  gap: 24px;
  margin: 0 0 4px;
  width: 882px;
  max-width: 100%;
  background: none
}

#member-page .member-detail-views figure {
  background: none;
  padding: 0
}

#member-page .member-detail-views svg {
  height: 196px
}

#member-page .member-detail-views figcaption {
  font-size: 14px;
  line-height: 28px
}

#member-page .member-detail-table>div {
  grid-template-columns: 200px 1fr;
  font-size: 16px;
  line-height: 32px;
  border: 0;
  padding: 2px 0;
  gap: 24px
}

#member-page .member-center-body>#detail-resume {
  margin-top: 8px
}

#member-page .member-center-body[data-section="profile"] {
  display: flex;
  align-items: center;
  justify-content: center
}

#member-page .member-center-body[data-section="profile"] .member-section-heading {
  display: none
}

#member-page .profile-form {
  width: 648px;
  max-width: 100%;
  margin: 0 auto
}

#member-page .member-avatar-row {
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px
}

#member-page .member-avatar-row .member-avatar {
  margin: 0 0 12px
}

#member-page .member-avatar-row .member-upload {
  font-size: 12px;
  height: 29px;
  min-height: 29px;
  padding: 0 16px;
  line-height: 18px
}

#member-page .member-avatar-row>span {
  font-size: 12px;
  line-height: 16px;
  color: #3338
}

#member-page .member-form-grid {
  display: block
}

#member-page .profile-form .member-field {
  margin-bottom: 16px
}

#member-page .profile-form>.primary {
  display: flex;
  width: fit-content;
  margin: 16px auto 0
}

#member-page .member-security-row {
  padding: 0;
  margin-bottom: 16px;
  gap: 8px;
  border: 0
}

#member-page .member-security-row>* {
  flex: 1;
  height: 56px;
  min-height: 56px
}

#member-page .security-edit>.member-section-heading {
  justify-content: center;
  text-align: center;
  margin-bottom: 12px
}

#member-page #change-form {
  width: 504px
}

#member-page #change-form .member-field {
  margin-bottom: 12px
}

#member-page #change-form .member-sms {
  gap: 8px
}

#member-page #change-form .member-sms [role="button"] {
  width: 160px;
  height: 48px;
  min-height: 48px
}

#member-page #change-form>.primary {
  margin-top: 30px
}

body #modal.design-sheet-modal .modal-panel {
  width: 1240px;
  max-width: 94vw;
  border-radius: 8px;
  padding: 56px 40px 64px;
  background: white
}

#modal.design-sheet-modal .sheet-modal-heading,
.design-sheet-modal .sheet-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px
}

/* Beat #modal h2 / #modal p (ID) so design-sheet typography matches ref. */
#modal.design-sheet-modal .sheet-modal-heading h2,
.design-sheet-modal .sheet-modal-heading h2 {
  font: 24px/40px Arial, "Microsoft YaHei", sans-serif;
  margin: 0;
  color: #514b45
}

#modal.design-sheet-modal .sheet-modal-heading p,
.design-sheet-modal .sheet-modal-heading p {
  font-size: 16px;
  color: #8b7867;
  margin: 4px 0 0;
  line-height: 24px
}

.design-sheet-modal #download-design {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  padding: 0 30px;
  gap: 6px
}

.design-sheet-modal #download-design img {
  width: 24px;
  height: 24px
}

.member-sheet-preview {
  background: #f5f2ed;
  padding: 22px 24px 24px
}

.member-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px;
  gap: 16px
}

#modal.design-sheet-modal .member-sheet-title h3,
.member-sheet-title h3 {
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
  margin: 0;
  color: #333
}

#modal.design-sheet-modal .member-sheet-title span,
.member-sheet-title span {
  font-size: 16px;
  color: #8b7867
}

.member-sheet-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  padding: 48px 24px 18px;
  gap: 22px
}

.member-sheet-views figure {
  margin: 0;
  text-align: center
}

.member-sheet-views svg {
  width: 100%;
  height: 250px
}

#modal.design-sheet-modal .member-sheet-views figcaption,
.member-sheet-views figcaption {
  font-size: 16px;
  line-height: 32px;
  color: #a28774;
  margin-top: 30px
}

.member-sheet-views figure:first-child svg {
  transform: scale(1.15);
  transform-origin: center
}

.member-sheet-views figure:nth-child(2) svg {
  transform: scale(.85);
  transform-origin: center
}

.member-sheet-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
  text-align: left;
  color: #333
}

#modal.design-sheet-modal .member-sheet-summary p,
.member-sheet-summary p {
  font-size: 16px;
  line-height: 32px;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #333
}

@media(min-width:1001px) {
  body .showcase.member-mode {
    display: block;
    width: 1920px;
    height: 1080px;
    min-height: 1080px;
    margin: 0 auto;
    padding: 176px 0 0;
    zoom: var(--designer-zoom, 1);
    overflow: hidden
  }

  .showcase.member-mode:has(.member-center) {
    padding-top: 211px
  }

  body .member-mode #member-page {
    width: 1440px;
    margin: 0 0 0 272px
  }

  body .member-mode:has(.member-center) #member-page {
    width: 1400px;
    margin-left: 260px
  }

  

  

  

  

  

  .member-mode .showcase-texture {
    left: -144px;
    top: -56px;
    width: 2416px;
    height: 1360px;
    object-fit: cover
  }

  .member-mode .showcase-watermark {
    font-size: 345px;
    line-height: 518px;
    bottom: -189px;
    letter-spacing: -10px;
    opacity: .1
  }
}

@media(max-width:1000px) {
  #member-page {
    width: 92%
  }

  #member-page .member-layout {
    height: auto;
    min-height: 700px
  }

  #member-page .member-story {
    padding: 40px 24px
  }

  #member-page .member-story h1 {
    font-size: 28px;
    line-height: 48px
  }

  #member-page .member-story-foot {
    left: 24px;
    font-size: 11px
  }

  #member-page .member-form-card {
    padding: 40px 28px
  }

  #member-page .member-form-card h2 {
    font-size: 26px
  }

  #member-page .member-form-card .member-demo {
    margin-top: 48px
  }

  #member-page .member-center-layout {
    grid-template-columns: 220px 1fr;
    gap: 20px
  }

  #member-page .member-side {
    padding: 24px 15px
  }

  #member-page .member-side nav [role="button"] {
    width: 190px
  }

  #member-page .member-center-body {
    padding: 28px 24px
  }

  #member-page .member-center>.member-local-note {
    width: auto;
    font-size: 12px
  }

  #member-page .member-records {
    grid-template-columns: 1fr
  }

  .member-sheet-title {
    flex-wrap: wrap
  }

  .member-sheet-title span {
    font-size: 12px
  }
}

@media(max-width:760px) {

  #designer .sole-option strong{
    font-size: 16px;
  }
  #designer .sole-option small{
    font-size: 12px;
  }
  body .showcase.member-mode {
    padding: 50px 0 ;
  }

  .member-mode .showcase-watermark {
    opacity: .1
  }

  #member-page .member-layout {
    display: block;
    grid-template-columns: 1fr
  }

  #member-page .member-story {
    display: none
  }

  #member-page .member-story-foot {
    display: none
  }

  #member-page .member-form-card {
    padding: 28px 22px
  }

  #member-page .member-tabs {
    margin-top: 32px;
    gap: 20px
  }

  #member-page .member-tabs [role="button"] {
    font-size: 14px
  }

  #member-page .member-sms {
    gap: 8px
  }

  #member-page .member-sms [role="button"] {
    width: 120px;
    font-size: 13px
  }

  #member-page .member-center-heading {
    height: auto;
    padding-bottom: 20px;
    align-items: start
  }

  #member-page .member-center-heading h1 {
    font-size: 28px;
    line-height: 42px
  }

  #member-page .member-center-heading p {
    font-size: 12px;
    line-height: 24px
  }

  #member-page .member-center-heading>.primary {
    padding: 0 14px;
    font-size: 12px;
    min-width: 0
  }

  #member-page .member-center-heading:after {
    width: 150px
  }

  #member-page .member-center-layout {
    display: block;
    margin-top: 20px
  }

  #member-page .member-side {
    height: auto;
    padding: 16px;
    margin-bottom: 16px
  }

  #member-page .member-side nav {
    display: flex;
    margin: 0;
    gap: 8px
  }

  #member-page .member-side nav [role="button"] {
    width: auto;
    flex: 1;
    font-size: 12px;
    height: 44px;
    min-height: 44px
  }

  #member-page .member-center-body {
    height: auto;
    min-height: 480px;
    padding: 24px 18px;
    overflow-x: hidden
  }

  /* Profile form is 648px on PC; on mobile flex+min-width:auto kept that width and clipped labels. */
  #member-page .member-center-body[data-section="profile"] {
    display: block;
    align-items: stretch;
    justify-content: flex-start
  }

  #member-page .member-body-pane {
    min-width: 0;
    width: 100%
  }

  #member-page .profile-form {
    width: 100%;
    max-width: 100%;
    min-width: 0
  }

  #member-page .member-section-heading h2 {
    font-size: 22px
  }

  #member-page .member-section-heading p {
    font-size: 12px;
    line-height: 24px
  }

  #member-page .member-center>.member-local-note {
    font-size: 11px
  }

  #member-page .member-security-row>* {
    font-size: 12px;
    padding: 0 8px
  }

  #member-page .member-empty {
    padding-top: 32px
  }

  #member-page .member-empty h3 {
    font-size: 18px
  }

  #member-page .member-empty p {
    font-size: 12px
  }

  #member-page .member-detail-table>div {
    grid-template-columns: 90px 1fr;
    font-size: 13px;
    gap: 12px
  }

  #member-page .member-detail-views svg {
    height: 130px
  }

  #member-page #change-form .member-sms [role="button"] {
    width: 120px
  }

  body #modal.design-sheet-modal .modal-panel {
    padding: 36px 18px
  }

  .design-sheet-modal .sheet-modal-heading {
    align-items: start;
    gap: 12px
  }

  .design-sheet-modal .sheet-modal-heading h2 {
    font-size: 20px
  }

  .design-sheet-modal .sheet-modal-heading p {
    font-size: 12px
  }

  .design-sheet-modal #download-design {
    font-size: 12px;
    padding: 0 12px;
    line-height: 48px;

  }

  .design-sheet-modal #download-design img{
    position: relative;
    top: 4px;
    width: 18px;
    height: 18px;
    margin-left: 3px;
  }

  .member-sheet-preview {
    padding: 16px 12px
  }

  .member-sheet-title h3 {
    font-size: 18px
  }

  .member-sheet-views {
    padding: 12px 6px;
    gap: 8px
  }

  .member-sheet-views svg {
    height: 140px
  }

  .member-sheet-views figcaption {
    font-size: 12px;
    margin-top: 0
  }

  .member-sheet-summary {
    gap: 8px;
    margin-top: 16px;
    justify-content: start
  }

  .member-sheet-summary p {
    font-size: 12px
  }
}

/* ===== embroidery-gallery.css ===== */
#designer .emb-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 12px 16px 0
}

#designer .emb-search-row label {
  white-space: nowrap;
  font-size: 16px;
  color: #8b7867
}

#designer #emb-search {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbbbad;
  border-radius: 8px;
  background: #faf8f4;
  font: 14px Arial, "Microsoft YaHei", sans-serif
}

#designer #emb-search::placeholder {
  color: #333;
  opacity: .5
}

#designer .emb-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 12px 12px 0 0;
  font-size: 14px;
  color: #8b7867
}

#designer #emb-result-count {
  margin-right: auto
}

#designer .emb-pagination [role="button"] {
  padding: 4px 12px;
  min-height: 32px;
  border: 1px solid #cbbbad;
  border-radius: 16px;
  color: #806650;
  font-size: 14px
}

#designer .emb-pagination [role="button"][disabled] {
  opacity: .4;
  cursor: default
}

#designer .emb-no-results {
  grid-column: 1/-1;
  padding: 24px 8px;
  font-size: 14px;
  color: #8b7867
}

#designer .emb-art-card>span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

@media(min-width:1001px) {
  /* Emb only — do not use :has(.emb-search-row): it stays true on review and kills scroll. */
  .showcase[data-design-step="3"] #designer #panel,
  #designer #panel[data-panel-step="3"] {
    display: flex;
    flex-direction: column;
    overflow: hidden !important
  }

  /* Our DOM nests step chrome in #panel-step-3 (ref puts them on #panel).
     Fill the absolute 480px panel so library flex height matches ref (~255px). */
  .showcase[data-design-step="3"] #designer #panel > #panel-step-3,
  #designer #panel[data-panel-step="3"] > #panel-step-3 {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden
  }

  .showcase[data-design-step="3"] #designer #panel-step-3 > :not(.emb-library),
  #designer #panel[data-panel-step="3"] #panel-step-3 > :not(.emb-library) {
    flex-shrink: 0
  }

  .showcase[data-design-step="3"] #designer #panel .emb-library,
  #designer #panel[data-panel-step="3"] .emb-library {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: 1 1 0% !important;
    overflow-x: hidden;
    overflow-y: auto
  }
}

@media(max-width:760px) {
  #designer .emb-search-row {
    gap: 8px
  }

  #designer .emb-search-row label {
    font-size: 13px
  }

  #designer .emb-pagination {
    gap: 6px;
    font-size: 12px
  }

  #designer .emb-pagination [role="button"] {
    font-size: 12px;
    padding: 4px 8px
  }
}

/* ===== mobile.css ===== */
/* Mobile workbench only. Same DOM as PC; layout via html.mobile-workbench + CSS. */
.mobile-preview-toggle {
  display: none
}

@media(max-width:760px) {
  html.mobile-workbench,
  html.mobile-workbench body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    scroll-behavior: auto
  }

  body .showcase:not(.member-mode) {
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    height: calc(100vh - 50px);
    height: calc(var(--mobile-height, 100dvh) - 50px);
    min-height: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    zoom: 1;
    margin: 0
  }

  .mobile-workbench .site-footer,
  .mobile-workbench footer,
  .mobile-workbench .footer,
  .mobile-workbench .designer-title,
  .mobile-workbench .designer-disclaimer {
    display: none !important
  }

  .mobile-workbench .mhead {
    display: block !important;
    z-index: 900
  }

  /* Static pages have no in-showcase header; fill the viewport. */
  #designer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    min-height: 0
  }

  #designer .workspace {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 0 calc(108px + env(safe-area-inset-bottom, 0px));
    border: 0;
    background: none;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px
  }

  #designer .steps {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    background: #e8e1d9;
    border: 0;
    overflow-y: auto
  }

  #designer .step {
    flex: none;
    min-height: 68px;
    width: 100%;
    padding: 8px 2px;
    white-space: normal;
    line-height: 18px;
    font-size: 11px;
    gap: 4px;
    border-radius: 0
  }

  #designer .step .num {
    font-size: 18px;
    line-height: 24px;
    color: inherit
  }

  #designer .step.active {
    background: #a28774;
    color: #fff
  }

  #designer .step.active:after {
    display: none
  }

  #designer .editor {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 8px 0 0;
    gap: 8px
  }

  #designer .config {
    order: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
    width: 100%;
    padding: 12px 10px 0;
    gap: 0;
    border: 0;
    border-radius: 8px;
    background: #ffffff80;
    overflow: hidden
  }

  html.mobile-workbench #designer #panel {
    position: static;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: auto;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    padding: 0 2px 30px;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #a28774 #e2cfba
  }

  /* Emb: keep panel clip; library keeps original 304px height + thin scrollbar. */
  html.mobile-workbench .showcase[data-design-step="3"] #designer #panel,
  html.mobile-workbench #designer #panel[data-panel-step="3"] {
    overflow: hidden !important;
    padding-right: 2px
  }

  html.mobile-workbench #designer #panel-step-3 {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 2px;
    max-height: 100%
  }

  html.mobile-workbench .showcase[data-design-step="4"] #designer #panel,
  html.mobile-workbench #designer #panel[data-panel-step="4"] {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    padding-right: 10px
  }

  html.mobile-workbench #designer #panel::-webkit-scrollbar,
  html.mobile-workbench .showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar,
  html.mobile-workbench #designer #panel[data-panel-step="4"]::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
    background: #e2cfba
  }

  html.mobile-workbench #designer #panel::-webkit-scrollbar-track,
  html.mobile-workbench .showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-track,
  html.mobile-workbench #designer #panel[data-panel-step="4"]::-webkit-scrollbar-track {
    background: #e2cfba !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel::-webkit-scrollbar-thumb,
  html.mobile-workbench .showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-thumb,
  html.mobile-workbench #designer #panel[data-panel-step="4"]::-webkit-scrollbar-thumb {
    background: #a28774 !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel::-webkit-scrollbar-button,
  html.mobile-workbench .showcase[data-design-step="4"] #designer #panel::-webkit-scrollbar-button,
  html.mobile-workbench #designer #panel[data-panel-step="4"]::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important
  }

  #designer .config>.part-guide {
    display: none
  }

  #designer .config>.panel-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #f3eee8;
    border-top: 1px solid #cbbbad;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
  }

  /* Containing block is the fixed showcase, not the options card. */
  #designer .config {
    position: static
  }

  #designer #prev {
    font-size: 13px;
    min-height: 44px;
    height: 44px;
    padding: 0 4px
  }

  #designer #next {
    min-width: 100px;
    width: auto;
    height: 44px;
    min-height: 44px;
    font-size: 14px;
    padding: 0 16px
  }

  #designer .mobile-finish {
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px
  }

  #designer #step-counter {
    gap: 4px
  }

  #designer #step-counter .step-current {
    font-size: 26px;
    line-height: 32px
  }

  #designer #step-counter .step-total {
    font-size: 16px;
    line-height: 24px
  }

  #designer .summary-bar {
    position: absolute;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    width: auto;
    height: 44px;
    padding: 4px 12px;
    background: #e8e1d9;
    border: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 19
  }

  #designer .summary-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center
  }

  #designer #save,
  #designer #contact-team {
    height: 32px;
    min-height: 32px;
    width: auto;
    padding: 0 12px;
    font-size: 12px
  }

  #designer #save-status {
    position: absolute;
    bottom: 48px;
    right: 12px;
    font-size: 12px;
    background: #f3eee8
  }

  #designer .stage {
    order: 1;
    flex: 0 0 clamp(180px, 30vh, 256px);
    min-height: 0;
    height: auto;
    padding: 8px;
    border: 1px solid #cbbbad70;
    border-radius: 8px;
    background: #ffffff40;
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr) 44px;
    gap: 4px;
    overflow: hidden
  }

  #designer .stage-head {
    position: static;
    align-items: center;
    gap: 4px
  }

  #designer .stage h2 {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    margin: 0
  }

  #designer .angle-label {
    display: none
  }

  #designer .history-tools {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px
  }

  #designer .history-tools>span {
    display: none
  }

  #designer .history-buttons {
    gap: 4px
  }

  #designer .history-buttons [role="button"],
  #designer .history-buttons button {
    height: 32px;
    width: 32px;
    min-height: 32px;
    min-width: 32px;
    padding: 6px
  }

  #designer .visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden
  }

  #designer #diagram,
  #designer #diagram svg,
  #designer .shoe-photo,
  #designer .shoe-photo img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain
  }

  #designer .angle-switch {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center
  }

  #designer .angle-card {
    width: auto;
    flex: 1;
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    line-height: 16px;
    padding: 4px
  }

  #designer .angle-mini {
    height: 26px;
    width: 40px;
    margin: 0
  }

  #designer .preview-config-note {
    display: none
  }

  #designer .stage:has(.preview-rotation) {
    flex-basis: clamp(240px, 36vh, 310px);
    grid-template-rows: 32px minmax(0, 1fr) 104px
  }

  #designer .angle-switch:has(.preview-rotation) {
    flex-wrap: wrap;
    height: 104px;
    align-content: start
  }

  #designer .angle-switch .preview-rotation {
    width: 100%;
    height: 60px;
    min-height: 60px;
    margin: 0;
    flex: none
  }

  #designer .decal-tool-tabs,
  #designer .decal-tool-tabs [role="button"],
  #designer .decal-tool-tabs button {
    height: 24px;
    min-height: 24px;
    font-size: 12px;
    line-height: 24px
  }

  #designer .decal-size-panel,
  #designer .decal-turn-panel {
    height: 36px;
    padding: 4px 36px 4px 8px
  }

  #designer .rotation-inputs {
    height: 28px;
    margin: 0
  }

  #designer .rotation-inputs [role="button"],
  #designer .rotation-inputs button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    min-width: 28px
  }

  #designer .decal-size-panel>output,
  #designer .decal-turn-panel .rotation-heading {
    top: 9px;
    right: 4px;
    font-size: 11px
  }

  #designer .model {
    height: auto;
    min-height: 150px;
    padding: 8px
  }

  #designer .model .shoe-photo {
    height: 74px
  }

  #designer .model strong,
  #designer .model small {
    font-size: 11px;
    line-height: 18px
  }

  #designer .part-tabs {
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px
  }

  #designer .part-tabs [role="button"],
  #designer .part-tabs button {
    padding: 6px 4px;
    font-size: 12px;
    height: 40px;
    min-height: 40px
  }

  #designer .panel-title,
  #designer #panel h3 {
    font-size: 18px;
    line-height: 26px
  }

  /* Same thin bar as PC/360: grid scrolls inside panel (not overlay panel bar). */
  html.mobile-workbench #designer #panel .swatches {
    height: 240px !important;
    max-height: 240px !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    padding-right: 12px;
    align-content: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    scrollbar-width: thin;
    scrollbar-color: #a28774 #e2cfba
  }

  html.mobile-workbench #designer #panel-step-3 .emb-library {
    height: 304px !important;
    max-height: 304px !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    padding-right: 12px;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    scrollbar-width: thin;
    scrollbar-color: #a28774 #e2cfba
  }

  html.mobile-workbench #designer #panel-step-3 .emb-library::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
    background: #e2cfba
  }

  html.mobile-workbench #designer #panel-step-3 .emb-library::-webkit-scrollbar-track {
    background: #e2cfba !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel-step-3 .emb-library::-webkit-scrollbar-thumb {
    background: #a28774 !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel-step-3 .emb-library::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important
  }

  html.mobile-workbench #designer #panel .swatches::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
    background: #e2cfba
  }

  html.mobile-workbench #designer #panel .swatches::-webkit-scrollbar-track {
    background: #e2cfba !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel .swatches::-webkit-scrollbar-thumb {
    background: #a28774 !important;
    border-radius: 4px
  }

  html.mobile-workbench #designer #panel .swatches::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important
  }

  #designer input:not([type=range]),
  #designer textarea,
  #designer select {
    font-size: 16px;
    max-width: 100%
  }

  #designer .emb-search-row {
    flex-wrap: wrap
  }

  #designer .emb-pagination {
    flex-wrap: wrap;
    gap: 4px
  }

  #designer .lining-option {
    padding: 10px;
    gap: 8px
  }

  #designer .lining-option strong {
    font-size: 13px
  }

  #designer .lining-option .lining-sample {
    width: 40px;
    height: 40px
  }

  #designer .review-row {
    font-size: 12px;
    gap: 8px
  }

  #designer .review-actions {
    flex-wrap: wrap
  }

  #designer .customer-fields {
    padding: 10px 0
  }

  #designer .mobile-preview-toggle {
    display: block;
    font-size: 11px;
    padding: 4px;
    min-height: 32px;
    color: #806650
  }

  #designer .stage.mobile-expanded {
    position: absolute;
    top: 0;
    right: 0;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 25;
    background: #eee7df;
    border-radius: 0;
    grid-template-rows: 44px minmax(0, 1fr) 120px
  }

  #designer .stage.mobile-expanded .angle-switch {
    height: auto;
    align-self: end
  }

  .mobile-keyboard #designer .stage {
    display: none
  }

  #member-page .member-story {
    display: none
  }

  #member-page .member-layout {
    display: block;
    min-height: 0;
    height: auto
  }

  #member-page .member-form-card {
    width: 100%;
    padding: 28px 22px
  }

  #member-page .member-form-card .member-demo {
    margin-top: 28px
  }

  .mobile-start-arrow {
    display: inline-block;
    width: 18px;
    height: 9px;
    background-color: currentColor;
    mask: var(--action-arrow-mask) center/contain no-repeat;
    -webkit-mask: var(--action-arrow-mask) center/contain no-repeat
  }
}

/* Revised mobile navigation: steps above the persistent previous/next bar. */
@media(max-width:760px) {
  #showcase input:focus,
  #showcase textarea:focus,
  #showcase select:focus {
    outline: none;
    box-shadow: none
  }

  #designer .workspace {
    display: block;
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px))
  }

  #designer .editor {
    height: 100%;
    padding: 8px;
    gap: 8px
  }

  #designer .steps {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    background: #eee7df;
    border-top: 1px solid #cbbbad;
    z-index: 20;
    overflow: hidden
  }

  #designer .step {
    min-height: 0;
    height: 64px;
    padding: 6px 2px;
    gap: 2px;
    font-size: 11px;
    line-height: 18px
  }

  #designer .step .num {
    font-size: 18px;
    line-height: 24px
  }

  #designer .summary-bar {
    left: auto;
    right: 16px;
    top: calc(var(--mobile-height, 100dvh) * .44 - 184px);
    bottom: auto;
    width: 56px;
    height: auto;
    padding: 0;
    background: none;
    z-index: 19
  }

  #designer .summary-actions {
    flex-direction: column;
    gap: 10px
  }

  #designer #save,
  #designer #contact-team {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 4px;
    font-size: 11px;
    line-height: 18px;
    border-radius: 50%;
    background: #f5f0e9f2;
    border: 1px solid #a28774;
    color: #8c705c;
    box-shadow: 0 2px 8px #68503b12
  }

  #designer #save-status {
    right: 64px;
    bottom: 0;
    max-width: 180px;
    padding: 4px 8px;
    border-radius: 4px
  }

  #designer #save-status:empty {
    display: none
  }

  #designer .visual {
    padding-right: 64px
  }

  #designer .stage {
    order: 0;
    flex-basis: 44vh;
    flex-basis: calc(var(--mobile-height, 100dvh) * .44)
  }

  #designer .stage-head {
    justify-content: flex-start
  }

  #designer .history-tools {
    position: absolute;
    right: 8px;
    top: 48px;
    z-index: 2
  }

  #designer .mobile-preview-toggle {
    margin-left: auto
  }

  #designer .angle-switch {
    padding-right: 0;
    justify-content: center
  }

  #designer .angle-card {
    flex: 0 1 144px
  }

  #designer:has(.preview-rotation) .summary-bar {
    top: calc(var(--mobile-height, 100dvh) * .44 - 248px)
  }

  #designer .stage.mobile-expanded .angle-switch {
    padding-right: 0
  }

  #designer .config {
    order: 1
  }

  #designer .stage:has(.preview-rotation) {
    flex-basis: 44vh;
    flex-basis: calc(var(--mobile-height, 100dvh) * .44)
  }

  #designer .stage.mobile-expanded {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px))
  }

  #designer .stage.mobile-expanded .visual {
    padding-right: 0
  }

  .mobile-keyboard #designer .summary-bar {
    display: none
  }
}

@media(max-width:760px) and (max-height:700px) {
  #designer:has(.preview-rotation) .summary-bar {
    top: 90px;
    width: 44px;
    right: 16px
  }

  #designer:has(.preview-rotation) .summary-actions {
    gap: 6px
  }

  #designer:has(.preview-rotation) #save,
  #designer:has(.preview-rotation) #contact-team {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 2px;
    font-size: 9px
  }
}

/* ===== 定制选项由视图渲染：多鞋型块与 data-role 结构适配 ===== */
/* 隐藏类：视图用 hidden 属性控制显隐 */
[data-sole-custom][hidden],
[data-role="lining-custom"][hidden],
[data-role="fabric-branch"][hidden],
[data-role="lining-branch"][hidden],
[data-role="selected-fabric"][hidden],
[data-role="emb-more"][hidden],
.swatch-set[hidden],
.model-soles[hidden],
[data-fabric-model][hidden],
[data-emb-model][hidden] {
  display: none !important;
}

/* 下拉选项按系列过滤时隐藏 */
#designer select[data-role="family"] option[hidden] {
  display: none;
}

/* 色卡组沿用原有 swatches 网格（原 #swatches 直接放 swatch，现在多一层 swatch-set） */
#designer .swatches .swatch-set {
  display: contents;
}

/* 刺绣「加载更多」按钮 */
#designer [data-role="emb-more"] {
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* 多鞋型块内的内里分支/鞋底块保持与原单块一致的排版 */
#designer [data-fabric-model] > [data-role="lining-branch"],
#designer [data-model-soles] > .sole-custom-wrap {
  margin-top: 8px;
}
