.wish-page-main {
  padding-bottom: 96px;
}

.wish-form {
  width: min(100% - 72px, 1440px);
  box-sizing: border-box;
  padding-inline-start: 8px;
}

.wish-page .content-category-filters {
  margin-bottom: 32px;
}

.wish-page .wish-status-navigation {
  margin-bottom: 48px;
}

.wish-form {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(310px, 360px);
  justify-content: start;
  gap: 24px;
  align-items: start;
  margin: 0 auto;
}

.wish-form-fields {
  display: grid;
  gap: 18px;
}

.wish-form-section,
.wish-summary-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 14px 44px rgba(64, 48, 39, 0.06);
}

.wish-form-section {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 26px;
}

.wish-form-section > header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wish-form-section > header > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(143, 64, 84, 0.35);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.wish-form-section h2,
.wish-summary-panel h2 {
  margin: 2px 0 0;
  font-family: var(--sans-light);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.3;
}

.wish-section-title-note {
  color: var(--muted);
  font-size: 0.56em;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wish-form-section .eyebrow,
.wish-summary-panel .eyebrow {
  margin: 0;
  color: var(--accent);
}

.wish-select-field,
.wish-text-field,
.wish-upload-field {
  display: grid;
  gap: 8px;
  color: var(--copy-ink);
  font-size: 14px;
}

.wish-text-field[hidden],
.wish-select-field[hidden],
.wish-choice-list[hidden] {
  display: none;
}

.wish-select-field > span,
.wish-text-field > span,
.wish-upload-field > span {
  font-weight: 600;
}

.wish-select-field select,
.wish-text-field input,
.wish-text-field textarea,
.wish-upload-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(41, 35, 31, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.wish-select-field select,
.wish-text-field input,
.wish-upload-field input {
  min-height: 50px;
  padding: 11px 13px;
}

.wish-model-family-field select,
.wish-model-family-field > .wish-select-placeholder {
  grid-area: 2 / 1;
}

.wish-model-family-field > .wish-select-placeholder {
  display: none;
  align-self: center;
  padding-inline: 14px 38px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  pointer-events: none;
}

.wish-model-family-field:has(select:invalid) > .wish-select-placeholder {
  display: block;
}

.wish-text-field textarea {
  min-height: 116px;
  padding: 13px;
  line-height: 1.7;
  resize: vertical;
}

.wish-note-field {
  display: grid;
  gap: 8px;
  color: var(--copy-ink);
  font-size: 14px;
}

.wish-note-field > label {
  font-weight: 600;
}

.wish-note-editor {
  overflow: hidden;
  border: 1px solid rgba(41, 35, 31, 0.2);
  border-radius: 12px;
  background: #fff;
}

.wish-note-editor textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  box-sizing: border-box;
  padding: 13px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.wish-note-editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.wish-voice-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(143, 64, 84, 0.14);
  background: #f8f3ed;
}

.wish-voice-entry small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wish-voice-privacy {
  color: var(--accent);
  font-weight: 600;
}

.wish-voice-button {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 104px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wish-voice-button.is-recording {
  background: var(--accent);
  color: #fff;
}

.wish-voice-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.wish-voice-button[data-service-ready="false"] {
  cursor: not-allowed;
}

.wish-voice-live {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(143, 64, 84, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.wish-voice-live[hidden] {
  display: none;
}

.wish-voice-recording {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.wish-voice-recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b13744;
  box-shadow: 0 0 0 4px rgba(177, 55, 68, 0.1);
  animation: wish-voice-recording-pulse 1.2s ease-in-out infinite;
}

@keyframes wish-voice-recording-pulse {
  50% {
    opacity: 0.48;
    transform: scale(0.82);
  }
}

.wish-voice-countdown {
  flex: 0 0 auto;
  min-width: 40px;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.wish-voice-meter {
  flex: 1 1 auto;
  min-width: 54px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 64, 84, 0.13);
}

.wish-voice-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b88794 0%, var(--accent) 70%, #a12f35 100%);
  transition: width 120ms ease-out;
}

.wish-voice-level {
  flex: 0 0 auto;
  min-width: 55px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.wish-voice-status {
  min-height: 0;
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
}

.wish-voice-status:empty {
  display: none;
}

.wish-voice-status.is-error {
  color: #a12f35;
}

.wish-choice-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
}

.wish-model-leading-pair,
.wish-model-size-row {
  display: contents;
}

.wish-choice-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.wish-choice-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.wish-choice-chip span {
  display: inline-flex;
  min-width: 78px;
  height: 42px;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(41, 35, 31, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--copy-ink);
  font-size: 14px;
  line-height: 1.2;
  transition: 160ms ease;
}

.wish-choice-chip input:focus-visible + span {
  outline: 3px solid rgba(143, 64, 84, 0.2);
  outline-offset: 2px;
}

.wish-choice-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.wish-choice-chip.is-disabled {
  cursor: not-allowed;
}

.wish-choice-chip.is-disabled span {
  border-color: rgba(41, 35, 31, 0.1);
  background: rgba(41, 35, 31, 0.05);
  color: rgba(41, 35, 31, 0.36);
}

.wish-field-hint,
.wish-market-note,
.wish-upload-field small,
.wish-data-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.wish-market-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(143, 64, 84, 0.06);
}

.wish-budget-guidance {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(161, 47, 53, 0.28);
  border-radius: 12px;
  background: rgba(161, 47, 53, 0.08);
  color: #8d282e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.wish-budget-guidance[hidden] {
  display: none;
}

.wish-rare-material-notice {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(143, 64, 84, 0.24);
  border-radius: 12px;
  background: rgba(143, 64, 84, 0.07);
  color: #7e303f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.wish-rare-material-notice[hidden] {
  display: none;
}

.wish-special-material-notice {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 64, 84, 0.28);
  border-radius: 14px;
  background: rgba(143, 64, 84, 0.07);
  color: var(--copy-ink);
  font-size: 14px;
  line-height: 1.7;
}

.wish-special-material-notice[hidden] {
  display: none;
}

.wish-special-material-notice p {
  margin: 0;
  color: #7e303f;
  font-weight: 600;
}

.wish-special-material-notice label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
}

