/* =============================================================================
 * 🔷 UAC Exhibitions — React Showcase Styles (v1.0.3)
 * Monochrome #000000 / #ffffff · 22px kanban borders · shimmer · fully responsive
 * Namespaced under .uac-ex-* and :root custom props to guarantee zero theme conflict.
 * Author: Bitghost.com <ghost@bitghost.com>
 * ========================================================================== */

:root {
    --uac-ex-black: #000000;
    --uac-ex-white: #ffffff;
    --uac-ex-g50:  #fafafa;
    --uac-ex-g100: #f4f4f4;
    --uac-ex-g200: #e7e7e7;
    --uac-ex-g300: #d4d4d4;
    --uac-ex-g400: #a3a3a3;
    --uac-ex-g500: #737373;
    --uac-ex-g600: #525252;
    --uac-ex-g700: #404040;
    --uac-ex-g800: #262626;
    --uac-ex-g900: #171717;
    --uac-ex-accent: #000000;          /* tunable single accent (kept monochrome) */
    --uac-ex-radius: 22px;             /* the signature kanban border */
    --uac-ex-radius-sm: 12px;
    --uac-ex-border: 1.5px solid var(--uac-ex-black);
    --uac-ex-border-soft: 1.5px solid var(--uac-ex-g200);
    --uac-ex-shadow: 0 18px 50px -22px rgba(0,0,0,.55);
    --uac-ex-shadow-lg: 0 40px 90px -30px rgba(0,0,0,.7);
    --uac-ex-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --uac-ex-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --uac-ex-ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- scope / reset ---------- */
.uac-ex-app, .uac-ex-app *,
.uac-ex-modal-overlay, .uac-ex-modal-overlay *,
.uac-ex-lightbox, .uac-ex-three-overlay, .uac-ex-three-overlay * {
    box-sizing: border-box;
}
.uac-ex-app {
    font-family: var(--uac-ex-font);
    color: var(--uac-ex-g900);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.uac-ex-app img { max-width: 100%; height: auto; display: block; }
.uac-ex-app a { color: var(--uac-ex-black); text-decoration: none; border-bottom: 1px solid var(--uac-ex-g300); transition: border-color .2s; }
.uac-ex-app a:hover { border-color: var(--uac-ex-black); }
.mono { font-family: var(--uac-ex-mono); font-size: .8em; letter-spacing: -.01em; }
.muted { color: var(--uac-ex-g500); }

/* ---------- keyframes ---------- */
@keyframes uac-ex-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes uac-ex-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes uac-ex-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes uac-ex-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---------- loading ---------- */
.uac-ex-loading { padding: 64px 24px; text-align: center; color: var(--uac-ex-g500); }
.uac-ex-loading__shimmer {
    height: 6px; width: min(440px, 80%); margin: 0 auto 18px; border-radius: 999px;
    background: linear-gradient(90deg, var(--uac-ex-g200) 25%, var(--uac-ex-g100) 37%, var(--uac-ex-g200) 63%);
    background-size: 200% 100%; animation: uac-ex-shimmer 1.4s ease infinite;
}
.uac-ex-loading p { animation: uac-ex-pulse 1.6s ease infinite; font-family: var(--uac-ex-mono); font-size: 13px; }
.uac-ex-empty { padding: 38px 20px; text-align: center; color: var(--uac-ex-g500); border: 1.5px dashed var(--uac-ex-g300); border-radius: var(--uac-ex-radius); }
.uac-ex-notice { padding: 22px; border: var(--uac-ex-border); border-radius: var(--uac-ex-radius); background: var(--uac-ex-g50); font-weight: 500; }

/* ---------- headings ---------- */
.uac-ex-h2 {
    font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em;
    margin: 0 0 22px; color: var(--uac-ex-black); position: relative; padding-bottom: 14px;
}
.uac-ex-h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--uac-ex-black); border-radius: 999px; }

