[x-cloak] { display: none !important; }
body { background-color: #f3f0e9; }
.top-stripe { height: 5px; background: repeating-linear-gradient(90deg, #9d3039 0 18px, #f8f5ef 18px 22px, #9d3039 22px 26px, #f8f5ef 26px 30px); }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-mark-small { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.brand-mark-preview { display: block; width: 32px; height: 32px; margin: 0 auto 12px; }
.font-display { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.035em; }
.eyebrow, .meta-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a03942; }
.edition-label { border: 1px solid #dcd4c9; padding: 10px 12px; color: #8c8175; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.panel { border: 1px solid #e4ded5; border-radius: 4px; background: #fffefa; box-shadow: 0 8px 30px rgba(71, 52, 33, .035); }
.field-label { color: #514a42; font-size: 12px; font-weight: 700; }
.field { display: block; width: 100%; height: 42px; border: 1px solid #ded9d1; border-radius: 3px; background: #fff; padding: 0 11px; color: #39342e; font-size: 13px; font-weight: 400; outline: none; }
.field:focus { border-color: #a03942; box-shadow: 0 0 0 2px #a0394220; }
.field-hint { display: block; margin-top: 6px; color: #a49b90; font-size: 11px; font-weight: 400; }
.motif-list { max-height: 270px; overflow-y: auto; border: 1px solid #e7e1d8; border-radius: 3px; }
.motif-option { display: flex; align-items: center; gap: 12px; min-height: 57px; padding: 7px 10px; cursor: pointer; }
.motif-option + .motif-option { border-top: 1px solid #f0ece6; }
.motif-option:hover { background: #faf6f0; }
.motif-option img { width: 40px; height: 40px; object-fit: contain; background: white; }
.motif-option input { width: 16px; height: 16px; }
.generate-button { display: flex; width: 100%; align-items: center; justify-content: space-between; border-radius: 3px; background: #9d3039; padding: 14px 16px; color: white; font-size: 13px; font-weight: 700; transition: background .2s; }
.generate-button:hover { background: #7f242d; }
.generate-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { border: 1px solid #ded6cc; border-radius: 3px; padding: 9px 13px; color: #62584d; font-size: 12px; font-weight: 700; }
.secondary-button:hover { border-color: #a03942; color: #a03942; }
.preview-area { display: flex; height: min(72vh, 820px); min-height: 420px; overflow: auto; align-items: flex-start; justify-content: center; padding: 32px; background-color: #f4f0e9; background-image: linear-gradient(#e9e3da 1px, transparent 1px), linear-gradient(90deg, #e9e3da 1px, transparent 1px); background-size: 24px 24px; }
.preview-empty { margin: auto; text-align: center; color: #a49a8e; font-size: 13px; }
.belt-preview { display: block; width: min(100%, 360px); max-width: none; height: auto; box-shadow: 0 8px 24px #5b423323; }
.is-horizontal { align-items: center; justify-content: flex-start; }
.is-horizontal .belt-preview { width: auto; height: min(100%, 280px); max-width: none; }
.sign-tag { border: 1px solid #ede5db; background: #fbf8f3; padding: 6px 9px; color: #756a5e; font-size: 11px; text-transform: capitalize; }
.array-viewport { display: flex; max-height: 72vh; min-height: 420px; overflow: auto; align-items: flex-start; justify-content: center; padding: 24px; background-color: #f4f0e9; }
.array-viewport.is-horizontal { align-items: center; justify-content: flex-start; }
#array-canvas { image-rendering: pixelated; max-width: none; }
.orientation-button { border: 1px solid #ded6cc; padding: 8px 11px; color: #62584d; font-size: 11px; font-weight: 700; }
.orientation-button:first-child { border-radius: 3px 0 0 3px; }
.orientation-button:last-child { border-radius: 0 3px 3px 0; }
.orientation-button + .orientation-button { margin-left: -1px; }
.orientation-button.is-active { position: relative; border-color: #9d3039; background: #9d3039; color: white; }
.array-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1px solid #ded9d1; background: white; vertical-align: -1px; }
.array-swatch-red { border-color: #d4145a; background: #d4145a; }
@media (max-width: 640px) { .preview-area { min-height: 350px; padding: 20px; } }
@media (max-width: 640px) { .array-viewport { min-height: 350px; padding: 16px; } }
