/*
 * ISRAPET Agency — Customer Panel Design System
 * גרסה: 2.0
 * עיצוב זהה לאדמין פאנל — קו עיצובי אחיד
 * ─────────────────────────────────────────────
 * ההבדל היחיד מ-admin-panel.css:
 * --brand במקום --green (מוזרק מה-PHP לפי צבעי המותג)
 * scope: .cp במקום .israpet-panel
 * class prefix: cp- במקום ap-
 *
 * PHP — הזרקת צבעי מותג:
 * ─────────────────────────
 * add_action('wp_head', function() {
 *   $brand = get_option('israpet_brand_color', '#1D9E75');
 *   $brand_h = get_option('israpet_brand_hover', '#159060');
 *   echo "<style>
 *     .cp {
 *       --brand:        {$brand};
 *       --brand-hover:  {$brand_h};
 *     }
 *   </style>";
 * });
 *
 * JS — חישוב --brand-soft ו--brand-border:
 * ──────────────────────────────────────────
 * document.addEventListener('DOMContentLoaded', () => {
 *   const el = document.querySelector('.cp');
 *   if (!el) return;
 *   const hex = getComputedStyle(el).getPropertyValue('--brand').trim();
 *   const r = parseInt(hex.slice(1,3),16);
 *   const g = parseInt(hex.slice(3,5),16);
 *   const b = parseInt(hex.slice(5,7),16);
 *   el.style.setProperty('--brand-soft',   `rgba(${r},${g},${b},0.08)`);
 *   el.style.setProperty('--brand-border',  `rgba(${r},${g},${b},0.20)`);
 * });
 */

/* ─── TOKENS ─────────────────────────────── */
.cp {
  /* Brand — מוזרק מ-PHP */
  --brand:        #1D9E75;
  --brand-hover:  #159060;
  --brand-active: #0F6E56;
  --brand-soft:   rgba(29, 158, 117, 0.08);
  --brand-border: rgba(29, 158, 117, 0.20);

  /* Backgrounds — זהה לאדמין */
  --bg:              #F7F8FA;
  --bg-white:        #FFFFFF;
  --bg-input:        #F7F8FA;
  --bg-input-focus:  #FFFFFF;
  --bg-hover:        #F3F4F6;

  /* Borders — זהה לאדמין */
  --border:          rgba(0, 0, 0, 0.07);
  --border-m:        rgba(0, 0, 0, 0.11);
  --border-strong:   rgba(0, 0, 0, 0.18);

  /* Text — זהה לאדמין */
  --text:            #1A1D23;
  --text-2:          #6B7280;
  --text-3:          #9CA3AF;
  --text-4:          #D1D5DB;

  /* Semantic — זהה לאדמין */
  --success:         #16A34A;
  --warning:         #D97706;
  --danger:          #DC2626;
  --info:            #2563EB;

  /* Radius — זהה לאדמין */
  --r-sm:            6px;
  --r-md:            8px;
  --r-lg:            12px;
  --r-xl:            14px;
  --r-full:          9999px;

  /* Shadows — זהה לאדמין */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:       0 2px 24px rgba(0,0,0,0.06);

  /* Transitions — זהה לאדמין */
  --t-fast:          0.15s ease;
  --t-med:           0.22s ease;

  /* Layout */
  --sidebar-width:   196px;
  --topbar-height:   50px;

  /* Typography — זהה לאדמין */
  --font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-size-xs:    10px;
  --font-size-sm:    11px;
  --font-size-base:  12.5px;
  --font-size-md:    13px;
  --font-size-lg:    14px;
  --font-size-xl:    15px;
  --font-size-2xl:   16px;
}

/* ─── RESET ──────────────────────────────── */
.cp, .cp * {
  box-sizing: border-box;
  font-family: var(--font);
  direction: rtl;
}
.cp a { text-decoration: none; color: inherit; }
.cp input, .cp textarea, .cp select, .cp button {
  font-family: var(--font);
  font-size: var(--font-size-md);
}

/* ─── SHELL ──────────────────────────────── */
.cp {
  display: flex;
  height: 100vh;
  background: var(--bg);
  font-size: var(--font-size-base);
  color: var(--text);
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-m);
}

/* ─── SIDEBAR ────────────────────────────── */
.cp .cp-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Site Logo */
.cp .cp-site-logo {
  padding: 18px 14px 10px;
  text-align: center;
}
/* Powered by bar */
.cp .cp-powered-bar {
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid var(--border, rgba(0,0,0,.07));
  margin-top: auto;
}
.cp .cp-powered-bar a {
  font-size: 11px;
  color: var(--text-3, #9CA3AF);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.22s;
}
.cp .cp-powered-bar a:hover {
  color: var(--brand);
}
/* Brand */
.cp .cp-brand {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp .cp-brand-logo {
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  overflow: hidden;
}
.cp .cp-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}
.cp .cp-brand-name {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.cp .cp-brand-sub {
  font-size: var(--font-size-xs);
  color: var(--text-3);
  margin-top: 1px;
}

/* Nav */
.cp .cp-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}
.cp .cp-nav-section {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 8px 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cp .cp-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-2);
  font-size: var(--font-size-base);
  margin-bottom: 1px;
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.cp .cp-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.cp .cp-nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}
.cp .cp-nav-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cp .cp-nav-badge {
  margin-right: auto;
  background: #EF4444;
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: var(--r-full);
  font-weight: 600;
  line-height: 1.6;
}