/* ---------- buttons ---------- */
.uac-ex-btn {
    --b: var(--uac-ex-black);
    appearance: none; cursor: pointer; font-family: var(--uac-ex-font); font-weight: 600; font-size: 14px;
    padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--uac-ex-white);
    color: var(--b); display: inline-flex; align-items: center; gap: 8px; line-height: 1;
    transition: transform .15s var(--uac-ex-ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.uac-ex-btn:hover { transform: translateY(-1px); }
.uac-ex-btn:active { transform: translateY(0); }
.uac-ex-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.uac-ex-btn--primary {
    background: var(--uac-ex-black); color: var(--uac-ex-white);
    background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
    background-size: 220% 100%; background-repeat: no-repeat;
}
.uac-ex-btn--primary:hover { animation: uac-ex-shimmer 1.1s ease; box-shadow: var(--uac-ex-shadow); }
.uac-ex-btn--accent { background: var(--uac-ex-g900); color: var(--uac-ex-white); border-color: var(--uac-ex-g900); }
.uac-ex-btn--accent:hover { background: var(--uac-ex-black); }
.uac-ex-btn--ghost { background: transparent; }
.uac-ex-btn--ghost:hover { background: var(--uac-ex-black); color: var(--uac-ex-white); }
.uac-ex-btn--text { border-color: transparent; background: transparent; padding: 10px 12px; }
.uac-ex-btn--text:hover { background: var(--uac-ex-g100); transform: none; }
.uac-ex-btn--text.danger { color: #b91c1c; }
.uac-ex-btn--text.danger:hover { background: #fef2f2; }

/* ---------- badges ---------- */
.uac-ex-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--uac-ex-black);
}
.uac-ex-badge--current { background: var(--uac-ex-black); color: var(--uac-ex-white); }
.uac-ex-badge--current::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--uac-ex-white); animation: uac-ex-pulse 1.6s ease infinite; }
.uac-ex-badge--past { background: var(--uac-ex-white); color: var(--uac-ex-g600); border-color: var(--uac-ex-g300); }

/* ---------- card ---------- */
.uac-ex-card {
    background: var(--uac-ex-white); border: var(--uac-ex-border-soft); border-radius: var(--uac-ex-radius);
    overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative;
    transition: transform .25s var(--uac-ex-ease), box-shadow .25s, border-color .25s; animation: uac-ex-fade .5s var(--uac-ex-ease) both;
}
.uac-ex-card:hover { transform: translateY(-6px); box-shadow: var(--uac-ex-shadow); border-color: var(--uac-ex-black); }
.uac-ex-card:focus-visible { outline: 3px solid var(--uac-ex-black); outline-offset: 3px; }
.uac-ex-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--uac-ex-g100); overflow: hidden; }
.uac-ex-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--uac-ex-ease); }
.uac-ex-card:hover .uac-ex-card__media img { transform: scale(1.06); }
.uac-ex-card__media .uac-ex-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.uac-ex-card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; background:
    repeating-linear-gradient(45deg, var(--uac-ex-g100), var(--uac-ex-g100) 12px, var(--uac-ex-g50) 12px, var(--uac-ex-g50) 24px); }
.uac-ex-card__body { padding: 20px 22px 8px; flex: 1; }
.uac-ex-card__title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: var(--uac-ex-black); }
.uac-ex-card__meta { margin: 4px 0; font-size: 13.5px; color: var(--uac-ex-g600); }
.uac-ex-card__cta { padding: 14px 22px 20px; font-weight: 700; font-size: 14px; color: var(--uac-ex-black); transition: gap .2s; }
.uac-ex-card--lg .uac-ex-card__media { aspect-ratio: 16 / 9; }
.uac-ex-card--lg .uac-ex-card__title { font-size: clamp(24px, 3vw, 32px); }

