.cre2-wrap{max-width:1200px}
/* Evita “saltos” por colapso de márgenes cuando no hay notices. */
.cre2-notices{padding-top:1px}
.cre2-notices:empty{padding-top:1px;margin:0}

.cre2-toolbar{display:flex;align-items:center;gap:14px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;margin:12px 0 10px !important;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-brand{display:flex;align-items:center;gap:12px}
.cre2-title{margin:0;font-size:20px;line-height:1.2}
.cre2-reset{margin-left:auto}

.cre2-header{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;margin:16px 0;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-logo{width:44px;height:44px;border-radius:12px;background:#382C1E;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;letter-spacing:.5px}
.cre2-header-text h1{margin:0;font-size:18px}
.cre2-header-text p{margin:2px 0 0;color:#6b7280}
.cre2-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.cre2-tabs a{display:inline-block;padding:8px 12px;border-radius:999px;text-decoration:none;border:1px solid #d1d5db;background:#fff;color:#111827}
.cre2-tabs a.active{background:#382C1E;border-color:#382C1E;color:#fff}
.cre2-panel{display:none}
.cre2-panel.is-active{display:block}
.cre2-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
@media(max-width:1000px){.cre2-grid{grid-template-columns:1fr}}
.cre2-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px}
.cre2-card h3{margin:0 0 10px;font-size:14px}
.cre2-checks{columns:2;column-gap:18px}
.cre2-checks label{display:block;margin:3px 0}
@media(max-width:1000px){.cre2-checks{columns:1}}
.cre2-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}


.cre2-preview-wrap{margin-top:10px}
.cre2-preview-controls{display:flex;align-items:center;gap:8px;margin:8px 0}
.cre2-notice-preview{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;color:#fff;background:#111;min-height:44px;max-width:720px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-notice-preview em{color:rgba(255,255,255,.85)}



/* Two-column admin layout (stable, no header jump) */
.cre2-layout{display:flex;gap:18px;align-items:flex-start}
.cre2-main{flex:1;min-width:0}
.cre2-side{width:320px;flex:0 0 320px}
.cre2-side-sticky{position:sticky;top:32px}
@media (max-width: 1180px){
  .cre2-layout{flex-direction:column}
  .cre2-side{width:auto;flex:1}
  .cre2-side-sticky{position:static}
}

.cre2-side-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 12px;margin:0 0 12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-side-brand{display:flex;gap:10px;align-items:center}
.cre2-side-title{font-weight:700;font-size:14px;line-height:1.2;margin:0}
.cre2-side-sub{color:#6b7280;font-size:12px;margin-top:2px}
.cre2-side-h{margin:0 0 6px;font-size:13px}
.cre2-side-help,.cre2-side-desc{margin:0;color:#374151;font-size:12.5px;line-height:1.35}
.cre2-side-banner{margin:0 auto;display:flex;align-items:center;justify-content:center;width:120px;height:60px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;text-decoration:none;font-weight:600}
.cre2-side-banner:hover{box-shadow:0 2px 6px rgba(0,0,0,.08)}



/* --- CRE2 layout (two columns) --- */
.cre2-layout{display:flex;gap:16px;align-items:flex-start}
.cre2-main{flex:1;min-width:0}
.cre2-side{width:300px;position:sticky;top:32px}
.cre2-side-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.04);margin:0 0 12px}
.cre2-side-brand{display:flex;gap:10px;align-items:center}
.cre2-side-logo{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;background:#111;color:#fff}
.cre2-side-name{font-weight:700;font-size:14px;line-height:1.1}
.cre2-side-sub{font-size:12px;color:#6b7280;margin-top:2px}
.cre2-side-desc{margin:0;color:#374151;font-size:13px;line-height:1.45}
.cre2-side-help h3{margin:0 0 8px;font-size:13px}
.cre2-side-help-body ul{margin:0;padding-left:18px}
.cre2-side-help-body li{margin:6px 0;color:#374151;font-size:13px;line-height:1.35}
.cre2-side-banner{display:flex;align-items:center;justify-content:center;width:120px;height:56px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;text-decoration:none;font-weight:700;color:#111;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-side-banner:hover{opacity:.92}
@media (max-width: 1100px){
  .cre2-layout{flex-direction:column}
  .cre2-side{width:auto;position:static}
}


/* Brand logo in sidebar */
.cre2-side-brand{justify-content:center}
.cre2-side-brand-logo{display:block;width:100%;height:auto;max-width:260px;margin:0 auto}


/* Ventas tab */
.cre2-sales-filters{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;margin:10px 0 15px}
.cre2-sales-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.cre2-sales-form label{display:flex;flex-direction:column;gap:4px}
.cre2-sales-total{margin-left:auto;border:1px solid rgba(0,0,0,.08);padding:10px 14px;border-radius:10px;min-width:220px}
.cre2-sales-total-label{font-size:12px;opacity:.75}
.cre2-sales-total-value{font-size:20px;font-weight:700;line-height:1.2}


/* Ventas */
.cre2-sales-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border:1px solid #dcdcde;
  background:#fff;
  border-radius:10px;
  margin: 10px 0 12px;
}
.cre2-sales-total-value{
  font-size:18px;
  font-weight:700;
}
.cre2-sales-quick{ margin: 6px 0 10px; }
.cre2-sales-filters .cre2-sales-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-end;
  margin: 8px 0 10px;
}
.cre2-sales-filters label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
}
.cre2-sales-table .cre2-sale-row{ cursor:pointer; }
.cre2-sales-detail{
  margin: 12px 0;
  padding: 12px 14px;
  border:1px solid #dcdcde;
  background:#fff;
  border-radius:10px;
}
.cre2-btn-active{
  box-shadow: inset 0 0 0 1px #2271b1;
}

.cre2-panel-actions{margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}

.cre2-main .form-table{width:100%;max-width:100%;table-layout:fixed}
.cre2-main .form-table th{width:220px}
.cre2-main .wp-editor-wrap{max-width:100%}
.cre2-main textarea, .cre2-main input[type=text], .cre2-main input[type=url], .cre2-main input[type=number]{max-width:100%}

/* --- Sidebar stacking fix (force vertical cards) --- */
.cre2-side{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.cre2-side-card{width:100%;display:block}
.cre2-side-brand-logo{max-width:100%;height:auto;display:block}

/* CTA top block: full width */
.cre2-cta-top{grid-template-columns:1fr !important;}


/* --- Topbar replaces sidebar --- */
.cre2-topbar{display:flex;gap:14px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 12px;margin:12px 0 14px;box-shadow:0 1px 2px rgba(0,0,0,.04);flex-wrap:wrap}
.cre2-topbar-left{display:flex;gap:12px;align-items:center;min-width:260px}
.cre2-topbar-logo{height:32px;width:auto;display:block}
.cre2-topbar-ver{font-size:12.5px;color:#374151}
.cre2-topbar-right{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.cre2-topbar-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cre2-topbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cre2-topbar-help{position:relative}
.cre2-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12px;line-height:1;border:1px solid transparent}
.cre2-pill-muted{background:#f3f4f6;color:#111;border-color:#e5e7eb}
.cre2-pill-ok{background:#d1fae5;color:#065f46;border-color:#a7f3d0}
.cre2-pill-outline{background:#fff;color:#111;border-color:#e5e7eb}
/* Layout now single column */
.cre2-layout{display:block}
.cre2-main{width:100%}

/* --- Tab help block --- */
.cre2-tabhelp{margin:0 0 14px}
.cre2-tabhelp-inner{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cre2-tabhelp-title{margin:0 0 6px;font-size:14px}
.cre2-tabhelp-body{margin:0;color:#374151;font-size:13px;line-height:1.45}


/* PPP two-column cards must stay 50/50 even with wide tables/inputs */
.cre2-grid{align-items:start}
.cre2-card{min-width:0}
.cre2-card table.form-table{width:100%;table-layout:fixed}
.cre2-card table.form-table th{width:220px}
.cre2-card table.form-table td{overflow-wrap:anywhere;word-break:break-word}
.cre2-card input[type="text"],
.cre2-card input[type="url"],
.cre2-card input[type="number"],
.cre2-card select,
.cre2-card textarea{max-width:100%;width:100%;box-sizing:border-box}

/* PPP: Paid posts selector (AJAX) */
.cre2-paidposts{position:relative}
.cre2-paidposts-results{box-shadow:0 10px 30px rgba(0,0,0,.06)}
.cre2-paidposts-item:hover{background:rgba(0,0,0,.03)}
.cre2-paidposts-item:last-child{border-bottom:0 !important}

.cre2-topbar,.cre2-card,.cre2-panel,.cre2-tabhelp{border-radius:16px}.cre2-tabs a{border-radius:999px}.cre2-topbar{box-shadow:0 10px 30px rgba(15,23,42,.05)}.cre2-card,.cre2-panel{box-shadow:0 8px 24px rgba(15,23,42,.04)}

/* Content Revival */
.cre2-revival-page{padding-bottom:24px}
.cre2-revival-hero{display:flex;justify-content:space-between;gap:18px;align-items:stretch;background:linear-gradient(135deg,#111827 0%,#382C1E 100%);color:#fff;border-radius:20px;padding:24px;margin:4px 0 16px;box-shadow:0 16px 40px rgba(15,23,42,.14)}
.cre2-revival-hero h1{margin:4px 0 10px;font-size:30px;line-height:1.05;color:#fff}
.cre2-revival-hero p{margin:0;max-width:720px;color:rgba(255,255,255,.88);font-size:14px;line-height:1.55}
.cre2-revival-eyebrow{display:inline-block;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cre2-revival-hero-stats{display:grid;grid-template-columns:1fr;gap:10px;min-width:260px}
.cre2-revival-stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px}
.cre2-revival-stat span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.72);margin-bottom:6px}
.cre2-revival-stat strong{font-size:14px;color:#fff}
.cre2-revival-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr);gap:16px;align-items:start}
.cre2-revival-side{display:grid;gap:16px}
.cre2-revival-card{border-radius:18px;padding:18px}
.cre2-revival-card h2{margin:0 0 14px;font-size:18px}
.cre2-revival-section + .cre2-revival-section{margin-top:18px;padding-top:18px;border-top:1px solid #eef2f7}
.cre2-revival-section h3{margin:0 0 12px;font-size:14px}
.cre2-revival-switches{display:grid;gap:12px}
.cre2-revival-switch{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa}
.cre2-revival-switch input[type=checkbox]{margin-top:3px}
.cre2-revival-switch span{display:block}
.cre2-revival-switch strong{display:block;font-size:14px;color:#111827;margin-bottom:3px}
.cre2-revival-switch small{display:block;font-size:12px;color:#6b7280;line-height:1.45}
.cre2-revival-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cre2-revival-fields label{display:block}
.cre2-revival-fields span{display:block;font-size:12px;color:#374151;font-weight:600;margin-bottom:6px}
.cre2-revival-field-wide{grid-column:1/-1}
.cre2-revival-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cre2-revival-categories label{display:flex;gap:8px;align-items:center;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.cre2-revival-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.cre2-revival-actions form{margin:0}
.cre2-revival-actions .button{min-width:140px;justify-content:center}
.cre2-revival-mini{display:grid;gap:8px}
.cre2-revival-mini div{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;background:#fafafa;border:1px solid #eef2f7;border-radius:14px}
.cre2-revival-mini span{font-size:12px;color:#6b7280}
.cre2-revival-mini strong{font-size:13px;color:#111827}
.cre2-revival-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cre2-revival-list li{padding:12px 14px;border:1px solid #eef2f7;border-radius:14px;background:#fafafa}
.cre2-revival-list strong{display:block;font-size:13px;color:#111827;margin-bottom:4px}
.cre2-revival-list small{display:block;color:#6b7280;font-size:12px}
@media (max-width: 1180px){.cre2-revival-grid{grid-template-columns:1fr}.cre2-revival-hero{flex-direction:column}.cre2-revival-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}}
@media (max-width: 860px){.cre2-revival-fields{grid-template-columns:1fr}.cre2-revival-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.cre2-revival-hero-stats{grid-template-columns:1fr}}
@media (max-width: 560px){.cre2-revival-categories{grid-template-columns:1fr}}
.cre2-revival-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cre2-revival-filter-block{min-width:0}
.cre2-revival-filter-block-full{grid-column:1 / -1}
.cre2-revival-list-heading{font-size:12px;font-weight:700;color:#374151;margin:0 0 8px}
.cre2-revival-categories-compact{grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;overflow:auto;padding-right:4px}
.cre2-revival-search{display:grid;gap:10px}
.cre2-revival-search-label span{display:block;font-size:12px;color:#374151;font-weight:600;margin-bottom:6px}
.cre2-revival-search-input{width:100%}
.cre2-revival-search-results{display:grid;gap:8px;padding:10px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;max-height:220px;overflow:auto}
.cre2-revival-result{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;text-align:left}
.cre2-revival-result strong{font-size:13px;color:#111827}.cre2-revival-result small{color:#6b7280;font-size:11px}
.cre2-revival-selected{display:flex;flex-wrap:wrap;gap:8px}
.cre2-revival-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:#111827;color:#fff;font-size:12px;line-height:1}
.cre2-revival-chip-remove{appearance:none;border:0;background:transparent;color:#fff;font-size:16px;line-height:1;cursor:pointer;padding:0}
.cre2-revival-row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.cre2-revival-row-actions-inline{margin-top:0}
.cre2-revival-log-card{margin-top:16px}
.cre2-revival-log-head{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:12px}.cre2-revival-log-head p{margin:4px 0 0;color:#6b7280}
.cre2-revival-table-wrap{overflow:auto}.cre2-revival-table th,.cre2-revival-table td{vertical-align:middle}
@media (max-width: 1100px){.cre2-revival-filter-grid{grid-template-columns:1fr}.cre2-revival-filter-block-full{grid-column:auto}.cre2-revival-categories-compact{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}
@media (max-width: 680px){.cre2-revival-categories-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.cre2-revival-chip{max-width:100%;overflow:hidden}.cre2-revival-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}


/* === CRE PRO UI Refresh 3.3.0 === */
:root{
  --cre-space-1:8px;
  --cre-space-2:12px;
  --cre-space-3:16px;
  --cre-space-4:24px;
  --cre-space-5:32px;
  --cre-radius-sm:8px;
  --cre-radius-md:12px;
  --cre-radius-lg:18px;
  --cre-color-primary:#382C1E;
  --cre-color-primary-2:#4b3a27;
  --cre-color-success:#0f766e;
  --cre-color-warning:#9a5b00;
  --cre-color-danger:#b42318;
  --cre-color-bg:#f6f7f9;
  --cre-color-surface:#ffffff;
  --cre-color-surface-soft:#faf8f5;
  --cre-color-text:#0f172a;
  --cre-color-muted:#667085;
  --cre-color-border:#e6e8ee;
  --cre-shadow-sm:0 8px 20px rgba(15,23,42,.04);
  --cre-shadow-md:0 14px 36px rgba(15,23,42,.08);
}

.cre2-app{background:var(--cre-color-bg);padding-right:12px}
.cre2-app,.cre2-app p,.cre2-app td,.cre2-app th,.cre2-app label{color:var(--cre-color-text)}
.cre2-app .notice{border-radius:14px;border:1px solid var(--cre-color-border);box-shadow:var(--cre-shadow-sm)}
.cre2-app .notice p{font-size:13px;line-height:1.5}

.cre2-topbar{
  background:linear-gradient(180deg,#fff 0%,#fcfcfd 100%);
  border:1px solid var(--cre-color-border);
  border-radius:20px;
  padding:16px 18px;
  margin:14px 0 18px;
  box-shadow:var(--cre-shadow-md);
}
.cre2-topbar-left{gap:14px}
.cre2-topbar-brand{display:flex;align-items:center}
.cre2-topbar-logo{height:38px}
.cre2-topbar-meta{display:grid;gap:4px}
.cre2-topbar-meta:before{content:"Content Revenue Engine";font-size:18px;font-weight:700;line-height:1.1;color:var(--cre-color-text)}
.cre2-topbar-ver{font-size:12px;color:var(--cre-color-muted)}
.cre2-topbar-right{gap:16px}
.cre2-topbar-status{gap:10px}
.cre2-topbar-actions{gap:10px}
.cre2-pill{padding:7px 12px;font-size:12px;font-weight:700;border-radius:999px;letter-spacing:.01em}
.cre2-pill-ok{background:#e8fff6;color:#065f46;border-color:#b7efd7}
.cre2-pill-muted{background:#f3f4f6;color:#344054;border-color:#e5e7eb}
.cre2-pill-outline{background:#fff;border-color:#d7dce5;color:#344054}
.cre2-topbar .button{
  min-height:38px;border-radius:10px;padding:0 14px;font-weight:600
}
.cre2-topbar .button-primary{background:var(--cre-color-primary);border-color:var(--cre-color-primary)}
.cre2-topbar .button-primary:hover{background:var(--cre-color-primary-2);border-color:var(--cre-color-primary-2)}

.cre2-tabs-wrap{display:grid;gap:12px;margin:0 0 18px}
.cre2-tab-group{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cre2-tab-group-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667085;min-width:74px}
.cre2-tabs{gap:10px;margin:0}
.cre2-tabs a{
  padding:10px 14px;
  border:1px solid #dde2ea;
  background:#fff;
  color:#344054;
  font-weight:600;
  box-shadow:0 1px 0 rgba(16,24,40,.02);
  transition:all .16s ease;
}
.cre2-tabs a:hover{transform:translateY(-1px);border-color:#c8cfdb;box-shadow:var(--cre-shadow-sm)}
.cre2-tabs a.active{background:var(--cre-color-primary);border-color:var(--cre-color-primary);color:#fff;box-shadow:0 12px 24px rgba(56,44,30,.18)}
.cre2-tab-locked{opacity:.88}

.cre2-screen-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;
  background:linear-gradient(135deg,#111827 0%,#382C1E 100%);
  color:#fff;border-radius:24px;padding:24px 24px 20px;box-shadow:var(--cre-shadow-md);margin:0 0 16px;
}
.cre2-screen-head-main{max-width:780px}
.cre2-screen-eyebrow{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin:0 0 12px}
.cre2-screen-title{margin:0;color:#fff;font-size:30px;line-height:1.05;font-weight:750}
.cre2-screen-desc{margin:10px 0 0;color:rgba(255,255,255,.84);font-size:14px;line-height:1.55;max-width:700px}
.cre2-screen-summary{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.cre2-summary-chip{display:grid;gap:3px;min-width:120px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.12);backdrop-filter:blur(4px)}
.cre2-summary-chip strong{font-size:16px;line-height:1.1;color:#fff}
.cre2-summary-chip em{font-style:normal;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.72)}

.cre2-tabhelp{margin:0 0 18px}
.cre2-tabhelp-inner{border-radius:16px;border:1px solid var(--cre-color-border);padding:16px 18px;background:#fff;box-shadow:var(--cre-shadow-sm)}
.cre2-tabhelp-title{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#667085;margin:0 0 8px}
.cre2-tabhelp-body,.cre2-tabhelp-body p,.cre2-tabhelp-body li{font-size:13px;line-height:1.55;color:#475467}
.cre2-tabhelp-body ul{margin:10px 0 0 18px}

.cre2-panel{display:block;background:transparent;box-shadow:none;border:0;padding:0}
.cre2-panel > h2{font-size:24px;line-height:1.15;margin:0 0 14px;color:#101828}
.cre2-card{
  background:var(--cre-color-surface);
  border:1px solid var(--cre-color-border);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--cre-shadow-sm);
}
.cre2-card + .cre2-card{margin-top:14px}
.cre2-card h3{font-size:18px;line-height:1.2;margin:0 0 12px;color:#101828}
.cre2-card .description{font-size:13px;line-height:1.5;color:#667085}
.cre2-grid{gap:16px}
.cre2-panel-actions{
  position:sticky;bottom:12px;background:rgba(246,247,249,.92);backdrop-filter:blur(8px);border-top:0;padding:14px 0 0;margin-top:18px
}
.cre2-panel-actions .button-primary{min-height:40px;border-radius:10px;background:var(--cre-color-primary);border-color:var(--cre-color-primary);padding:0 16px;font-weight:700}

.cre2-app .form-table{border-collapse:separate;border-spacing:0 10px}
.cre2-app .form-table th{padding:10px 14px 0 0;font-size:13px;font-weight:700;color:#344054;vertical-align:top}
.cre2-app .form-table td{padding:0;vertical-align:top}
.cre2-app input[type=text],
.cre2-app input[type=url],
.cre2-app input[type=number],
.cre2-app input[type=password],
.cre2-app select,
.cre2-app textarea{
  border:1px solid #d5dae3 !important;
  border-radius:10px !important;
  min-height:40px;
  padding:8px 12px !important;
  box-shadow:none !important;
  background:#fff;
}
.cre2-app textarea{min-height:120px}
.cre2-app input[type=text]:focus,
.cre2-app input[type=url]:focus,
.cre2-app input[type=number]:focus,
.cre2-app input[type=password]:focus,
.cre2-app select:focus,
.cre2-app textarea:focus{border-color:#b7a287 !important;box-shadow:0 0 0 4px rgba(56,44,30,.10) !important}
.cre2-app input[type=checkbox],.cre2-app input[type=radio]{accent-color:var(--cre-color-primary)}
.cre2-checks{columns:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 18px}
.cre2-checks label{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #eceff4;border-radius:12px;background:#fcfcfd;margin:0}
.cre2-checks label:hover{background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.04)}

.cre2-app .widefat{border:1px solid var(--cre-color-border);border-radius:16px;overflow:hidden;box-shadow:none}
.cre2-app .widefat thead th{background:#fafbfc;color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:12px 14px;border-bottom:1px solid var(--cre-color-border)}
.cre2-app .widefat td{padding:14px;border-bottom:1px solid #eef1f4;vertical-align:middle}
.cre2-app .widefat tr:last-child td{border-bottom:0}
.cre2-app .striped > tbody > :nth-child(odd){background:#fff}
.cre2-app .striped > tbody > :nth-child(even){background:#fcfcfd}

.cre2-sales-total,.cre2-sales-detail{border-color:var(--cre-color-border);border-radius:16px;box-shadow:var(--cre-shadow-sm)}
.cre2-sales-total-label,.cre2-sales-total-value{color:#101828}

/* UI extras / dashboard / inspector refresh */
.cre2x-card{border-radius:18px !important;border-color:var(--cre-color-border) !important;box-shadow:var(--cre-shadow-sm) !important;padding:20px !important}
.cre2x-kpi{font-size:34px !important;line-height:1 !important;letter-spacing:-.03em}
.cre2x-label{font-size:12px !important;letter-spacing:.04em;text-transform:uppercase;color:#667085 !important;font-weight:700}
.cre2x-header{margin-bottom:6px}
.cre2x-step{background:#fffaf3 !important;border-color:#eed9ba !important;border-radius:18px !important}
.cre2x-form .regular-text,.cre2x-form select,.cre2x-form textarea{min-width:0;width:100%}
.cre2x-inspector-form,.cre2x-search-results{border-color:var(--cre-color-border) !important;border-radius:18px !important;box-shadow:var(--cre-shadow-md) !important}
.cre2x-search-item{padding:12px 14px !important}
.cre2x-badge,.cre2x-price-pill{border-radius:999px !important}
.cre2x-tree details{border-color:var(--cre-color-border) !important;border-radius:16px !important;background:#fbfcfe !important}
.cre2x-tree summary{padding:14px 16px !important}
.cre2x-mini,.cre2x-note,.cre2x-subtle,.cre2x-axis{color:#667085 !important}

/* Settings and Access+ visual polish */
.cre2-card .button,
.cre2-panel .button{border-radius:10px}
.cre2-card .button-primary,.cre2-panel .button-primary{background:var(--cre-color-primary);border-color:var(--cre-color-primary)}
.cre2-card .button-primary:hover,.cre2-panel .button-primary:hover{background:var(--cre-color-primary-2);border-color:var(--cre-color-primary-2)}
code{padding:2px 6px;border-radius:8px;background:#f4f4f5}

/* Responsive */
@media (max-width: 900px){
  .cre2-topbar{padding:14px 14px}
  .cre2-screen-head{padding:18px;border-radius:20px}
  .cre2-screen-title{font-size:24px}
  .cre2-summary-chip{min-width:unset}
  .cre2-tab-group{align-items:flex-start;flex-direction:column}
  .cre2-tab-group-label{min-width:0}
}


/* === CRE PRO UI Refresh 3.2.20 — second pass polish === */
:root{
  --cre-ui-bg:#f3f4f7;
  --cre-ui-surface:#ffffff;
  --cre-ui-surface-soft:#fbfbfd;
  --cre-ui-border:#e3e7ef;
  --cre-ui-border-strong:#d4dbe6;
  --cre-ui-text:#0f172a;
  --cre-ui-muted:#667085;
  --cre-ui-primary:#1f4ed8;
  --cre-ui-brown:#4b3521;
  --cre-ui-success:#0f8f62;
  --cre-ui-shadow:0 12px 34px rgba(15,23,42,.06);
  --cre-ui-shadow-soft:0 6px 18px rgba(15,23,42,.05);
}

body.toplevel_page_content-revenue-engine,
body.content-revenue_page_cre2-content-revival{background:var(--cre-ui-bg)}
body.toplevel_page_content-revenue-engine #wpcontent,
body.content-revenue_page_cre2-content-revival #wpcontent{padding-left:18px}
body.toplevel_page_content-revenue-engine #wpbody-content > .notice:not(.cre2-keep-notice),
body.toplevel_page_content-revenue-engine #wpbody-content > .update-nag,
body.toplevel_page_content-revenue-engine #wpbody-content > .updated,
body.toplevel_page_content-revenue-engine #wpbody-content > .error,
body.content-revenue_page_cre2-content-revival #wpbody-content > .notice:not(.cre2-keep-notice),
body.content-revenue_page_cre2-content-revival #wpbody-content > .update-nag,
body.content-revenue_page_cre2-content-revival #wpbody-content > .updated,
body.content-revenue_page_cre2-content-revival #wpbody-content > .error{display:none !important}
.cre2-app .notice:not(.cre2-keep-notice):not(.cre2-notices .notice),
.cre2-app .update-nag,
.cre2-app .error:not(.cre2-notices .error),
.cre2-app .updated:not(.cre2-notices .updated){display:none !important}
.cre2-app [class*="tutor"]:not(.cre2-keep-notice),
.cre2-app [id*="tutor"]:not(.cre2-keep-notice){display:none !important}

.cre2-wrap{max-width:1280px;margin-right:20px}
.cre2-app{padding-bottom:28px}
.cre2-notices{margin:0 0 14px}
.cre2-notices .notice{margin:0 0 10px;border-radius:14px;border:1px solid var(--cre-ui-border);box-shadow:var(--cre-ui-shadow-soft)}
.cre2-topbar{padding:18px 22px;border-radius:22px;border-color:rgba(15,23,42,.08);box-shadow:0 16px 40px rgba(15,23,42,.08)}
.cre2-topbar-left{gap:18px}
.cre2-topbar-logo{height:42px}
.cre2-topbar-meta h1{margin:0 0 4px;font-size:23px;line-height:1.08;color:var(--cre-ui-text);letter-spacing:-.02em}
.cre2-topbar-ver{font-size:14px;color:var(--cre-ui-muted)}
.cre2-topbar-right{gap:10px}
.cre2-pill{padding:10px 16px;font-size:12px;font-weight:700;letter-spacing:.02em;border-width:1px}
.cre2-pill strong{font-weight:800}
.cre2-pill-ok{background:#dcfce7;color:#116149;border-color:#b7efcb}
.cre2-pill-muted{background:#eef2ff;color:#2443b8;border-color:#d9e1ff}
.cre2-pill-outline{background:#fff;border-color:var(--cre-ui-border-strong);color:#344054}
.cre2-topbar-actions .button,
.cre2-topbar-actions .button-primary,
.cre2-topbar-actions .button-secondary{min-height:44px;padding:0 20px;border-radius:15px;font-weight:700;box-shadow:none}
.cre2-topbar-actions .button-primary{background:var(--cre-ui-brown);border-color:var(--cre-ui-brown)}
.cre2-topbar-actions .button-secondary{border-color:#2f6fb4;color:#2f6fb4;background:#fff}

.cre2-tabs-wrap{display:grid;gap:14px;margin:18px 0 22px}
.cre2-tab-group{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;align-items:center}
.cre2-tab-group-label{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#667085}
.cre2-tabs{gap:12px;margin:0}
.cre2-tabs a{padding:12px 18px;border-radius:999px;border-color:var(--cre-ui-border-strong);color:#344054;font-weight:700;box-shadow:0 2px 6px rgba(15,23,42,.03);transition:all .18s ease}
.cre2-tabs a:hover{transform:translateY(-1px);border-color:#c6d0df;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.cre2-tabs a.active{background:var(--cre-ui-brown);border-color:var(--cre-ui-brown);box-shadow:0 10px 24px rgba(75,53,33,.16)}

.cre2-screen-intro{padding:28px 30px;border-radius:28px;background:linear-gradient(135deg,#071631 0%,#1b1f2a 48%,#3f2c1b 100%);box-shadow:0 20px 54px rgba(15,23,42,.14);margin:0 0 16px}
.cre2-screen-intro .cre2-eyebrow{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.14);color:#f8fafc;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.cre2-screen-intro h1,.cre2-screen-intro h2,.cre2-screen-intro-title{margin:18px 0 10px;color:#fff;font-size:31px;line-height:1.04;letter-spacing:-.03em}
.cre2-screen-intro p,.cre2-screen-intro-desc{max-width:820px;margin:0;color:rgba(255,255,255,.82);font-size:15px;line-height:1.58}
.cre2-screen-summary{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.cre2-summary-chip{display:inline-flex;align-items:flex-start;gap:10px;padding:11px 14px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(6px)}
.cre2-summary-chip strong{font-size:14px;line-height:1.2}
.cre2-summary-chip em{font-style:normal;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.68);padding-top:1px}

.cre2-tabhelp-inner{padding:16px 18px;border-radius:18px;border-color:var(--cre-ui-border);background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:var(--cre-ui-shadow-soft)}
.cre2-tabhelp-title{font-size:15px}
.cre2-tabhelp-body{font-size:13.5px;line-height:1.55;color:#475467}

.cre2-card,.cre2-panel{border-radius:20px;border-color:var(--cre-ui-border);padding:18px 20px;background:var(--cre-ui-surface);box-shadow:var(--cre-ui-shadow-soft)}
.cre2-card h3,.cre2-panel h2{font-size:18px;letter-spacing:-.01em;margin-bottom:12px;color:var(--cre-ui-text)}
.cre2-card p.description,.cre2-panel .description{font-size:13px;color:var(--cre-ui-muted)}
.cre2-panel-actions{margin-top:22px;padding-top:18px;border-top:1px solid var(--cre-ui-border)}
.cre2-panel-actions .button-primary,
.cre2-panel-actions input[type=submit]{min-height:42px;padding:0 18px;border-radius:14px;font-weight:700}
.cre2-grid{gap:16px}
.cre2-checks{columns:1}
.cre2-checks label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin:0 0 8px;border:1px solid var(--cre-ui-border);border-radius:14px;background:var(--cre-ui-surface-soft)}
.cre2-checks label:hover{border-color:#cfd7e4;background:#fff}
.cre2-checks input{margin-top:2px}

.cre2-main .form-table th{width:260px;color:#344054;font-size:13px;font-weight:700;padding:16px 18px 16px 0}
.cre2-main .form-table td{padding:14px 0}
.cre2-main input[type=text],.cre2-main input[type=url],.cre2-main input[type=number],.cre2-main select,.cre2-main textarea{border-color:#d4dbe6;border-radius:12px;min-height:42px;padding:8px 12px;box-shadow:none}
.cre2-main textarea{min-height:110px}
.cre2-main input[type=text]:focus,.cre2-main input[type=url]:focus,.cre2-main input[type=number]:focus,.cre2-main select:focus,.cre2-main textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.cre2-main .button,.cre2-main .button-secondary{border-radius:12px;font-weight:700}
.cre2-main .button-primary{border-radius:12px;font-weight:700;background:var(--cre-ui-brown);border-color:var(--cre-ui-brown)}

.cre2-notice-preview{border-radius:16px;padding:16px 18px;box-shadow:var(--cre-ui-shadow-soft)}
.cre2-cta-top .cre2-card,.cre2-cta-top .cre2-panel{min-height:100%}
.cre2-paidposts-results{border-radius:16px;border:1px solid var(--cre-ui-border);overflow:hidden}

@media (max-width: 960px){
  body.toplevel_page_content-revenue-engine #wpcontent,body.content-revenue_page_cre2-content-revival #wpcontent{padding-left:12px}
  .cre2-tab-group{grid-template-columns:1fr;gap:8px}
  .cre2-topbar{padding:16px}
  .cre2-topbar-meta h1{font-size:21px}
  .cre2-screen-intro{padding:22px}
  .cre2-screen-intro h1,.cre2-screen-intro h2,.cre2-screen-intro-title{font-size:28px}
}
@media (max-width: 640px){
  .cre2-wrap{margin-right:10px}
  .cre2-tabs a{padding:11px 14px}
  .cre2-topbar-actions{width:100%}
  .cre2-topbar-actions .button,.cre2-topbar-actions .button-primary,.cre2-topbar-actions .button-secondary{flex:1 1 auto;justify-content:center}
  .cre2-screen-intro{border-radius:22px}
}