/* Sidebar footer — user */
.cp .cp-sidebar-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}
.cp .cp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
  overflow: hidden;
}
.cp .cp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cp .cp-user-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.cp .cp-user-role {
  font-size: var(--font-size-xs);
  color: var(--text-3);
}

/* ─── MAIN ───────────────────────────────── */
.cp .cp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Topbar */
.cp .cp-topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cp .cp-topbar-title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text);
}
.cp .cp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp .cp-notif-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-m);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast);
}
.cp .cp-notif-btn:hover { background: var(--bg); }
.cp .cp-notif-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.6;
}
.cp .cp-notif-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Body */
.cp .cp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--bg);
}

/* ─── PAGE HEADER ────────────────────────── */
.cp .cp-page-header {
  margin-bottom: 16px;
}
.cp .cp-page-header h1,
.cp .cp-page-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  padding: 0;
  border: none;
  background: none;
}
.cp .cp-page-header p {
  font-size: var(--font-size-sm);
  color: var(--text-3);
  margin: 0;
}

/* ─── BADGE ──────────────────────────────── */
.cp .cp-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-weight: 500;
  line-height: 1.6;
}
.cp .cp-badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}
.cp .cp-badge-gray {
  background: var(--bg-hover);
  color: var(--text-2);
  border: 1px solid var(--border-m);
}
.cp .cp-badge-red {
  background: rgba(220,38,38,0.08);
  color: var(--danger);
  border: 1px solid rgba(220,38,38,0.2);
}
.cp .cp-badge-warning {
  background: rgba(217,119,6,0.08);
  color: var(--warning);
  border: 1px solid rgba(217,119,6,0.2);
}

/* ─── CARDS ──────────────────────────────── */
.cp .cp-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.cp .cp-card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp .cp-card-head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.cp .cp-card-head-title {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text);
}
.cp .cp-card-head-sub {
  font-size: var(--font-size-sm);
  color: var(--text-3);
  margin-right: auto;
}
.cp .cp-card-head-action {
  font-size: var(--font-size-sm);
  color: var(--brand);
  cursor: pointer;
  margin-right: auto;
}
.cp .cp-card-body {
  padding: 16px;
}
.cp .cp-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ─── BUTTONS ────────────────────────────── */
.cp .cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: var(--font-size-base);
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
}
.cp .cp-btn:active { transform: scale(0.98); }
.cp .cp-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
/* Primary */
.cp .cp-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}
.cp .cp-btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
/* Secondary */
.cp .cp-btn-secondary {
  background: var(--bg-white);
  border-color: var(--border-m);
  color: var(--text-2);
}
.cp .cp-btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
/* Outline brand */
.cp .cp-btn-outline {
  background: var(--bg-white);
  border-color: var(--brand-border);
  color: var(--brand);
}
.cp .cp-btn-outline:hover { background: var(--brand-soft); }
/* Danger */
.cp .cp-btn-danger {
  background: var(--bg-white);
  border-color: rgba(220,38,38,0.25);
  color: var(--danger);
}
.cp .cp-btn-danger:hover { background: rgba(220,38,38,0.05); }
/* Loading */
.cp .cp-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ─── FORM FIELDS ────────────────────────── */
.cp .cp-field { margin-bottom: 14px; }
.cp .cp-field:last-child { margin-bottom: 0; }
.cp .cp-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 5px;
}
.cp .cp-label-hint {
  font-size: var(--font-size-xs);
  color: var(--text-3);
  font-weight: 400;
  margin-right: 6px;
}
.cp .cp-input,
.cp .cp-textarea,
.cp .cp-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-m);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: var(--font-size-md);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.cp .cp-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.6;
}
.cp .cp-input:hover,
.cp .cp-textarea:hover {
  border-color: var(--border-strong);
}
.cp .cp-input:focus,
.cp .cp-textarea:focus,
.cp .cp-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-input-focus);
}
.cp .cp-input.error,
.cp .cp-textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.cp .cp-field-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}
.cp .cp-field-error {
  font-size: var(--font-size-sm);
  color: var(--danger);
  margin-top: 4px;
}
.cp .cp-char-count {
  font-size: var(--font-size-sm);
  color: var(--text-3);
  transition: color var(--t-fast);
}
.cp .cp-char-count.ok   { color: var(--success); }
.cp .cp-char-count.warn { color: var(--warning); }
.cp .cp-char-count.over { color: var(--danger);  }
.cp .cp-char-hint {
  font-size: var(--font-size-sm);
  color: var(--text-3);
}

