/* Admin Add/Edit Event modal — ported 1:1 from the Shopify snippet
   snippets/aic-add-event-modal.liquid. Shared between create + edit. */

:root {
  --aem-red:   #ae1f19;
  --aem-cream: #f6f3ee;
  --aem-border: #e4e1dd;
}

.aic-aem-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.aic-aem-overlay[hidden] { display: none; }

.aic-aem-shell {
  background: #fff; color: #111;
  width: 100%; max-width: 1100px;
  border-radius: 18px; padding: 0;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
.aic-aem-close {
  background: rgba(0,0,0,0.06); border: 0; font-size: 22px;
  cursor: pointer; line-height: 1; color: #555;
  width: 32px; height: 32px; border-radius: 9999px;
  flex-shrink: 0;
}
.aic-aem-close:hover { background: rgba(0,0,0,0.12); color: #111; }

/* ===== TOPBAR (sticky header with title + controls) ===== */
.aic-aem-topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--aem-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.aic-aem-topbar-title { min-width: 0; }
.aic-aem-topbar-title h3 { margin: 0; font-size: 1.25rem; color: #111; }
.aic-aem-sub { margin: 2px 0 0; color: #888; font-size: 0.78rem; }

.aic-aem-topbar-controls {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: flex-end;
}

.aic-aem-topbar-actions {
  display: flex; align-items: center; gap: 8px;
}

.aic-aem-notify-compact {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #fff8f5; border: 1px solid #fadcc8;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.78rem;
  max-width: 260px;
}
.aic-aem-notify-compact[hidden] { display: none !important; }
.aic-aem-notify-compact input[type=checkbox] { flex-shrink: 0; cursor: pointer; margin: 0; }
.aic-aem-notify-compact-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.aic-aem-notify-compact strong { color: #7c2d12; font-weight: 700; }
.aic-aem-notify-compact small {
  color: #9a3412; font-size: 0.7rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

.aic-aem-topbar .aic-aem-notify-diff {
  grid-column: 1 / -1;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .aic-aem-topbar {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
  .aic-aem-topbar-controls { justify-content: flex-start; }
  .aic-aem-notify-compact { max-width: 100%; }
  .aic-aem-notify-compact small { max-width: none; }
}

.aic-aem-body {
  display: grid; grid-template-columns: minmax(0,1fr) 380px;
  gap: 0;
}
@media (max-width: 920px) {
  .aic-aem-body { grid-template-columns: 1fr; }
}

/* ---- form column ---- */
.aic-aem-form {
  padding: 22px 28px 28px;
  max-height: 80vh; overflow-y: auto;
}
.aic-aem-form fieldset {
  border: 0; padding: 0; margin: 0 0 22px;
}
.aic-aem-form legend {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--aem-red); margin-bottom: 8px; padding: 0;
}
.aic-aem-form label {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px; font-size: 0.82rem; color: #333;
}
.aic-aem-form label span em {
  color: var(--aem-red); font-style: normal;
}
.aic-aem-form input[type=text],
.aic-aem-form input[type=url],
.aic-aem-form input[type=number],
.aic-aem-form input[type=datetime-local],
.aic-aem-form select,
.aic-aem-form textarea {
  border: 1px solid #ccc; border-radius: 8px;
  padding: 9px 10px; font-size: 0.92rem;
  font-family: inherit; background: #fff;
}
.aic-aem-form input:focus,
.aic-aem-form select:focus,
.aic-aem-form textarea:focus {
  outline: 0; border-color: var(--aem-red);
  box-shadow: 0 0 0 3px rgba(174,31,25,0.12);
}
.aic-aem-form textarea { resize: vertical; }

.aic-aem-rte-field {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px; font-size: 0.82rem; color: #333;
}
.aic-aem-form label.aic-aem-inline-check {
  flex-direction: row; align-items: flex-start; gap: 8px;
  margin: -4px 0 14px; font-size: 0.78rem; color: #555; line-height: 1.45;
  cursor: pointer;
}
.aic-aem-form label.aic-aem-inline-check input[type=checkbox] {
  margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
.aic-aem-rte-label { display: block; }
.aic-aem-rte-label-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.aem-rte-mode-toggle {
  display: inline-flex; padding: 2px;
  background: #f1eeea; border-radius: 8px;
  flex-shrink: 0;
}
.aem-rte-mode-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 600;
  color: #777; border-radius: 6px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-family: inherit;
}
.aem-rte-mode-btn.is-active {
  background: #fff; color: #ae1f19;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.aem-rte-html {
  width: 100%; min-height: 220px;
  padding: 10px 12px; border: 1px solid #d6d6d6;
  border-radius: 0 0 8px 8px; outline: none;
  font: 13px/1.5 'SFMono-Regular', Menlo, Consolas, monospace;
  background: #fafafa; color: #111; resize: vertical;
  box-sizing: border-box;
}
.aem-rte-html:focus { border-color: #ae1f19; box-shadow: 0 0 0 2px rgba(174,31,25,0.10); }
.aem-rte-editor[hidden],
.aem-rte-html[hidden],
textarea[name="description"][hidden] { display: none !important; }

.aem-rte-toolbar {
  display: flex; gap: 2px; padding: 6px 8px;
  background: #fafafa; border: 1px solid #d6d6d6;
  border-radius: 8px 8px 0 0; border-bottom: none;
  align-items: center;
}
.aem-rte-toolbar button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; border: 1px solid transparent;
  background: transparent; border-radius: 6px; cursor: pointer;
  color: #4a4a4a; transition: background 0.12s, color 0.12s, border-color 0.12s;
  padding: 0;
}
.aem-rte-toolbar button:hover { background: #fff; border-color: #e0d4d3; color: #ae1f19; }
.aem-rte-toolbar button.is-active { background: #fff; border-color: #ae1f19; color: #ae1f19; }
.aem-rte-toolbar button svg { display: block; }
.aem-rte-sep { width: 1px; align-self: stretch; background: #e0e0e0; margin: 2px 4px; }
.aem-rte-wrap {
  position: relative;
  display: block;
  width: 100%;
  align-self: stretch;
  min-height: 240px;
  box-sizing: border-box;
}
#aem-description-editor.aem-rte-editor {
  min-height: 240px !important;
  height: auto;
  max-height: none;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 0 0 8px 8px;
  outline: none;
  font-size: 0.95rem; line-height: 1.5;
  background: #fff;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
#aem-description-editor.aem-rte-editor:focus { border-color: #ae1f19; box-shadow: 0 0 0 2px rgba(174,31,25,0.10); }
#aem-description-editor.aem-rte-editor:empty::before,
#aem-description-editor.aem-rte-editor[data-placeholder-active="1"]::before {
  content: attr(data-placeholder); color: #aaa; font-style: italic; pointer-events: none;
}
.aem-rte-editor p  { margin: 0 0 0.6em; }
.aem-rte-editor h3 { font-weight: 700; margin: 0.6em 0 0.25em; }
.aem-rte-editor ul, .aem-rte-editor ol { padding-left: 1.3rem; margin: 0.3em 0 0.5em; }
.aem-rte-editor a { color: #ae1f19; text-decoration: underline; }

.aem-rte-linkbar {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 10px;
  background: #fff; border: 1px solid #ae1f19;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  z-index: 5;
  animation: aemLinkbarIn 0.12s ease-out;
}
@keyframes aemLinkbarIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aem-rte-linkbar[hidden] { display: none; }
.aem-rte-linkbar-icon { display: inline-flex; color: #ae1f19; flex-shrink: 0; }
.aem-rte-linkbar-input {
  flex: 1; min-width: 0;
  border: 0 !important; outline: none; padding: 4px 0 !important;
  font-size: 0.9rem; font-family: inherit; background: transparent;
  color: #111;
}
.aem-rte-linkbar-input:focus { box-shadow: none !important; }
.aem-rte-linkbar-apply {
  background: #ae1f19; color: #fff; border: 0;
  border-radius: 6px; padding: 5px 10px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  flex-shrink: 0;
}
.aem-rte-linkbar-apply:hover { background: #8e1813; }
.aem-rte-linkbar-cancel {
  background: transparent; border: 0; cursor: pointer;
  color: #888; padding: 4px; display: inline-flex;
  border-radius: 6px; flex-shrink: 0;
}
.aem-rte-linkbar-cancel:hover { color: #111; background: #f3f3f3; }
.aic-aem-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 520px) { .aic-aem-row { grid-template-columns: 1fr; } }

.aic-aem-help {
  color: #777; font-size: 0.75rem; display: block; margin-top: 4px;
}

/* ---- file uploader ---- */
.aic-aem-image-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.aic-aem-image-label {
  font-size: 0.82rem; color: #333; font-weight: 600;
  display: flex; flex-direction: column; gap: 2px;
}
.aic-aem-uploader {
  display: flex; gap: 12px; align-items: stretch;
}
.aic-aem-uploader-preview {
  background: var(--aem-cream); border: 1.5px dashed #d6cdb9;
  border-radius: 12px;
  width: 140px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: #b3a78a; font-size: 0.78rem; font-weight: 600;
  text-align: center; cursor: pointer;
  overflow: hidden; position: relative;
  flex-shrink: 0;
}
.aic-aem-uploader--small .aic-aem-uploader-preview {
  width: 96px; aspect-ratio: 4 / 5; font-size: 1.6rem;
}
.aic-aem-uploader-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; border-radius: inherit;
}
.aic-aem-uploader-preview:hover { border-color: var(--aem-red); color: var(--aem-red); }
.aic-aem-uploader-edit {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.aic-aem-uploader-edit:hover {
  background: var(--aem-red); transform: scale(1.05);
}
.aic-aem-uploader-edit[hidden] { display: none !important; }
.aic-aem-uploader-actions {
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.aic-aem-uploader--small .aic-aem-uploader-actions { gap: 4px; }
.aic-aem-uploader-btn {
  background: var(--aem-red); color: #fff; border: 0;
  padding: 7px 12px; border-radius: 8px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer;
}
.aic-aem-uploader-btn:disabled { opacity: 0.6; cursor: progress; }
.aic-aem-uploader-btn--ghost {
  background: #fff; color: #555; border: 1px solid #e0ddd9;
}
.aic-aem-uploader-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(0,0,0,0.08);
}
.aic-aem-uploader-progress > div {
  height: 100%; background: var(--aem-red); width: 0%;
  transition: width 0.2s ease;
}
.aic-aem-uploader[data-error="1"] .aic-aem-uploader-preview {
  border-color: var(--aem-red); color: var(--aem-red);
}

/* ---- company picker ---- */
.aic-aem-company-picker { position: relative; }
.aic-aem-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--aem-border); border-radius: 8px;
  margin-top: 4px; box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  max-height: 220px; overflow-y: auto; z-index: 5;
}
.aic-aem-suggest[hidden] { display: none; }
.aic-aem-suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; cursor: pointer; font-size: 0.88rem; color: #333;
}
.aic-aem-suggest-item:hover, .aic-aem-suggest-item.active {
  background: var(--aem-cream);
}
.aic-aem-suggest-logo {
  width: 28px; height: 28px; border-radius: 6px; object-fit: contain;
  background: #fff; border: 1px solid var(--aem-border); flex-shrink: 0;
}
.aic-aem-suggest-empty {
  padding: 10px; color: #999; font-size: 0.85rem; text-align: center;
}
.aic-aem-company-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--aem-cream); padding: 3px 8px 3px 4px;
  border-radius: 9999px; font-size: 0.7rem; color: #4a4a4a;
  margin-top: 4px;
}
.aic-aem-company-pill img {
  width: 18px; height: 18px; border-radius: 50%; object-fit: contain; background: #fff;
}
.aic-aem-company-pill .clear {
  background: transparent; border: 0; color: var(--aem-red); cursor: pointer;
  font-size: 14px; padding: 0 2px;
}
.aic-aem-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.aic-aem-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--aem-cream); border: 1px solid #e3ddd0;
  border-radius: 9999px; padding: 4px 6px 4px 4px;
  font-size: 0.78rem; color: #333;
}
.aic-aem-chip img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: contain;
  background: #fff; border: 1px solid #ece7dc;
}
.aic-aem-chip-remove {
  background: transparent; border: 0; color: var(--aem-red);
  font-size: 14px; cursor: pointer; padding: 0 2px;
}

/* ---- toggle ---- */
.aic-aem-toggle-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.aic-aem-toggle {
  flex-direction: row !important; align-items: center; gap: 10px;
  margin: 0; cursor: pointer;
}
.aic-aem-toggle input { display: none; }
.aic-aem-track {
  width: 38px; height: 22px; background: #ddd; border-radius: 9999px;
  position: relative; transition: background 0.2s;
}
.aic-aem-track::after {
  content: ''; width: 18px; height: 18px; background: #fff; border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.aic-aem-toggle input:checked + .aic-aem-track { background: var(--aem-red); }
.aic-aem-toggle input:checked + .aic-aem-track::after { transform: translateX(16px); }
.aic-aem-toggle-label { font-size: 0.88rem; font-weight: 600; color: #222; }

/* ---- banner picker (deferred — placeholder shown until banners snippet is ported) ---- */
.aic-aem-banner-grid {
  display: flex; flex-direction: column; gap: 10px;
}

/* ---- prompts repeater ---- */
.aic-aem-prompts {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px;
}
.aic-aem-prompt-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  align-items: center;
  background: var(--aem-cream); padding: 8px; border-radius: 8px;
}
.aic-aem-prompt-row input[type=text] {
  border: 1px solid #d8d2c9; background: #fff;
}
.aic-aem-prompt-row .req-toggle {
  font-size: 0.75rem; color: #444;
  display: flex; align-items: center; gap: 6px;
}
.aic-aem-prompt-remove {
  background: transparent; border: 0; color: var(--aem-red); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 8px;
}
.aic-aem-add-prompt {
  background: var(--aem-cream); color: var(--aem-red);
  border: 1px dashed var(--aem-red); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  align-self: flex-start;
}

/* ---- notify-attendees row (only shown when editing) ---- */
.aic-aem-notify {
  display: flex !important; flex-direction: row !important;
  gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-top: 18px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  cursor: pointer; user-select: none;
}
.aic-aem-notify[hidden] { display: none !important; }
.aic-aem-notify input[type=checkbox] { margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.aic-aem-notify > span { display: flex; flex-direction: column; gap: 3px; }
.aic-aem-notify strong { color: #7c2d12; font-size: 0.85rem; font-weight: 700; }
.aic-aem-notify small  { color: #9a3412; font-size: 0.78rem; line-height: 1.4; }
.aic-aem-notify-diff {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #7c2d12;
}
.aic-aem-notify-diff[hidden] { display: none; }
.aic-aem-notify-diff-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #9a3412; margin-bottom: 4px;
}
.aic-aem-notify-diff-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.aic-aem-notify-diff-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px;
  color: #7c2d12; line-height: 1.35;
}
.aic-aem-notify-diff-list .field {
  font-weight: 700; color: #7c2d12; min-width: 70px;
}
.aic-aem-notify-diff-list .old {
  color: #a8a29e; text-decoration: line-through;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aic-aem-notify-diff-list .arrow { color: #9a3412; }
.aic-aem-notify-diff-list .new {
  color: #111; font-weight: 600;
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- actions ---- */
.aic-aem-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px;
  padding-top: 16px; border-top: 1px solid var(--aem-border);
}
.aic-aem-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 9999px;
  font-weight: 600; font-size: 0.92rem; border: 0;
  cursor: pointer;
  background: #1a1a1a; color: #fff;
  transition: background 0.18s ease, transform 0.18s ease,
              box-shadow 0.18s ease;
}
.aic-aem-btn:hover:not(:disabled) {
  background: var(--aem-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(174,31,25,0.25);
}
.aic-aem-btn:active:not(:disabled) { transform: translateY(0); }
.aic-aem-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.aic-aem-btn[data-aem-close] {
  background: transparent; color: #666;
}
.aic-aem-btn[data-aem-close]:hover:not(:disabled) {
  background: var(--aem-cream); color: #111;
  transform: none; box-shadow: none;
}
.aic-aem-msg {
  margin: 12px 0 0; font-size: 0.85rem; min-height: 1em;
}
.aic-aem-msg.error   { color: var(--aem-red); }
.aic-aem-msg.success { color: #16a34a; }

/* ---- preview column ---- */
.aic-aem-preview-wrap {
  background: var(--aem-cream); padding: 24px;
  border-left: 1px solid var(--aem-border);
  position: sticky; top: 0; align-self: flex-start;
  max-height: 80vh; overflow-y: auto;
}
@media (max-width: 920px) {
  .aic-aem-preview-wrap { border-left: 0; border-top: 1px solid var(--aem-border); }
}
.aic-aem-preview-label {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; color: #888; font-weight: 700; margin-bottom: 10px;
}
.aic-aem-preview-card {
  background: #fff; border: 2px solid var(--aem-red); border-radius: 16px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.aem-pv-image {
  background: #f1edd9; aspect-ratio: 4 / 5; position: relative;
  width: 100%;
}
.aem-pv-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aem-pv-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #b3a78a; font-size: 0.85rem;
  text-align: center; padding: 16px;
}
.aem-pv-placeholder[hidden] { display: none !important; }
.aem-pv-image img[hidden] { display: none !important; }
.aem-pv-status {
  position: absolute; top: 10px; left: 10px;
  background: var(--aem-red); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 9999px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.aem-pv-body { padding: 16px; }
.aem-pv-description {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.82rem; color: #333; line-height: 1.5;
  word-break: break-word;
}
.aem-pv-description p { margin: 0 0 6px; }
.aem-pv-description h1, .aem-pv-description h2, .aem-pv-description h3 {
  font-size: 0.88rem; font-weight: 700; color: #222;
  margin: 8px 0 4px;
}
.aem-pv-description ul, .aem-pv-description ol {
  margin: 4px 0 6px; padding-left: 1.2rem;
}
.aem-pv-description li { margin: 2px 0; }
.aem-pv-description a { color: var(--aem-red); text-decoration: underline; }
.aem-pv-description strong, .aem-pv-description b { font-weight: 700; color: #222; }
.aem-pv-notes {
  margin-top: 12px;
  background: #faf7f0;
  border: 1px solid #eee5d2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem; color: #5a4a2a; line-height: 1.45;
}
.aem-pv-notes-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--aem-red); margin-bottom: 4px;
}
.aem-pv-notes-body { word-break: break-word; }
.aem-pv-notes-body p { margin: 0 0 4px; }
.aem-pv-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.aem-pv-title {
  margin: 0; font-size: 1.05rem; color: #111;
  font-weight: 700; line-height: 1.3;
}
.aem-pv-series {
  background: #1a1a1a; color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap; flex-shrink: 0;
}
.aem-pv-meta {
  margin-top: 10px; display: flex; flex-direction: column; gap: 4px;
  font-size: 0.82rem; color: #555;
}
.aem-pv-meta-row { display: flex; gap: 8px; align-items: center; }
.aem-pv-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  color: #999; display: inline-flex; align-items: center;
}
.aem-pv-icon svg { width: 100%; height: 100%; }
.aem-pv-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.aem-pv-pill {
  font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.aem-pv-pill.cv  { background: rgba(156, 39, 176, 0.12); color: #9c27b0; }
.aem-pv-pill.sel { background: rgba(23, 162, 184, 0.12); color: #17a2b8; }
.aem-pv-pill.cap { background: rgba(255, 193, 7, 0.18);  color: #b78103; }

.aem-pv-button {
  width: 100%; margin-top: 14px; padding: 11px 16px;
  border-radius: 9999px; border: 0; font-weight: 700; font-size: 0.92rem;
  background: var(--aem-red); color: #fff; cursor: not-allowed;
  text-transform: none; letter-spacing: 0;
}
.aem-pv-button.cv  { background: #9c27b0; }
.aem-pv-button.sel { background: #17a2b8; }
.aem-pv-button.cap { background: #ffc107; color: #1a1a1a; }
.aem-pv-button.ext { background: #2563eb; }
.aem-pv-button.dis { background: #f5f5f5; color: #999; }