/* ---------- carousel ---------- */
.uac-ex-carousel { position: relative; }
.uac-ex-carousel__viewport { overflow: hidden; border-radius: var(--uac-ex-radius); }
.uac-ex-carousel__track { display: flex; transition: transform .6s var(--uac-ex-ease); }
.uac-ex-carousel__slide { min-width: 100%; padding: 2px; }
.uac-ex-carousel__nav {
    position: absolute; top: 38%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%;
    border: var(--uac-ex-border); background: var(--uac-ex-white); color: var(--uac-ex-black); font-size: 26px; line-height: 1;
    cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; box-shadow: var(--uac-ex-shadow);
}
.uac-ex-carousel__nav:hover { background: var(--uac-ex-black); color: var(--uac-ex-white); }
.uac-ex-carousel__nav.prev { left: -10px; }
.uac-ex-carousel__nav.next { right: -10px; }
.uac-ex-carousel__dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.uac-ex-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--uac-ex-black); background: transparent; cursor: pointer; padding: 0; transition: all .2s; }
.uac-ex-dot.is-active { background: var(--uac-ex-black); transform: scale(1.25); }

/* ---------- grid ---------- */
.uac-ex-grid { display: grid; grid-template-columns: repeat(var(--uac-cols, 3), 1fr); gap: 26px; }

/* ---------- showcase blocks ---------- */
.uac-ex-showcase { display: flex; flex-direction: column; gap: 64px; }
.uac-ex-block { animation: uac-ex-fade .6s var(--uac-ex-ease) both; }

/* ---------- detail view ---------- */
.uac-ex-detail { animation: uac-ex-fade .5s var(--uac-ex-ease) both; }
.uac-ex-hero {
    position: relative; min-height: clamp(320px, 52vh, 560px); border-radius: var(--uac-ex-radius); overflow: hidden;
    background-size: cover; background-position: center; display: flex; align-items: flex-end; color: var(--uac-ex-white);
    border: var(--uac-ex-border);
}
.uac-ex-hero--plain { background: var(--uac-ex-black); padding: 48px; display: block; }
.uac-ex-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); }
.uac-ex-hero__inner { position: relative; z-index: 2; padding: clamp(24px, 5vw, 54px); width: 100%; }
.uac-ex-hero__title { font-size: clamp(30px, 6vw, 64px); font-weight: 900; letter-spacing: -.03em; margin: 14px 0 10px; line-height: 1.02; }
.uac-ex-hero__meta { font-size: clamp(14px, 2vw, 18px); opacity: .92; font-weight: 500; }
.uac-ex-hero .uac-ex-badge--past { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }

.uac-ex-detail__body { max-width: 980px; margin: 0 auto; padding: 40px 4px 0; }
.uac-ex-section { margin-bottom: 44px; }
.uac-ex-3dbtn { font-size: 15px; padding: 14px 24px; }
.uac-ex-prose { font-size: 17px; line-height: 1.75; color: var(--uac-ex-g800); }
.uac-ex-prose p { margin: 0 0 1em; }

.uac-ex-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.uac-ex-meta-card { border: var(--uac-ex-border-soft); border-radius: var(--uac-ex-radius); padding: 22px 24px; background: var(--uac-ex-g50); }
.uac-ex-meta-card h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--uac-ex-g500); }
.uac-ex-meta-card p { margin: 3px 0; font-size: 16px; font-weight: 600; color: var(--uac-ex-g900); }
.uac-ex-meta-card p.muted { font-weight: 400; }

.uac-ex-artist-block { margin-bottom: 40px; }
.uac-ex-artist-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: var(--uac-ex-border-soft); }
.uac-ex-artist-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: var(--uac-ex-border); }
.uac-ex-artist-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.uac-ex-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.uac-ex-gallery__item { padding: 0; border: none; background: var(--uac-ex-g100); cursor: pointer; border-radius: var(--uac-ex-radius-sm); overflow: hidden; aspect-ratio: 1; }
.uac-ex-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--uac-ex-ease); }
.uac-ex-gallery__item:hover img { transform: scale(1.08); }
.uac-ex-detail__footer { margin-top: 40px; padding: 28px 0; border-top: var(--uac-ex-border-soft); text-align: center; color: var(--uac-ex-g500); font-size: 13px; }