.wish-special-material-notice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.wish-section-hint {
  font-size: 14px;
}

.wish-contact-emphasis {
  color: var(--accent);
  font-weight: 400;
}

.wish-image-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wish-image-preview[hidden] {
  display: none;
}

.wish-image-preview figure {
  margin: 0;
}

.wish-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.wish-summary-panel {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.wish-summary-text {
  min-height: 260px;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: #f4eee6;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.wish-summary-actions {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wish-summary-actions button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 20px;
  min-height: 0;
  padding: 18px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.wish-summary-actions button:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.wish-summary-actions button::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  content: "↗";
  font-family: var(--sans-light);
  font-size: 18px;
  font-weight: 300;
}

.wish-summary-actions button:hover,
.wish-summary-actions button:focus-visible {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
}

.wish-summary-actions button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.wish-summary-actions strong,
.wish-summary-actions span {
  grid-column: 1;
  display: block;
}

.wish-summary-actions strong {
  font-family: var(--sans-light);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.wish-summary-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.wish-summary-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.wish-submit-status {
  min-height: 0;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.wish-submit-status:empty {
  display: none;
}

.wish-submit-status.is-error {
  color: #a12f35;
}

@media (min-width: 761px) {
  .wish-page .listing-hero > p:last-child {
    max-width: none;
  }
}

@media (min-width: 901px) {
  .wish-form-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wish-form-section:nth-child(1),
  .wish-form-section:nth-child(2),
  .wish-form-section:nth-child(7),
  .wish-form-section:nth-child(8) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .wish-form {
    grid-template-columns: 1fr;
  }

  .wish-summary-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .wish-summary-actions span {
    font-size: clamp(10px, 3vw, 12px);
    letter-spacing: -0.02em;
  }

  .wish-page .wish-page-hero > p:last-child {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(10.5px, 3vw, 12px);
    letter-spacing: 0;
  }

  .wish-page-main {
    padding-bottom: 64px;
  }

  .wish-form {
    width: min(calc(100% - 28px), 520px);
  }

  .wish-form {
    padding-inline-start: 0;
  }

  .wish-form-section,
  .wish-summary-panel {
    border-radius: 18px;
  }

  .wish-form-section,
  .wish-summary-panel {
    padding: 20px;
  }

  .wish-form-section h2,
  .wish-summary-panel h2 {
    font-size: 23px;
  }

  .wish-choice-chip span {
    min-height: 42px;
    padding-inline: 13px;
  }

  #wishModelChoices {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 9px;
  }

  #wishModelChoices > .wish-field-hint {
    grid-column: 1 / -1;
  }

  #wishModelChoices > .wish-choice-chip {
    grid-column: span 3;
    min-width: 0;
  }

  #wishModelChoices[data-variant-count="3"] > .wish-choice-chip {
    grid-column: span 4;
  }

  #wishModelChoices[data-variant-count="6"] > .wish-choice-chip:nth-last-child(-n + 2) {
    grid-column: span 6;
  }

  #wishModelChoices[data-variant-count="7"] > .wish-choice-chip:nth-last-child(-n + 3) {
    grid-column: span 4;
  }

  #wishModelChoices > .wish-choice-chip span {
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 13px);
    letter-spacing: -0.02em;
  }

  .wish-model-leading-pair {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .wish-model-leading-pair .wish-choice-chip {
    min-width: 0;
  }

  .wish-model-leading-pair .wish-choice-chip span {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .wish-model-size-row {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .wish-model-size-row .wish-choice-chip {
    min-width: 0;
  }

  .wish-model-size-row .wish-choice-chip span {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  #wishColorChoices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  #wishColorChoices > .wish-field-hint {
    grid-column: 1 / -1;
  }

  #wishColorChoices .wish-choice-chip {
    min-width: 0;
  }

  #wishColorChoices .wish-choice-chip.is-wide-color-choice {
    grid-column: span 2;
  }

  #wishColorChoices .wish-choice-chip span {
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
    white-space: nowrap;
    font-size: clamp(11px, 3.25vw, 13px);
    letter-spacing: -0.02em;
  }

  #wishMaterialChoices,
  #wishHardwareChoices,
  #wishConditionChoices,
  .wish-form-section:nth-child(6) .wish-choice-list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 9px;
  }

  #wishMaterialChoices .wish-choice-chip,
  #wishHardwareChoices .wish-choice-chip,
  #wishConditionChoices .wish-choice-chip {
    grid-column: span 3;
    min-width: 0;
  }

  #wishConditionChoices .wish-choice-chip:last-child {
    grid-column: 1 / span 6;
  }

  #wishHardwareChoices .wish-choice-chip:nth-last-child(-n + 2),
  .wish-form-section:nth-child(6) .wish-choice-list .wish-choice-chip {
    grid-column: span 6;
    min-width: 0;
  }

  /* The extra goods choice uses the existing balanced final-row spans. */
  #wishMaterialChoices[data-choice-count="6"] .wish-choice-chip:nth-last-child(-n + 2) {
    grid-column: span 6;
  }

  #wishHardwareChoices[data-choice-count="7"] .wish-choice-chip:nth-last-child(-n + 3) {
    grid-column: span 4;
  }

  #wishMaterialChoices .wish-choice-chip span,
  #wishHardwareChoices .wish-choice-chip span,
  #wishConditionChoices .wish-choice-chip span,
  .wish-form-section:nth-child(6) .wish-choice-list .wish-choice-chip span {
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 13px);
    letter-spacing: -0.02em;
  }

  #wishConditionChoices .wish-choice-chip:nth-child(4) span {
    font-size: clamp(9px, 2.65vw, 12px);
    letter-spacing: -0.04em;
  }

  .wish-summary-text {
    min-height: 0;
    font-size: 16px;
  }

  .wish-note-editor textarea {
    min-height: 112px;
  }

  .wish-voice-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 10px 10px;
  }

  .wish-voice-entry small {
    font-size: 12px;
    line-height: 1.45;
  }

  .wish-voice-button {
    min-width: 92px;
    min-height: 38px;
    padding-inline: 12px;
  }

  .wish-voice-live {
    gap: 7px;
    padding-inline: 8px;
  }

  .wish-voice-recording {
    font-size: 11px;
  }

  .wish-voice-level {
    min-width: 51px;
    font-size: 10px;
  }
}
