.maker-proof { padding-block: 48px 64px; max-width: 1120px; }
.maker-proof__heading { max-width: 640px; margin-bottom: 32px; }
.maker-proof__heading h1, .maker-proof__heading h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.1; margin: 12px 0; }
.maker-proof__eyebrow { color: var(--accent); font-weight: 700; }
.maker-proof__workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 16px 40px; align-items: start; }
.maker-proof__workspace > * { min-width: 0; }
.maker-proof__toolbar { display: contents; }
.maker-proof__preview { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 20px; text-align: center; }
.maker-proof__groups { grid-column: 2; grid-row: 1; min-width: 0; }
.maker-proof__controls { grid-column: 2; grid-row: 2; }
.maker-proof__checker { width: min(100%, clamp(200px, 48vh, 440px)); margin-inline: auto; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background-color: #fff; background-image: conic-gradient(#f0eeeb 25%, transparent 0 50%, #f0eeeb 0 75%, transparent 0); background-size: 24px 24px; }
.maker-proof canvas { display: block; width: 100%; height: auto; }
.maker-proof__creation-image { display: block; width: min(100%, 512px); height: auto; margin: 24px auto; }
.maker-proof__action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.maker-proof__retry[hidden] { display: none; }
.maker-proof__controls fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.maker-proof__controls legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.maker-proof__group-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 4px 12px; }
.maker-proof__group-tabs button { min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: white; font: inherit; font-weight: 700; overflow-wrap: anywhere; cursor: pointer; }
.maker-proof__group-tabs button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.maker-proof__controls [hidden] { display: none; }
.maker-proof__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.maker-proof__choice { display: flex; gap: 8px; align-items: center; min-height: 78px; border: 2px solid var(--line); border-radius: 12px; background: white; padding: 8px; text-align: left; font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.maker-proof__choice img { flex-shrink: 0; width: 58px; height: 58px; object-fit: contain; }
.maker-proof__choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.maker-proof button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.maker-proof__preview p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.maker-proof__preview p:empty { display: none; }
.maker-proof__save { display: inline-block; margin-top: 8px; }
.maker-proof__save[hidden] { display: none; }
.maker-proof__publish-dialog { width: min(32rem, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: inherit; }
.maker-proof__publish-dialog::backdrop { background: rgb(37 33 45 / 50%); }
.maker-proof__submit { display: grid; gap: 10px; padding: clamp(16px, 4vw, 28px); }
.maker-proof__submit h2, .maker-proof__submit h3, .maker-proof__submit p { margin: 0; }
.maker-proof__submit input:not([type="submit"]), .maker-proof__submit textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.maker-proof__submit textarea { resize: vertical; }
.maker-proof__submit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 700px) {
  .maker-proof { padding-block: 24px 40px; }
  .maker-proof__workspace { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 16px; }
  .maker-proof__toolbar { display: block; position: sticky; top: 0; z-index: 2; background: var(--paper); }
  .maker-proof__controls { grid-column: 1; grid-row: 2; }
  .maker-proof__preview { position: static; display: grid; grid-template-columns: minmax(0, min(140px, 40%)) minmax(0, 1fr); align-items: center; gap: 8px 12px; max-width: none; width: 100%; margin: 0; padding-block: 8px; }
  .maker-proof__preview .maker-proof__checker { width: 100%; padding: 8px; border-radius: 16px; }
  .maker-proof__action-buttons { margin-top: 0; }
  .maker-proof__action-buttons .public-button { min-height: 44px; padding: 8px 10px; font-size: .9rem; }
  .maker-proof__preview p { margin: 0; font-size: .8rem; }
  .maker-proof__group-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .maker-proof__group-tabs button { min-width: 0; }
  .maker-proof__choice { gap: 6px; min-height: 72px; font-size: .9rem; }
  .maker-proof__choice img { width: 44px; height: 44px; }
}

@media (max-width: 700px) and (max-height: 520px) {
  .maker-proof__toolbar { position: static; }
}

@media (min-width: 701px) and (max-height: 520px) {
  .maker-proof__workspace::after { content: ""; grid-column: 2; grid-row: 3; height: 100px; }
  .maker-proof__preview { grid-row: 1 / span 3; }
  .maker-proof__preview .maker-proof__checker { width: min(100%, max(120px, calc(100vh - 160px))); margin-inline: auto; }
}

@media (max-width: 360px) {
  .maker-proof__choice { gap: 4px; padding: 6px; font-size: .82rem; }
  .maker-proof__choice img { width: 36px; height: 36px; }
}

.creation-receipt { max-width: 920px; padding-block: clamp(36px, 7vw, 88px); }
.creation-receipt__card { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 52px); align-items: center; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 18px 55px rgb(64 40 121 / 7%); }
.creation-receipt__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: #f4f0ff; }
.creation-receipt__art img { display: block; width: 88%; height: auto; }
.creation-receipt__eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.creation-receipt h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.04em; }
.creation-receipt__name { margin: 14px 0 0; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.creation-receipt__message { margin: 8px 0 0; line-height: 1.55; }
.creation-receipt__detail { margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.creation-receipt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.creation-receipt__back { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.creation-receipt__spinner { width: 48px; height: 48px; border: 5px solid #ded5ff; border-top-color: var(--accent); border-radius: 50%; animation: receipt-spin 1s linear infinite; }
.creation-receipt__error { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff0dd; color: #8c5209; font-size: 1.8rem; font-weight: 800; }
@keyframes receipt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .creation-receipt__spinner { animation: none; } }
@media (max-width: 600px) {
  .creation-receipt__card { grid-template-columns: 1fr; gap: 22px; }
  .creation-receipt__art { width: min(180px, 100%); }
  .creation-receipt__actions { flex-direction: column; }
}
