/* Customiser: matches the site theme (cream, charcoal, gold, Playfair + Outfit). */
.cz-main { max-width: 920px; margin: 0 auto; padding: clamp(6rem, 14vh, 9rem) clamp(1rem, 4vw, 2rem) clamp(5rem, 12vh, 8rem); font-family: 'Outfit', sans-serif; color: var(--text-main); }
.cz-head { text-align: center; margin-bottom: 2.5rem; }
.cz-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 1rem; }
.cz-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: .8rem; }
.cz-lead { color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.cz-card { background: var(--glass-header); border: 1px solid var(--glass-border); border-radius: 20px; padding: clamp(1.1rem, 2.4vw, 1.8rem); margin-bottom: clamp(.8rem, 2vh, 1.4rem); backdrop-filter: blur(12px); }
.cz-card h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: .3rem; }
.cz-form[hidden], .cz-card[hidden], .cz-savebar[hidden] { display: none; }

.cz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.2rem); margin-top: 1rem; }
.cz-field.wide { grid-column: 1 / -1; }
.cz-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.cz-hint { font-size: .8rem; color: var(--text-muted); margin: .2rem 0 .5rem; line-height: 1.5; }

.cz-input { width: 100%; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--bg-main); color: var(--text-main); font: inherit; font-size: .95rem; }
.cz-input:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px var(--accent-gold-glow); }
.cz-input.small { padding: .45rem .7rem; font-size: .8rem; }
textarea.cz-input { resize: vertical; }
.cz-row { display: flex; gap: .6rem; margin: .5rem 0; }
.cz-check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; cursor: pointer; }

.cz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.8rem; padding: 0 1.2rem; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--bg-main); color: var(--text-main); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cz-btn:hover:not(:disabled) { border-color: var(--accent-gold); }
.cz-btn:disabled { opacity: .5; cursor: not-allowed; }
.cz-btn.ghost { background: transparent; }
.cz-btn-dark { background: #2d3436; color: #fff; border-color: #2d3436; }
.cz-btn-gold { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); font-weight: 600; }

.cz-single { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.cz-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #eee; display: block; }
.cz-thumb.big { width: 96px; height: 96px; aspect-ratio: auto; }
.cz-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin-bottom: .6rem; }
.cz-photo { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.cz-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: .75rem; }
.cz-x.inline { position: static; background: transparent; color: var(--text-muted); font-size: 1rem; }
.cz-x:hover { background: #c0392b; color: #fff; }

.cz-item { border: 1px solid var(--glass-border); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; background: var(--bg-main); }
.cz-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; font-size: .85rem; }
.cz-item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cz-item-fields .wide { grid-column: 1 / -1; }

.cz-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: .7rem; align-items: center; justify-content: flex-end; padding: clamp(.6rem, 1.4vh, .9rem) clamp(.8rem, 4vw, 1.5rem); background: var(--glass-header); backdrop-filter: blur(14px); border-top: 1px solid var(--glass-border); }
.cz-savestate { margin-right: auto; font-size: .82rem; color: var(--text-muted); }

.cz-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: #2d3436; color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; }
.cz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cz-toast.bad { background: #b83227; }

@media (max-width: 640px) {
    .cz-grid, .cz-item-fields { grid-template-columns: 1fr; }
    .cz-row { flex-direction: column; }
}

.top-nav .logo { text-decoration: none; color: inherit; }
input[type="color"].cz-input { height: 2.9rem; padding: .3rem .4rem; cursor: pointer; }
.cz-item-head strong { text-transform: capitalize; }