/* ---------- lightbox ---------- */
.uac-ex-lightbox { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px 28px; animation: uac-ex-pop .25s var(--uac-ex-ease); overflow-y: auto; }
.uac-ex-lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 94vw; margin: auto; }
.uac-ex-lightbox__img { max-width: 90vw; max-height: 64vh; object-fit: contain; border-radius: 8px; box-shadow: var(--uac-ex-shadow-lg); }
.uac-ex-lightbox__close { position: fixed; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; z-index: 2; }
.uac-ex-lightbox__close:hover { background: #fff; color: #000; }
.uac-ex-lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(0,0,0,.4); color: #fff; font-size: 32px; cursor: pointer; z-index: 2; }
.uac-ex-lightbox__nav:hover { background: #fff; color: #000; }
.uac-ex-lightbox__nav.prev { left: 24px; }
.uac-ex-lightbox__nav.next { right: 24px; }

/* ---------- museum plaque (lightbox + shared) ---------- */
.uac-ex-plaque { width: min(560px, 92vw); background: #0b0b0b; border: 1.5px solid rgba(255,255,255,.18); border-radius: 16px; padding: 22px 28px; color: #fff; text-align: left; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.uac-ex-plaque__artist { font-family: var(--uac-ex-font); font-weight: 800; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.uac-ex-plaque__artist::after { content: ""; display: block; width: 64px; height: 2px; background: rgba(255,255,255,.32); margin-top: 10px; }
.uac-ex-plaque__title { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 18px; color: #dcdcdc; margin-top: 12px; }
.uac-ex-plaque__detail { font-size: 14px; color: #9d9d9d; margin-top: 7px; letter-spacing: .02em; }
.uac-ex-plaque__credit { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 13px; color: #7d7d7d; margin-top: 7px; }
.uac-ex-plaque__edit { margin-top: 16px; background: transparent; border: 1px solid rgba(255,255,255,.38); color: #fff; border-radius: 999px; padding: 8px 18px; font-family: var(--uac-ex-font); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.uac-ex-plaque__edit:hover { background: #fff; color: #000; }
/* editor */
.uac-ex-plaque--edit { width: min(560px, 92vw); }
.uac-ex-plaque__form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.uac-ex-plaque__row { display: flex; gap: 10px; }
.uac-ex-plaque__in { width: 100%; background: #141414; border: 1.5px solid rgba(255,255,255,.18); border-radius: 10px; padding: 11px 14px; color: #fff; font-family: var(--uac-ex-font); font-size: 14px; transition: border-color .2s; }
.uac-ex-plaque__in::placeholder { color: #6a6a6a; }
.uac-ex-plaque__in:focus { outline: none; border-color: #fff; }
.uac-ex-plaque__in--sm { max-width: 150px; }
.uac-ex-plaque__in--artist { font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; border-color: rgba(255,255,255,.32); }
.uac-ex-plaque__in--artist::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }
.uac-ex-plaque__actions { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; }
.uac-ex-plaque__btn { border-radius: 999px; padding: 9px 20px; font-family: var(--uac-ex-font); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, opacity .2s; border: 1.5px solid #fff; }
.uac-ex-plaque__btn.solid { background: #fff; color: #000; }
.uac-ex-plaque__btn.solid:hover { background: #d8d8d8; }
.uac-ex-plaque__btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.uac-ex-plaque__btn.ghost:hover { background: rgba(255,255,255,.12); }
.uac-ex-plaque__btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- map (signature 22px) ---------- */
.uac-ex-map { width: 100%; border: var(--uac-ex-border); border-radius: var(--uac-ex-radius); overflow: hidden; background: var(--uac-ex-g100); z-index: 0; }
.uac-ex-map .leaflet-container { border-radius: var(--uac-ex-radius); font-family: var(--uac-ex-font); }

/* ---------- MODAL (22px draggable) ---------- */
.uac-ex-modal-overlay { position: fixed; inset: 0; z-index: 999998; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: uac-ex-pop .2s var(--uac-ex-ease); }
.uac-ex-modal {
    width: min(720px, 96vw); max-height: 92vh; background: var(--uac-ex-white); border: 2px solid var(--uac-ex-black);
    border-radius: var(--uac-ex-radius); box-shadow: var(--uac-ex-shadow-lg); display: flex; flex-direction: column; overflow: hidden;
    font-family: var(--uac-ex-font); will-change: transform;
}
.uac-ex-modal__header {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--uac-ex-black); color: var(--uac-ex-white);
    cursor: grab; user-select: none;
}
.uac-ex-modal__header:active { cursor: grabbing; }
.uac-ex-modal__grip { font-size: 18px; opacity: .6; letter-spacing: -2px; }
.uac-ex-modal__header h2 { margin: 0; font-size: 17px; font-weight: 700; flex: 1; letter-spacing: -.01em; }
.uac-ex-modal__close { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.uac-ex-modal__close:hover { background: #fff; color: #000; }
.uac-ex-modal__body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.uac-ex-modal__footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: var(--uac-ex-border-soft); background: var(--uac-ex-g50); }

.uac-ex-field { display: flex; flex-direction: column; gap: 7px; }
.uac-ex-field--half { flex: 1; }
.uac-ex-label { font-size: 13px; font-weight: 700; color: var(--uac-ex-g700); letter-spacing: .01em; }
.uac-ex-label em { color: #b91c1c; font-style: normal; }
.uac-ex-input {
    width: 100%; font-family: var(--uac-ex-font); font-size: 15px; padding: 12px 14px; border: var(--uac-ex-border-soft);
    border-radius: 14px; background: var(--uac-ex-white); color: var(--uac-ex-g900); transition: border-color .2s, box-shadow .2s;
}
.uac-ex-input:focus { outline: none; border-color: var(--uac-ex-black); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.uac-ex-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.uac-ex-row { display: flex; gap: 12px; align-items: flex-start; }
.uac-ex-row .uac-ex-input { flex: 1; }
.uac-ex-help { font-size: 12px; color: var(--uac-ex-g500); }
.uac-ex-alert { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; }
.uac-ex-alert--err { background: #fef2f2; color: #b91c1c; border: 1.5px solid #fecaca; }

.uac-ex-hero-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.uac-ex-hero-thumb { width: 88px; height: 66px; object-fit: cover; border-radius: 12px; border: var(--uac-ex-border); }
.uac-ex-hero-empty { width: 88px; height: 66px; display: grid; place-items: center; font-size: 28px; border: 1.5px dashed var(--uac-ex-g300); border-radius: 12px; background: var(--uac-ex-g50); }

/* artist repeater */
.uac-ex-artist-row { border: var(--uac-ex-border-soft); border-radius: var(--uac-ex-radius-sm); padding: 14px; margin-bottom: 12px; background: var(--uac-ex-g50); animation: uac-ex-pop .2s var(--uac-ex-ease); }
.uac-ex-artist-row__top { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.uac-ex-autocomplete { position: relative; flex: 1; min-width: 180px; }
.uac-ex-ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--uac-ex-white); border: var(--uac-ex-border); border-radius: 14px; box-shadow: var(--uac-ex-shadow); max-height: 240px; overflow-y: auto; }
.uac-ex-ac-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.uac-ex-ac-list li:hover { background: var(--uac-ex-g100); }
.uac-ex-ac-list li img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.uac-ex-ac-ph { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--uac-ex-g200); font-size: 14px; }
.uac-ex-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uac-ex-thumb { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: var(--uac-ex-border-soft); }
.uac-ex-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uac-ex-thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.75); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.uac-ex-thumb button:hover { background: #b91c1c; }
.uac-ex-add { align-self: flex-start; margin-top: 4px; }

/* ======================================================================
 * v1.0.4 — AGI Architect & Evolution Engine additions
 * ====================================================================== */

/* ---------- (b) media-frame stacking fix ----------
 * The draggable modal sits at z-index 999998; WordPress / Filebird's media modal
 * defaults to 160000 and so opened BEHIND it (see screenshots). While our picker
 * is open we lift the media frame above everything; scoped to the body flag so it
 * only applies during selection and never leaks into normal admin media usage. */
body.uac-ex-media-open .media-modal { z-index: 1000060 !important; }
body.uac-ex-media-open .media-modal-backdrop { z-index: 1000050 !important; }
body.uac-ex-media-open .uac-ex-modal-overlay { z-index: 999990; }

/* ---------- (c) drag-and-drop zones ---------- */
.uac-ex-drop { position: relative; border-radius: var(--uac-ex-radius-sm); transition: box-shadow .15s, background .15s; }
.uac-ex-drop.is-over { background: var(--uac-ex-g50); box-shadow: 0 0 0 2px var(--uac-ex-black); }
.uac-ex-drop.is-over::after { content: ''; position: absolute; inset: 3px; border: 2px dashed var(--uac-ex-black); border-radius: inherit; pointer-events: none; }
.uac-ex-drop__hint, .uac-ex-drop__busy {
    position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(2px); border-radius: inherit; pointer-events: none;
    font-weight: 700; font-size: 13px; color: var(--uac-ex-black); text-align: center;
}
.uac-ex-drop__busy { background: rgba(255,255,255,.94); }
.uac-ex-drop__caption { font-size: 12px; color: var(--uac-ex-g500); }
.uac-ex-hero-pick__cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uac-ex-hero-drop { padding: 4px; }
.uac-ex-gallery-drop { min-height: 54px; padding: 8px; margin-top: 10px; border: 1.5px dashed var(--uac-ex-g300); border-radius: var(--uac-ex-radius-sm); }
.uac-ex-gallery-drop .uac-ex-thumbs { margin-top: 0; }
.uac-ex-gallery-empty { display: flex; align-items: center; gap: 8px; padding: 8px 6px; font-size: 12.5px; color: var(--uac-ex-g500); }
.uac-ex-gallery-empty span { line-height: 1.4; }

/* spinner */
.uac-ex-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--uac-ex-g300); border-top-color: var(--uac-ex-black); display: inline-block; vertical-align: middle; animation: uac-ex-spin .7s linear infinite; }
@keyframes uac-ex-spin { to { transform: rotate(360deg); } }

/* draggable / reorderable thumbs */
.uac-ex-thumb { cursor: grab; }
.uac-ex-thumb:active { cursor: grabbing; }
.uac-ex-thumb__grip { position: absolute; top: 2px; left: 3px; z-index: 2; font-size: 11px; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.85); letter-spacing: -2px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.uac-ex-thumb:hover .uac-ex-thumb__grip { opacity: .92; }

/* ---------- (d) EventOn location autocomplete ---------- */
.uac-ex-loc-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; vertical-align: middle; }
.uac-ex-loc-badge.linked { background: var(--uac-ex-black); color: var(--uac-ex-white); }
.uac-ex-loc-badge.new { background: var(--uac-ex-g100); color: var(--uac-ex-g700); border: 1.5px solid var(--uac-ex-g300); }
.uac-ex-loc-list li { align-items: flex-start; }
.uac-ex-loc-pin { font-size: 14px; line-height: 1.4; }
.uac-ex-loc-meta { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.uac-ex-loc-meta strong { font-weight: 700; font-size: 14px; }
.uac-ex-loc-meta em { font-style: normal; font-size: 12px; color: var(--uac-ex-g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uac-ex-loc-count { font-size: 11px; font-weight: 700; color: var(--uac-ex-g500); background: var(--uac-ex-g100); border-radius: 999px; padding: 1px 8px; align-self: center; }
.uac-ex-loc-add { font-weight: 700; color: var(--uac-ex-black); border-top: 1.5px solid var(--uac-ex-g200); margin-top: 4px; padding-top: 10px !important; }
.uac-ex-loc-add:hover { background: var(--uac-ex-g100); }
.uac-ex-ac-state { color: var(--uac-ex-g500); font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: default; }
.uac-ex-ac-state:hover { background: transparent; }

/* ---------- manager ---------- */
.uac-ex-manager__bar { margin-bottom: 22px; display: flex; gap: 12px; }
.uac-ex-manager__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.uac-ex-mcard { border: var(--uac-ex-border-soft); border-radius: var(--uac-ex-radius); overflow: hidden; background: var(--uac-ex-white); display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.uac-ex-mcard:hover { border-color: var(--uac-ex-black); box-shadow: var(--uac-ex-shadow); }
.uac-ex-mcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--uac-ex-g100); }
.uac-ex-mcard__media img { width: 100%; height: 100%; object-fit: cover; }
.uac-ex-mcard__media .uac-ex-badge { position: absolute; top: 10px; left: 10px; }
.uac-ex-mcard__body { padding: 14px 16px 6px; flex: 1; }
.uac-ex-mcard__body h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.uac-ex-mcard__body p { margin: 2px 0; font-size: 13px; color: var(--uac-ex-g600); }
.uac-ex-mcard__actions { display: flex; gap: 6px; padding: 12px 16px; border-top: var(--uac-ex-border-soft); align-items: center; }
.uac-ex-mcard__actions .uac-ex-btn { padding: 8px 12px; font-size: 13px; }
.uac-ex-mcard__actions a { border-bottom: none; }

/* ---------- 3D overlay ---------- */
.uac-ex-three-overlay { position: fixed; inset: 0; z-index: 999999; background: #000; display: flex; flex-direction: column; animation: uac-ex-pop .25s var(--uac-ex-ease); }
.uac-ex-three-bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #000; color: #fff; border-bottom: 1px solid #222; height: 56px; }
.uac-ex-three-title { font-family: var(--uac-ex-font); font-weight: 700; font-size: 16px; }
.uac-ex-three-legend { font-family: var(--uac-ex-mono); font-size: 11px; color: #888; flex: 1; }
.uac-ex-three-close { margin-left: auto; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.uac-ex-three-close:hover { background: #fff; color: #000; }
.uac-ex-three-canvas-wrap { flex: 1; position: relative; overflow: hidden; cursor: grab; }
.uac-ex-three-canvas-wrap:active { cursor: grabbing; }
.uac-ex-three-canvas-wrap canvas { display: block; }
.uac-ex-three-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--uac-ex-mono); font-size: 12px; background: rgba(0,0,0,.5); padding: 8px 16px; border-radius: 999px; transition: opacity .6s; pointer-events: none; }

/* ---------- admin page ---------- */
.uac-ex-admin-wrap { max-width: 1200px; }
.uac-ex-admin-title { display: flex; align-items: center; gap: 12px; }
.uac-ex-admin-badge { font-family: var(--uac-ex-mono); font-size: 12px; background: #000; color: #fff; padding: 3px 10px; border-radius: 999px; }
.uac-ex-admin-sub { color: var(--uac-ex-g500); margin: 4px 0 20px; }
.uac-ex-admin-stats { display: flex; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.uac-ex-admin-stat { border: var(--uac-ex-border); border-radius: var(--uac-ex-radius); padding: 16px 26px; text-align: center; background: #fff; min-width: 110px; }
.uac-ex-admin-stat .num { display: block; font-size: 32px; font-weight: 900; line-height: 1; }
.uac-ex-admin-stat .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--uac-ex-g500); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .uac-ex-grid { grid-template-columns: repeat(2, 1fr); }
    .uac-ex-carousel__nav.prev { left: 6px; }
    .uac-ex-carousel__nav.next { right: 6px; }
    .uac-ex-showcase { gap: 48px; }
}
@media (max-width: 640px) {
    .uac-ex-grid { grid-template-columns: 1fr; gap: 18px; }
    .uac-ex-meta-grid { grid-template-columns: 1fr; }
    .uac-ex-carousel__nav { width: 42px; height: 42px; font-size: 20px; top: 34%; }
    .uac-ex-modal { max-height: 94vh; border-radius: 18px; }
    .uac-ex-modal__body { padding: 18px; }
    .uac-ex-row { flex-direction: column; }
    .uac-ex-field--half { width: 100%; }
    .uac-ex-hero__title { font-size: clamp(26px, 8vw, 40px); }
    .uac-ex-three-legend { display: none; }
    .uac-ex-gallery { grid-template-columns: repeat(2, 1fr); }
    .uac-ex-artist-row__top { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .uac-ex-card, .uac-ex-block, .uac-ex-detail, .uac-ex-carousel__track,
    .uac-ex-loading p, .uac-ex-badge--current::before { animation: none !important; transition: none !important; }
}