/* ─── STATS GRID ─────────────────────────── */
.cp .cp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cp .cp-stat {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.cp .cp-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-3);
  margin-bottom: 4px;
}
.cp .cp-stat-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.cp .cp-stat-delta {
  font-size: var(--font-size-xs);
  margin-top: 4px;
  color: var(--brand);
}
.cp .cp-stat-delta.neg { color: var(--danger); }

/* ─── ALERTS ─────────────────────────────── */
.cp .cp-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: var(--font-size-md);
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.cp .cp-alert svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cp .cp-alert-brand {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--text);
}
.cp .cp-alert-brand svg { stroke: var(--brand); }
.cp .cp-alert-success {
  background: rgba(22,163,74,0.07);
  border-color: rgba(22,163,74,0.2);
  color: #14532D;
}
.cp .cp-alert-warning {
  background: rgba(217,119,6,0.07);
  border-color: rgba(217,119,6,0.2);
  color: #78350F;
}
.cp .cp-alert-danger {
  background: rgba(220,38,38,0.07);
  border-color: rgba(220,38,38,0.2);
  color: #7F1D1D;
}
.cp .cp-alert-btn {
  margin-right: auto;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font);
}

/* ─── TABLE ──────────────────────────────── */
.cp .cp-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.cp .cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-md);
  background: var(--bg-white);
}
.cp .cp-table th {
  padding: 10px 14px;
  text-align: right;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
.cp .cp-table td {
  padding: 11px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cp .cp-table tr:last-child td { border-bottom: none; }
.cp .cp-table tr:hover td { background: #FAFAFA; }

/* ─── TABS ───────────────────────────────── */
.cp .cp-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.cp .cp-tab {
  padding: 8px 14px;
  font-size: var(--font-size-md);
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cp .cp-tab:hover { color: var(--text); }
.cp .cp-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 500;
}

/* ─── TOGGLE / SWITCH ────────────────────── */
.cp .cp-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.cp .cp-switch input { opacity: 0; width: 0; height: 0; }
.cp .cp-switch-track {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-fast);
}
.cp .cp-switch input:checked + .cp-switch-track { background: var(--brand); }
.cp .cp-switch-track::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  right: 3px;
  transition: transform var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.cp .cp-switch input:checked + .cp-switch-track::after {
  transform: translateX(-16px);
}

/* ─── SKELETON LOADER ────────────────────── */
.cp .cp-skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: cp-shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}
@keyframes cp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── EMPTY STATE ────────────────────────── */
.cp .cp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}
.cp .cp-empty svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-4);
  fill: none;
  stroke-width: 1.2;
  margin: 0 auto 12px;
  display: block;
}
.cp .cp-empty-title {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 4px;
}
.cp .cp-empty p { font-size: var(--font-size-md); margin: 0; }

/* ─── SCROLLBAR ──────────────────────────── */
.cp ::-webkit-scrollbar { width: 5px; height: 5px; }
.cp ::-webkit-scrollbar-track { background: transparent; }
.cp ::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
}
.cp ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── MOBILE (עד 768px) ──────────────────── */
@media (max-width: 768px) {
  .cp { border-radius: 0; border: none; height: 100dvh; }
  .cp .cp-sidebar {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  }
  .cp .cp-sidebar.open { transform: translateX(0); }
  .cp .cp-main { width: 100%; }
  .cp .cp-stats { grid-template-columns: repeat(2, 1fr); }
  .cp .cp-btn-primary { width: 100%; justify-content: center; }
}

/* ─── UTILITIES ──────────────────────────── */
.cp .cp-flex         { display: flex; align-items: center; }
.cp .cp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.cp .cp-gap-sm       { gap: 6px; }
.cp .cp-gap-md       { gap: 10px; }
.cp .cp-gap-lg       { gap: 16px; }
.cp .cp-mt-sm        { margin-top: 8px; }
.cp .cp-mt-md        { margin-top: 14px; }
.cp .cp-mt-lg        { margin-top: 20px; }
.cp .cp-text-sm      { font-size: var(--font-size-sm); color: var(--text-2); }
.cp .cp-text-muted   { font-size: var(--font-size-sm); color: var(--text-3); }
.cp .cp-divider      { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ─── IMAGE FIELD ────────────────────────── */
.cp .ap-image-field  { display:flex; flex-direction:column; gap:10px; }
.cp .ap-image-preview {
  width:100%; max-width:360px; height:180px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-m);
  overflow:hidden; background: var(--bg);
  display:flex; align-items:center; justify-content:center;
}
.cp .ap-image-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.cp .ap-image-preview[id="preview-set-logo"] { height:auto; min-height:60px; max-width:240px; }
.cp .ap-image-preview[id="preview-set-logo"] img { width:auto; height:auto; max-width:100%; max-height:120px; object-fit:contain; }
.cp .ap-image-empty  { display:flex; flex-direction:column; align-items:center; gap:6px; }
.cp .ap-image-empty span { font-size: var(--font-size-sm); color: var(--text-3); }
.cp .ap-image-actions { display:flex; gap:8px; flex-wrap:wrap; }
