/*
 * Romelius Affiliate Importer — admin UI
 *
 * Table of contents
 *  1. Variables & wrapper
 *  2. Hero
 *  3. Layout
 *  4. Tiles
 *  5. Buttons
 *  6. Forms (switches, radio cards, tabs)
 *  7. Pills
 *  8. Alerts / toast
 *  9. Charts / lists
 * 10. Import
 * 11. Tables
 * 12. License & product metabox
 * 13. Premium dashboard
 * 14. Priority Sync
 * 15. Badges & lists
 * 16. Language switcher
 * 17. AI
 * 18. Launch Radar
 * 19. Diagnostic
 * 20. What to do today
 * 21. Profit Score
 * 22. Site wizard
 * 23. SEO pack
 * 24. Comparisons
 * 25. Market monitor
 * 26. Utilities
 * 27. Responsive (all media queries)
 */
.rea-wrap {
	--rea-navy: #0e1a33;
	--rea-navy-2: #172a52;
	--rea-primary: #2f6bff;
	--rea-primary-d: #1f55d6;
	--rea-text: #1b2537;
	--rea-muted: #6b7486;
	--rea-border: #e3e7ef;
	--rea-bg: #f4f6fb;
	--rea-card: #fff;
	--rea-ok: #12a150;
	--rea-warn: #d97706;
	--rea-bad: #dc3545;
	--rea-radius: 12px;
	--rea-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
	color: var(--rea-text);
	margin: 0 20px 0 0;
	font-size: 13px;
}
#wpcontent:has(.rea-wrap) { background: var(--rea-bg, #f4f6fb); }
body:has(.rea-wrap) #wpcontent { background: #f4f6fb; }
.rea-wrap *, .rea-wrap *::before, .rea-wrap *::after { box-sizing: border-box; }
.rea-wrap h2 { font-size: 15px; margin: 0; color: var(--rea-text); font-weight: 600; }

/* ---------- Hero ---------- */
.rea-hero {
	background: radial-gradient(1200px 300px at 85% -50%, rgba(47, 107, 255, .35), transparent 60%), linear-gradient(135deg, var(--rea-navy), var(--rea-navy-2));
	color: #fff;
	border-radius: 0 0 var(--rea-radius) var(--rea-radius);
	margin: 0 0 20px -20px;
	padding: 22px 28px 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px 20px;
	box-shadow: 0 6px 24px rgba(14, 26, 51, .18);
}
.rea-hero__brand { display: flex; align-items: center; gap: 14px; }
.rea-hero__logo {
	width: 46px; height: 46px; border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, #4f86ff, #2f6bff 60%, #6a4bff);
	box-shadow: 0 4px 14px rgba(47, 107, 255, .45);
	color: #fff;
}
.rea-hero__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.rea-hero__sub { color: #aeb9d4; font-size: 12px; margin-top: 2px; }
.rea-hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rea-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 11px; border-radius: 999px;
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .14);
	color: #dfe6f5; text-decoration: none; font-size: 12px; font-weight: 500;
}
.rea-chip:hover, .rea-chip:focus { color: #fff; }
.rea-chip .dashicons { font-size: 15px; width: 15px; height: 15px; }
.rea-chip--ok .rea-dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.rea-chip--bad .rea-dot { background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .25); }
.rea-chip--warn { background: rgba(245, 166, 35, .16); border-color: rgba(245, 166, 35, .4); color: #ffd99a; }
.rea-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.rea-nav { grid-column: 1 / -1; display: flex; gap: 2px; overflow-x: auto; margin: 4px -8px 0; scrollbar-width: none; }
.rea-nav__item {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	padding: 11px 14px 13px; color: #b7c2dc; text-decoration: none; font-weight: 500;
	border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.rea-nav__item .dashicons { font-size: 17px; width: 17px; height: 17px; opacity: .85; }
.rea-nav__item:hover, .rea-nav__item:focus { color: #fff; box-shadow: none; }
.rea-nav__item.is-active { color: #fff; border-bottom-color: #5b8cff; }

/* ---------- Layout ---------- */
.rea-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rea-layout__main, .rea-layout__side { display: grid; gap: 20px; min-width: 0; }
.rea-grid { display: grid; gap: 16px; }
.rea-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rea-grid--tight { gap: 10px; }
.rea-grid--tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }
.rea-grid--tiles-sm { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.rea-card {
	background: var(--rea-card); border: 1px solid var(--rea-border);
	border-radius: var(--rea-radius); padding: 20px; box-shadow: var(--rea-shadow);
	min-width: 0;
}
.rea-card--accent { background: linear-gradient(180deg, #f3f7ff, #fff 60%); border-color: #d6e2ff; }
.rea-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rea-sticky { position: sticky; top: 46px; }

/* ---------- Tiles ---------- */
.rea-tile {
	background: #fff; border: 1px solid var(--rea-border); border-radius: var(--rea-radius);
	padding: 16px 18px; box-shadow: var(--rea-shadow); position: relative; text-decoration: none; color: inherit;
}
.rea-tile__icon {
	width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
	font-size: 18px; margin-bottom: 10px;
}
.rea-tile__icon::before { line-height: 34px; }
.rea-tile__value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.rea-tile__value small { font-size: 13px; color: var(--rea-muted); font-weight: 500; }
.rea-tile__label { color: var(--rea-muted); margin-top: 4px; font-size: 12px; }
.rea-tile--link:hover { border-color: #b9cbff; }
.rea-tile--link.is-active { border-color: var(--rea-primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.rea-c-blue { background: #e8efff; color: #2f6bff; }
.rea-c-green { background: #e5f7ed; color: #12a150; }
.rea-c-violet { background: #f0eaff; color: #7247e6; }
.rea-c-amber { background: #fff3e0; color: #d97706; }
.rea-c-red { background: #ffe9ec; color: #dc3545; }
.rea-c-slate { background: #edf0f5; color: #475569; }

/* ---------- Buttons ---------- */
.rea-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
	font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.rea-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.rea-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
.rea-btn--primary { background: var(--rea-primary); color: #fff; }
.rea-btn--primary:hover, .rea-btn--primary:focus { background: var(--rea-primary-d); color: #fff; }
.rea-btn--ghost { background: #fff; border-color: var(--rea-border); color: var(--rea-text); }
.rea-btn--ghost:hover, .rea-btn--ghost:focus { border-color: #b9c3d6; background: #f8f9fc; color: var(--rea-text); }
.rea-btn--danger { background: #fff; border-color: #f3c4ca; color: var(--rea-bad); }
.rea-btn--danger:hover { background: #fff3f4; color: var(--rea-bad); }
.rea-btn--sm { height: 30px; padding: 0 10px; font-size: 12px; }
.rea-btn--lg { height: 44px; padding: 0 20px; font-size: 14px; }
.rea-btn--block { width: 100%; }
.rea-btn[disabled], .rea-btn.is-busy { opacity: .55; cursor: not-allowed; pointer-events: none; }
.rea-btn.is-busy .dashicons { animation: rea-spin 1s linear infinite; }
@keyframes rea-spin { to { transform: rotate(360deg); } }
.rea-link { color: var(--rea-primary); text-decoration: none; font-weight: 500; }

/* ---------- Forms ---------- */
.rea-wrap input[type="text"], .rea-wrap input[type="search"], .rea-wrap input[type="number"],
.rea-wrap input[type="url"], .rea-wrap input[type="password"], .rea-wrap select, .rea-wrap textarea {
	border: 1px solid #d5dbe6; border-radius: 8px; min-height: 36px; padding: 0 10px;
	background: #fff; color: var(--rea-text); width: 100%; max-width: 100%; box-shadow: none;
}
.rea-wrap textarea { padding: 8px 10px; min-height: 70px; }
.rea-wrap select { padding-right: 28px; }
.rea-wrap input:focus, .rea-wrap select:focus, .rea-wrap textarea:focus { border-color: var(--rea-primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); outline: none; }
.rea-field { display: grid; gap: 6px; min-width: 0; }
.rea-field label { font-weight: 600; font-size: 12px; color: #3a4558; }
.rea-help { color: var(--rea-muted); font-size: 12px; margin: 4px 0 0; line-height: 1.5; }
.rea-stack { display: grid; gap: 12px; }
.rea-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rea-inline--stretch { flex-wrap: nowrap; }
.rea-inline--stretch > input, .rea-inline--stretch > code { flex: 1; min-width: 0; }
.rea-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rea-input-lg { min-height: 46px !important; font-size: 15px !important; }

.rea-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.rea-field--wide { grid-column: span 2; }
.rea-field--actions { grid-column: span 1; }
.rea-filters .rea-inline { flex-wrap: nowrap; }
.rea-filters .rea-inline input { flex: 1; min-width: 0; }
.rea-field--actions .rea-btn { width: 100%; height: 36px; }

.rea-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid #eef1f6; }
.rea-card__head + .rea-row { border-top: 0; padding-top: 0; }
.rea-row__label { font-weight: 600; color: #2b3547; }
.rea-row__label label { font-weight: 600; }
.rea-row__field { max-width: 560px; }
.rea-form__footer { border-top: 1px solid #eef1f6; padding-top: 18px; margin-top: 4px; display: flex; justify-content: flex-end; }

/* switches */
.rea-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.rea-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rea-switch__track { width: 38px; height: 22px; border-radius: 999px; background: #cfd6e3; position: relative; flex: none; transition: background .2s; }
.rea-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.rea-switch input:checked + .rea-switch__track { background: var(--rea-primary); }
.rea-switch input:checked + .rea-switch__track::after { transform: translateX(16px); }
.rea-switch input:focus-visible + .rea-switch__track { box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
.rea-switch__label { font-weight: 500; }

/* radio cards */
.rea-radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rea-border); border-radius: 10px; cursor: pointer; }
.rea-radio-card:has(input:checked) { border-color: var(--rea-primary); background: #f5f8ff; }
.rea-radio-card input { margin-top: 2px; }
.rea-radio-card span { display: grid; gap: 3px; }
.rea-radio-card small { color: var(--rea-muted); }

/* tabs */
.rea-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rea-tabs__item {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px;
	color: #435066; text-decoration: none; font-weight: 600; background: #fff; border: 1px solid var(--rea-border);
}
.rea-tabs__item .dashicons { font-size: 16px; width: 16px; height: 16px; }
.rea-tabs__item:hover { color: var(--rea-primary); }
.rea-tabs__item.is-active { background: var(--rea-navy); border-color: var(--rea-navy); color: #fff; }

/* ---------- Pills ---------- */
.rea-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eef1f6; color: #4a5568; }
.rea-pill--active { background: #e3f6ea; color: #0f7a3d; }
.rea-pill--missing { background: #fff2dc; color: #a35a00; }
.rea-pill--unavailable { background: #ffe7ea; color: #b4232f; }
.rea-pill--error { background: #fde2e4; color: #9f1239; }
.rea-tier { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.rea-tier .dashicons { font-size: 12px; width: 12px; height: 12px; }
.rea-tier--1 { background: #ffe8e1; color: #c2410c; }
.rea-tier--2 { background: #fff4d6; color: #a16207; }
.rea-tier--3 { background: #e6efff; color: #1d4ed8; }
.rea-tier--4 { background: #eceff4; color: #475569; }
.rea-count { background: var(--rea-primary); color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 12px; }
.rea-level { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.rea-level--success { color: var(--rea-ok); }
.rea-level--info { color: #2563eb; }
.rea-level--warning { color: var(--rea-warn); }
.rea-level--error { color: var(--rea-bad); }
.rea-text-ok { color: var(--rea-ok); }
.rea-text-bad { color: var(--rea-bad); }
.rea-muted { color: var(--rea-muted); }
.rea-small { font-size: 12px; }
.rea-delta { color: var(--rea-ok); font-size: 11px; font-weight: 600; margin-left: 4px; }

/* ---------- Alerts / toast ---------- */
.rea-alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.rea-alert--ok { background: #e7f7ee; color: #0f6e37; border: 1px solid #c3ebd3; }
.rea-alert--warn { background: #fff6e6; color: #8a4b00; border: 1px solid #ffe0a8; }
.rea-alert--bad { background: #ffeef0; color: #a01b2b; border: 1px solid #ffcdd3; }
.rea-result { margin: 6px 0 0; font-weight: 500; min-height: 1em; }
.rea-result.is-ok { color: var(--rea-ok); }
.rea-result.is-bad { color: var(--rea-bad); }
.rea-toast {
	position: fixed; right: 24px; bottom: 24px; z-index: 99999; max-width: 380px;
	background: var(--rea-navy); color: #fff; padding: 12px 16px; border-radius: 10px;
	box-shadow: 0 10px 30px rgba(14, 26, 51, .3); transform: translateY(20px); opacity: 0; pointer-events: none;
	transition: opacity .2s, transform .2s; font-weight: 500;
}
.rea-toast.is-visible { opacity: 1; transform: none; }
.rea-toast.is-bad { background: #9f1d2c; }

/* ---------- Charts / lists ---------- */
.rea-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; height: 190px; align-items: end; }
.rea-bars__col { display: grid; grid-template-rows: 16px 1fr 18px; height: 100%; align-items: end; text-align: center; }
.rea-bars__val { font-size: 11px; color: var(--rea-muted); }
.rea-bars__bar { display: block; width: 100%; max-width: 34px; margin: 0 auto; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5b8cff, #2f6bff); min-height: 2px; }
.rea-bars__lbl { font-size: 10px; color: var(--rea-muted); white-space: nowrap; }
.rea-rank { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.rea-rank li { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.rea-rank a { min-width: 0; }
.rea-rank a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rea-tierlist { margin: 0; display: grid; gap: 10px; }
.rea-tierlist li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; margin: 0; }
.rea-activity { margin: 0; display: grid; }
.rea-activity__item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid #f0f2f7; margin: 0; }
.rea-activity__item:first-child { border-top: 0; }
.rea-activity__dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.rea-activity__item--success .rea-activity__dot { background: var(--rea-ok); }
.rea-activity__item--warning .rea-activity__dot { background: var(--rea-warn); }
.rea-activity__item--error .rea-activity__dot { background: var(--rea-bad); }
.rea-activity__item--info .rea-activity__dot { background: #3b82f6; }
.rea-progress { height: 6px; border-radius: 99px; background: #e6ebf4; overflow: hidden; margin-bottom: 12px; }
.rea-progress span { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #6a4bff); border-radius: 99px; transition: width .3s; width: 0; }
.rea-progress--lg { height: 10px; margin-top: 4px; }
.rea-checklist { margin: 0; display: grid; gap: 9px; }
.rea-checklist li { display: flex; align-items: center; gap: 8px; margin: 0; }
.rea-checklist .dashicons { color: #a0aec0; }
.rea-checklist li.is-done { color: var(--rea-muted); text-decoration: line-through; }
.rea-checklist li.is-done .dashicons { color: var(--rea-ok); }
.rea-checklist a { text-decoration: none; font-weight: 600; }
.rea-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; }
.rea-dl dt { color: var(--rea-muted); }
.rea-dl dd { margin: 0; text-align: right; font-weight: 600; }
.rea-dl--wide dd { text-align: left; }
.rea-steps { margin: 16px 0 0 18px; display: grid; gap: 8px; color: #3a4558; }
.rea-steps--compact { margin-top: 0; }
.rea-sep { border: 0; border-top: 1px solid var(--rea-border); margin: 16px 0; }
.rea-code { display: block; padding: 9px 11px; background: #f5f7fb; border: 1px solid var(--rea-border); border-radius: 8px; font-size: 12px; word-break: break-all; }

/* ---------- Import ---------- */
.rea-markets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rea-market input { position: absolute; opacity: 0; }
.rea-market__box {
	display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rea-border);
	cursor: pointer; transition: border-color .15s, box-shadow .15s; position: relative; height: 100%;
	border-left: 4px solid var(--rea-m);
}
.rea-market__name { font-weight: 700; }
.rea-market__desc { color: var(--rea-muted); font-size: 11px; line-height: 1.35; }
.rea-market input:checked + .rea-market__box { border-color: var(--rea-m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rea-m) 18%, transparent); background: color-mix(in srgb, var(--rea-m) 5%, #fff); }
.rea-market input:focus-visible + .rea-market__box { box-shadow: 0 0 0 3px rgba(47, 107, 255, .35); }

.rea-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rea-placeholder { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--rea-muted); }
.rea-placeholder .dashicons { font-size: 36px; width: 36px; height: 36px; color: #b5c0d4; }
.rea-item {
	border: 1px solid var(--rea-border); border-radius: 12px; overflow: hidden; background: #fff;
	display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rea-item:hover { box-shadow: 0 6px 20px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.rea-item.is-selected { border-color: var(--rea-primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); }
.rea-item.is-imported { opacity: .82; }
.rea-item__img { aspect-ratio: 590 / 300; background: #eef1f6 center / cover no-repeat; display: block; position: relative; }
.rea-item__check { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .95); border: 1px solid #cfd6e3; display: grid; place-items: center; cursor: pointer; }
.rea-item__check input { margin: 0; }
.rea-item__flag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #12a150; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.rea-item__flag--trend { background: #f97316; }
.rea-item__body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; }
.rea-item__name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--rea-text); text-decoration: none; }
.rea-item__meta { color: var(--rea-muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.rea-item__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.rea-item__price { font-size: 17px; font-weight: 700; }
.rea-item__star { color: #f5a623; }
.rea-skeleton { border-radius: 12px; height: 260px; background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: rea-shimmer 1.2s infinite; }
@keyframes rea-shimmer { to { background-position: -200% 0; } }

.rea-selected { margin: 0 0 14px; max-height: 300px; overflow: auto; display: grid; gap: 6px; }
.rea-selected li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; margin: 0; padding: 6px; border-radius: 8px; background: #f7f9fc; }
.rea-selected li.rea-selected__empty { display: block; background: none; padding: 0; }
.rea-selected img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.rea-selected__name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rea-selected__state { font-size: 11px; }
.rea-selected__state.is-ok { color: var(--rea-ok); }
.rea-selected__state.is-bad { color: var(--rea-bad); }
.rea-selected__x { border: 0; background: none; cursor: pointer; color: var(--rea-muted); padding: 2px; }
.rea-selected__x:hover { color: var(--rea-bad); }

.rea-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; align-items: center; }

/* ---------- Tables ---------- */
.rea-table-wrap { position: relative; overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.rea-table { width: 100%; border-collapse: collapse; }
.rea-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--rea-muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--rea-border); white-space: nowrap; }
.rea-table td { padding: 12px 10px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.rea-table tr:hover td { background: #fafbfd; }
.rea-table .rea-num { text-align: right; white-space: nowrap; }
.rea-actions { white-space: nowrap; text-align: right; }
.rea-actions .rea-btn + .rea-btn { margin-left: 4px; }
.rea-prod { display: flex; gap: 10px; align-items: center; min-width: 240px; }
.rea-prod a { text-decoration: none; }
.rea-prod__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.rea-tier-select { min-height: 30px !important; font-size: 12px; width: auto !important; font-weight: 600; }
.rea-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.rea-toolbar select, .rea-toolbar input[type="search"] { width: auto !important; min-width: 150px; }
.rea-toolbar__count { margin-left: auto; }
.rea-health { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.rea-health__items { display: flex; gap: 32px; flex-wrap: wrap; }
.rea-health__items > div { display: grid; gap: 2px; }
.rea-health__items strong { font-size: 18px; }
.rea-health__warn { flex-basis: 100%; margin: 0; }
.rea-tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rea-tier-field { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--rea-border); border-radius: 10px; }
.rea-tier-field .rea-tier { justify-self: start; }
.rea-tier-field small { color: var(--rea-muted); }

/* ---------- License ---------- */
.rea-license { text-align: center; padding: 36px; }
.rea-license form { max-width: 460px; margin: 18px auto 10px; text-align: left; }
.rea-license__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #4f86ff, #6a4bff); color: #fff; box-shadow: 0 8px 22px rgba(47, 107, 255, .35); }
.rea-license__icon .dashicons { font-size: 30px; width: 30px; height: 30px; }
.rea-license h2 { font-size: 20px; margin-bottom: 6px; }
.rea-details summary { cursor: pointer; color: var(--rea-muted); font-weight: 500; margin-bottom: 8px; }
.rea-empty { text-align: center; padding: 48px 20px; }
.rea-empty__icon { font-size: 42px; width: 42px; height: 42px; color: #9aa8c2; }
.rea-empty h2 { font-size: 18px; margin: 12px 0 6px; }
.rea-empty p { color: var(--rea-muted); max-width: 460px; margin: 0 auto 16px; }

/* product metabox */
.rea-metabox ul { margin: 0 0 10px; }
.rea-metabox .rea-pill, .rea-metabox .rea-tier { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }

/* ---------- Premium dashboard ---------- */
.rea-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.rea-dash-head h2 { font-size: 18px; }
.rea-seg { display: inline-flex; background: #fff; border: 1px solid var(--rea-border); border-radius: 10px; padding: 3px; gap: 2px; }
.rea-seg__item { padding: 6px 14px; border-radius: 7px; color: #435066; text-decoration: none; font-weight: 600; font-size: 12px; }
.rea-seg__item:hover, .rea-seg__item:focus { color: var(--rea-primary); box-shadow: none; }
.rea-seg__item.is-active { background: var(--rea-navy); color: #fff; }
.rea-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--rea-muted); margin: 6px 0 10px; font-weight: 700; }
.rea-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rea-kpi { display: grid; gap: 8px; background: #fff; border: 1px solid var(--rea-border); border-radius: var(--rea-radius); padding: 16px 18px; box-shadow: var(--rea-shadow); color: inherit; text-decoration: none; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
a.rea-kpi:hover, a.rea-kpi:focus { border-color: #b9cbff; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); color: inherit; }
a.rea-kpi:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
.rea-kpi--warn { border-color: #f6d39a; background: linear-gradient(180deg, #fffaf0, #fff 55%); }
.rea-kpi--bad { border-color: #f5c2c8; background: linear-gradient(180deg, #fff5f6, #fff 55%); }
.rea-kpi__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rea-kpi__icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex: none; }
.rea-kpi__icon::before { line-height: 26px; }
.rea-kpi__label { font-weight: 600; color: #3a4558; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rea-kpi__state { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; }
.rea-kpi--warn .rea-kpi__state { background: #fff1d6; color: #9a5b00; }
.rea-kpi--bad .rea-kpi__state { background: #ffe1e5; color: #a01b2b; }
.rea-kpi__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rea-kpi__value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.rea-kpi__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; min-height: 18px; }
.rea-kpi__sub { color: var(--rea-muted); flex-basis: 100%; }
.rea-delta-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.rea-delta-chip.is-good { background: #e3f6ea; color: #0f7a3d; }
.rea-delta-chip.is-bad { background: #ffe7ea; color: #b4232f; }
.rea-delta-chip.is-flat { background: #eef1f6; color: #5b6578; }
.rea-spark { width: 46%; max-width: 140px; height: 34px; flex: none; overflow: visible; }
.rea-spark__area { fill: currentColor; opacity: .12; }
.rea-spark__line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rea-spark__dot { fill: currentColor; stroke: #fff; stroke-width: 1.5; }
.rea-spark--blue { color: #2f6bff; }
.rea-spark--slate { color: #64748b; }
.rea-spark--red { color: #dc3545; }
.rea-spark--amber { color: #d97706; }
.rea-spark--violet { color: #7247e6; }
.rea-spark--green { color: #12a150; }
.rea-footnote { color: var(--rea-muted); font-size: 12px; margin: -8px 0 18px; }
.rea-alerts { display: grid; gap: 8px; margin-bottom: 18px; }
.rea-alertrow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; border: 1px solid; }
.rea-alertrow:focus { box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.rea-alertrow--bad { background: #fff1f3; border-color: #ffd0d6; color: #8f1d2b; }
.rea-alertrow--warn { background: #fff8eb; border-color: #ffe2ad; color: #7c4a03; }
.rea-alertrow--info { background: #f1f5ff; border-color: #d6e2ff; color: #1e3a8a; }
.rea-alertrow:hover { filter: brightness(.98); }
.rea-alertrow__go { margin-left: auto; opacity: .6; }
.rea-tabs--sm .rea-tabs__item { padding: 6px 10px; font-size: 12px; cursor: pointer; }
.rea-count--muted { background: #eef1f6; color: #5b6578; font-size: 11px; padding: 1px 7px; }
.rea-tabs__item.is-active .rea-count--muted { background: rgba(255, 255, 255, .2); color: #fff; }
.rea-table--compact td { padding: 8px 6px; }
.rea-movers__change { white-space: nowrap; }
.rea-movers .rea-prod { min-width: 0; }
.rea-movers .rea-prod a { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rea-movers__change > * + * { margin-left: 6px; }
.rea-movers__empty { padding: 20px 0; text-align: center; }
.rea-filterbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f1f5ff; border: 1px solid #d6e2ff; border-radius: 10px; margin-bottom: 14px; color: #1e3a8a; }
.rea-filterbar .rea-btn { margin-left: auto; }

/* ---------- Priority Sync ---------- */
.rea-row--feature { background: linear-gradient(180deg, #f5f8ff, transparent); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.rea-prio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rea-prio-grid .rea-field span { font-size: 12px; font-weight: 600; color: #3a4558; }
.rea-prio { display: inline-grid; justify-items: end; gap: 2px; cursor: help; }
.rea-prio__bits { font-size: 11px; white-space: nowrap; }
.rea-prio__bits .dashicons { font-size: 12px; width: 12px; height: 12px; vertical-align: -2px; margin: 0 1px 0 4px; }
.rea-sort { color: inherit; text-decoration: none; }
.rea-synccell > span { display: block; white-space: nowrap; }
.rea-synccell .dashicons { font-size: 13px; width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
#rea-products-table .rea-prod { min-width: 200px; }
.rea-sort.is-active, .rea-sort:hover { color: var(--rea-primary); }

/* ---------- Badges & lists ---------- */
.rea-help--lead { margin: -8px 0 16px; }
.rea-badge-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.rea-badge-card { border: 1px solid var(--rea-border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.rea-badge-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rea-badge-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rea-badge-card__grid .rea-field span { font-size: 12px; font-weight: 600; color: #3a4558; }
.rea-badge-demo { display: inline-flex; gap: 4px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.rea-badge-demo--trending, .rea-bdg--trending { background: #fff1e6; color: #9a3412; }
.rea-badge-demo--price_drop, .rea-bdg--price_drop { background: #e8f8ee; color: #166534; }
.rea-badge-demo--bestseller, .rea-bdg--bestseller { background: #fff7d6; color: #854d0e; }
.rea-badge-demo--updated, .rea-bdg--updated { background: #e8f0ff; color: #1e40af; }
.rea-badgecount { margin: 0 0 10px; display: grid; gap: 8px; }
.rea-badgecount li { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.rea-codes code { font-size: 12px; user-select: all; }
.rea-bdgs { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.rea-bdg { font-size: 11px; padding: 1px 5px; border-radius: 5px; cursor: help; }

/* ---------- Language switcher ---------- */
.rea-lang-switch { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #dfe6f5; }
.rea-lang-switch .dashicons { font-size: 15px; width: 15px; height: 15px; }
.rea-wrap .rea-lang-switch select { background: transparent; border: 0; color: #fff; min-height: 30px; width: auto; padding: 0 24px 0 4px; font-size: 12px; font-weight: 500; box-shadow: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23dfe6f5' d='M0 0h10L5 6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.rea-wrap .rea-lang-switch select option { color: #1b2537; }

/* ---------- AI ---------- */
.rea-ai-stats { display: flex; gap: 32px; flex-wrap: wrap; padding: 14px 16px; background: #f7f9fc; border-radius: 10px; margin-bottom: 18px; }
.rea-ai-stats > div { display: grid; gap: 2px; }
.rea-ai-stats strong { font-size: 18px; }
.rea-ai-stats small { font-size: 12px; color: var(--rea-muted); font-weight: 500; }
.rea-ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rea-ai-card { border: 1px solid var(--rea-border); border-radius: 12px; padding: 16px; display: grid; gap: 12px; align-content: start; border-top: 3px solid var(--rea-ai); }
.rea-ai-card.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rea-ai) 22%, transparent); }
.rea-ai-card__head { display: flex; align-items: center; gap: 10px; }
.rea-ai-card__head .rea-pill { margin-left: auto; }
.rea-ai-card__logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--rea-ai); color: #fff; font-weight: 800; }
.rea-ai-card .rea-result { margin: 0; min-height: 0; font-size: 12px; }
.rea-score { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.rea-score--good { background: #e3f6ea; color: #0f7a3d; }
.rea-score--mid { background: #fff4d6; color: #a16207; }
.rea-score--low { background: #ffe7ea; color: #b4232f; }
.rea-mb-ai { border-top: 1px solid #e3e7ef; margin-top: 10px; padding-top: 10px; }
.rea-mb-ai__title { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.rea-mb-ai__mode { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.rea-mb-ai__mode legend { font-weight: 600; margin-bottom: 4px; }
.rea-mb-ai__review { margin: 0 0 10px; }
.rea-mb-ai__review summary { cursor: pointer; font-weight: 600; }
.rea-mb-ai .spinner { float: none; margin-top: 4px; }


/* ---------- Launch Radar (2.4) ---------- */
.rea-seg--wrap { flex-wrap: wrap; margin-bottom: 14px; }
.rea-seg__item .rea-count--muted { margin-left: 4px; }
.rea-seg__item.is-active .rea-count--muted { background: rgba(255, 255, 255, .2); color: #fff; }
.rea-launches { list-style: none; margin: 0; padding: 0; }
.rea-launch { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rea-border); margin: 0; }
.rea-launch:first-child { border-top: 0; }
.rea-launch.is-done { opacity: .45; }
.rea-launch__img { width: 64px; height: 64px; border-radius: 10px; background: #eef1f6; overflow: hidden; }
.rea-launch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rea-launch__title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rea-launch__title a { color: var(--rea-navy); text-decoration: none; }
.rea-launch__title a:hover { color: var(--rea-primary); }
.rea-launch__meta { margin-top: 3px; }
.rea-launch__note { margin-top: 4px; color: #a16207; }
.rea-launch__price { font-weight: 700; font-size: 15px; color: var(--rea-navy); }
.rea-launch__actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.rea-launches__bulk { justify-content: flex-end; margin-top: 8px; }
.rea-channels { list-style: none; margin: 0 0 12px; padding: 0; }
.rea-channels li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rea-border); margin: 0; }
.rea-dot--ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.rea-dot--off { background: #c7cdd8; }
.rea-badge-demo--new_launch, .rea-bdg--new_launch { background: #ede9fe; color: #6d28d9; }
.rea-notify-card { border: 1px solid var(--rea-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.rea-notify-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.rea-notify-card__head h3 { margin: 0; font-size: 14px; }
.rea-notify-card .rea-field { margin-top: 10px; }
.rea-notify-card .rea-inline { margin-top: 10px; }
.rea-steps { margin: 6px 0 0 18px; color: #5b6578; font-size: 12px; }
.rea-steps li { margin-bottom: 3px; }
.rea-chatlist { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.rea-mini-launches { list-style: none; margin: 10px 0 0; padding: 0; }
.rea-mini-launches li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--rea-border); margin: 0; font-size: 13px; }
.rea-mini-launches a { color: var(--rea-navy); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rea-mini-launches .rea-small { white-space: nowrap; }
.rea-nav__count { background: #ff5a5f; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 6px; line-height: 1.5; }

/* ---------- Diagnostic (2.5) ---------- */
.rea-diag-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.rea-diag-progress { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1; }
.rea-diag-sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.rea-st { border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12px; }
.rea-st--ok { background: #e3f6ea; color: #0f7a3d; }
.rea-st--warn { background: #fff4d6; color: #a16207; }
.rea-st--fail { background: #ffe7ea; color: #b4232f; }
.rea-diag { list-style: none; margin: 0 0 8px; padding: 0; }
.rea-diag__row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rea-border); margin: 0; }
.rea-diag__row:first-child { border-top: 0; }
.rea-diag__icon { width: 18px; height: 18px; border-radius: 50%; background: #e3e7ef; margin-top: 2px; position: relative; }
.rea-diag__icon::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.is-ok .rea-diag__icon { background: #22c55e; } .is-ok .rea-diag__icon::after { content: "✓"; }
.is-warn .rea-diag__icon { background: #f59e0b; } .is-warn .rea-diag__icon::after { content: "!"; }
.is-fail .rea-diag__icon { background: #ef4444; } .is-fail .rea-diag__icon::after { content: "×"; }
.is-skip .rea-diag__icon { background: #c7cdd8; } .is-skip .rea-diag__icon::after { content: "–"; }
.is-running .rea-diag__icon { background: conic-gradient(var(--rea-primary) 0 25%, #e3e7ef 25%); animation: rea-spin .8s linear infinite; }
.is-pending { opacity: .55; }
@keyframes rea-spin { to { transform: rotate(360deg); } }
.rea-diag__label { font-weight: 600; color: var(--rea-navy); }
.rea-diag__msg { color: #435066; font-size: 13px; margin-top: 2px; }
.is-fail .rea-diag__msg { color: #b4232f; }
.is-warn .rea-diag__msg { color: #8a4b00; }
.rea-diag__status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7486; white-space: nowrap; }
.rea-diag__details { margin-top: 6px; font-size: 12px; color: #5b6578; }
.rea-diag__details summary { cursor: pointer; color: var(--rea-primary); }
.rea-diag__details ul { margin: 6px 0 0 16px; list-style: disc; }
.rea-diag__details li { margin: 2px 0; word-break: break-all; }
.rea-diag-report { width: 100%; min-height: 220px; margin-top: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.rea-diag-progress[hidden], .rea-diag-report[hidden] { display: none; }

/* ---------- What to do today (2.6) ---------- */
.rea-today { margin-bottom: 26px; }
.rea-today .rea-dash-head { align-items: baseline; }
.rea-dash-head--system { margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--rea-border); }
.rea-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rea-insight { display: flex; flex-direction: column; margin: 0; }
.rea-insight__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.rea-insight__icon { font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.rea-insight--opp .rea-insight__icon { background: #fff4d6; }
.rea-insight--trend .rea-insight__icon { background: #ffe9e2; }
.rea-insight--fix .rea-insight__icon { background: #e8f0ff; }
.rea-insight--cat .rea-insight__icon { background: #ede9fe; }
.rea-insight__head h3 { margin: 0 0 3px; font-size: 15px; color: var(--rea-navy); }
.rea-insight__sum { margin: 0; color: #435066; font-size: 13px; font-weight: 600; }
.rea-insight__list { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: ins; }
.rea-insight__list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--rea-border); margin: 0; }
.rea-insight__list li.is-done { opacity: .5; }
.rea-insight__list li.is-bad { box-shadow: inset 3px 0 0 #ef4444; padding-left: 10px; }
.rea-insight__list li.is-warn { box-shadow: inset 3px 0 0 #f59e0b; padding-left: 10px; }
.rea-insight__list li.is-info { box-shadow: inset 3px 0 0 #94a3b8; padding-left: 10px; }
.rea-insight__main { min-width: 0; flex: 1; }
.rea-insight__name { font-weight: 600; color: var(--rea-navy); text-decoration: none; margin-right: 6px; }
.rea-insight__name:hover { color: var(--rea-primary); }
.rea-insight__why { display: block; color: #5b6578; font-size: 12px; margin-top: 2px; }
.rea-insight__act { flex: none; display: flex; gap: 6px; }
.rea-insight__foot { margin-top: auto; padding-top: 10px; font-size: 12px; }
.rea-insight__foot a { text-decoration: none; font-weight: 600; }
.rea-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; vertical-align: 1px; }
.rea-tag--gem { background: #e3f6ea; color: #0f7a3d; }
.rea-tag--proven { background: #e8f0ff; color: #1e40af; }

/* ---------- Profit Score (2.7) ---------- */
.rea-ps { --ps: 0; --c: #94a3b8; position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--ps) * 1%), #e6ebf4 0); flex: none; cursor: help; vertical-align: middle; }
.rea-ps::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.rea-ps__val { position: relative; font-weight: 800; font-size: 13px; color: var(--c); line-height: 1; letter-spacing: -.02em; }
.rea-ps--top { --c: #16a34a; }
.rea-ps--good { --c: #2f6bff; }
.rea-ps--mid { --c: #d97706; }
.rea-ps--low { --c: #dc2626; }
.rea-ps--new { --c: #7c3aed; background: #ede9fe; }
.rea-ps--new .rea-ps__val { font-size: 9px; }
.rea-ps--lg { width: 56px; height: 56px; }
.rea-ps--lg .rea-ps__val { font-size: 19px; }
.rea-ps--lg::before { inset: 6px; }
.rea-item__img .rea-ps { position: absolute; right: 8px; bottom: 8px; box-shadow: 0 2px 8px rgba(14, 26, 51, .25); }
.rea-item__img { position: relative; }
.rea-ps-sort { font-size: 12px; color: #435066; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.rea-mb-ps { border-top: 1px solid #e3e7ef; margin-top: 10px; padding-top: 10px; }
.rea-mb-ps__head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.rea-mb-ps__bars { margin: 0; }
.rea-mb-ps__bars li { margin: 0 0 7px; }
.rea-mb-ps__lbl { display: flex; justify-content: space-between; font-size: 12px; }
.rea-mb-ps__bar { display: block; height: 5px; background: #e6ebf4; border-radius: 9px; overflow: hidden; margin: 2px 0; }
.rea-mb-ps__bar span { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #16a34a); border-radius: 9px; }
.rea-mb-ps__note { font-size: 11px; color: #6b7486; }
.rea-insight__main > .rea-ps { float: left; width: 32px; height: 32px; margin: 2px 10px 0 0; }
.rea-insight__main > .rea-ps .rea-ps__val { font-size: 11px; }
.rea-insight__main > .rea-ps::before { inset: 3px; }
.rea-mb-ph { color: #2f6bff; margin-bottom: 6px; }

/* Site wizard */
.rea-wz-presets { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rea-wz-presets legend { margin-bottom: 8px; }
.rea-wz-label { font-weight: 700; font-size: 13px; color: var(--rea-text, #1d2433); margin-top: 6px; }
.rea-wz-preset { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border: 1.5px solid #e1e6ef; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rea-wz-preset:hover { border-color: #b8c6e6; }
.rea-wz-preset input { position: absolute; opacity: 0; pointer-events: none; }
.rea-wz-preset:has(input:checked) { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47,107,255,.15); background: #f7f9ff; }
.rea-wz-preset:has(input:focus-visible) { outline: 2px solid #2f6bff; outline-offset: 2px; }
.rea-wz-preset__icon { font-size: 24px; line-height: 1; }
.rea-wz-preset__name { font-weight: 700; }
.rea-wz-preset__desc { font-size: 12px; color: var(--rea-muted, #667085); line-height: 1.4; }
.rea-wz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rea-wz-grid[hidden], #rea-wizard [hidden] { display: none !important; }
.rea-wz-opts { display: grid; gap: 10px; }
.rea-wz-opts .rea-help { margin: -4px 0 0; }
.rea-wz-sub { margin-left: 46px; }
.rea-wz-steps { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rea-wz-steps li { margin: 0; padding-left: 28px; position: relative; color: var(--rea-muted, #667085); }
.rea-wz-steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfd8e8; box-sizing: border-box; }
.rea-wz-steps li.is-active { color: inherit; font-weight: 600; }
.rea-wz-steps li.is-active::before { border-color: #2f6bff; border-right-color: transparent; animation: rea-spin .8s linear infinite; }
.rea-wz-steps li.is-done { color: inherit; }
.rea-wz-steps li.is-done::before { content: "✓"; background: #12a150; border-color: #12a150; color: #fff; font-size: 10px; line-height: 12px; text-align: center; }
.rea-wz-log { margin: 0 0 14px; padding: 10px 14px; background: #f6f8fb; border-radius: 10px; max-height: 220px; overflow: auto; list-style: none; }
.rea-wz-log:empty { display: none; }
.rea-wz-log li { margin: 0 0 4px; }
.rea-wz-get li::before { content: "✓"; color: #12a150; font-weight: 700; }
.rea-wz-runs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rea-wz-runs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid #eef1f6; }
.rea-pill--idle { background: #eef1f6; color: #667085; }

/* SEO pack */
.rea-seo-target { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f3f7ff; border: 1px solid #dbe5fb; border-radius: 10px; }
.rea-seo-target .dashicons { color: #2f6bff; }
.rea-seo-cov { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; gap: 10px; align-items: center; }
.rea-seo-cov .rea-progress { margin: 0; }
.rea-serp { border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px 12px; background: #fff; margin: 8px 0; font-family: arial, sans-serif; }
.rea-serp__url { color: #4d5156; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rea-serp__title { color: #1a0dab; font-size: 17px; line-height: 1.3; margin: 2px 0; }
.rea-serp__desc { color: #4d5156; font-size: 13px; line-height: 1.45; }
.rea-serp__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rea-serp__meta .rea-pill { font-weight: 500; }
.rea-mb-faq summary { cursor: pointer; font-weight: 600; }
.rea-mb-faq dl { margin: 6px 0 0; }
.rea-mb-faq dt { font-weight: 600; margin-top: 6px; }
.rea-mb-faq dd { margin: 2px 0 0; color: #50575e; }

/* Comparisons */
.rea-cmp-pairs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rea-cmp-pairs li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 12px; }
.rea-cmp-pairs li:hover { border-color: #d5def0; background: #fafbff; }
.rea-cmp-pairs__imgs { display: flex; align-items: center; gap: 6px; }
.rea-cmp-pairs__imgs img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.rea-cmp-pairs__vs { font-size: 11px; font-weight: 700; color: #8a94a6; text-transform: uppercase; }
.rea-cmp-form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; }
.rea-cmp-form select { width: 100%; max-width: none; }
.rea-cmp-ai { margin-top: 14px; }

/* Market monitor */
.rea-mk-tabs { margin-bottom: 16px; }
.rea-alert--info { background: #eef4ff; color: #1e3a8a; border: 1px solid #d3e0ff; }
.rea-mk-hero .rea-label-sm, .rea-label-sm { font-weight: 600; margin: 4px 0 8px; }
.rea-mk-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.rea-mk-tiles { margin-bottom: 16px; }
.rea-tile__sub { font-size: 12px; color: var(--rea-muted); margin-top: 4px; }
.rea-mk-tiles .rea-tile__label { margin: 0 0 6px; }
.rea-mk-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.rea-mk-spark { width: 100%; height: 56px; color: #2f6bff; display: block; margin-top: 8px; }
.rea-mk-authors { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rea-mk-authors li { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 40px; gap: 8px; align-items: center; margin: 0; font-size: 12px; }
.rea-mk-authors li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rea-mk-bar { height: 6px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.rea-mk-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #6a4bff); border-radius: 99px; }
.rea-mk-lists { margin-bottom: 6px; }
.rea-mk-lists .rea-seg__item { border: 0; background: none; cursor: pointer; }
.rea-mk-lists .rea-seg__item.is-active { background: var(--rea-navy); color: #fff; }
.rea-mk-panel[hidden] { display: none; }
.rea-mk-table td { vertical-align: middle; }
.rea-mk-item { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.rea-mk-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.rea-mk-item a { font-weight: 600; text-decoration: none; }
.rea-mk-pos { font-weight: 700; }
.rea-mk-move { font-size: 11px; font-weight: 700; white-space: nowrap; }
.rea-mk-move--up { color: #12a150; }
.rea-mk-move--down { color: #dc2626; }
.rea-mk-move--new { color: #7c3aed; }
.rea-mk-pct { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.rea-mk-pct--up { color: #0f7a3d; background: #e3f6ea; }
.rea-mk-pct--down { color: #b4232f; background: #ffe7ea; }
.rea-mk-foot { margin: 12px 0 0; }
.rea-mk-list .rea-actions { display: flex; gap: 4px; }
.rea-mk-table { font-size: 12.5px; }
.rea-mk-table th, .rea-mk-table td { padding-left: 8px; padding-right: 8px; }
.rea-mk-item { min-width: 200px; max-width: 300px; }
.rea-mk-item a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rea-mk-table .rea-actions { white-space: nowrap; }
.rea-mk-table .rea-actions .dashicons { font-size: 16px; width: 16px; height: 16px; }
.rea-cmp-autoform { display: grid; gap: 12px; }
.rea-cmp-autoform select { min-width: 90px; }
.rea-cmp-stale { border: 0; cursor: pointer; }
#rea-cmp-list li { flex-wrap: wrap; }
#rea-cmp-list li > div:first-child { flex: 1 1 100%; }
.rea-cmp-autoform .rea-inline select { width: auto; }

/* ---------- Utilities ---------- */
.rea-input-xs { width: 80px; }
.rea-text-error { color: #b32d2e; }
.rea-inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 12px 8px 0; }

/* ---------- Responsive (all media queries) ---------- */
@media (max-width: 1400px) {
	.rea-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
	.rea-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
	.rea-layout { grid-template-columns: minmax(0, 1fr); }
	.rea-sticky { position: static; }
	.rea-field--wide { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.rea-wrap { margin-right: 10px; }
	.rea-hero { margin-left: -10px; grid-template-columns: 1fr; padding: 18px 16px 0; }
	.rea-hero__meta { justify-content: flex-start; }
	.rea-grid--tiles, .rea-grid--tiles-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.rea-kpis { grid-template-columns: minmax(0, 1fr); }
	.rea-movers .rea-table--compact tr { display: grid; grid-template-columns: 1fr; }
	.rea-movers .rea-movers__change { text-align: left; white-space: normal; padding-top: 0; }
	.rea-activity__item { grid-template-columns: 10px 1fr; }
	.rea-activity__item > .rea-muted { grid-column: 2; }
	.rea-row { grid-template-columns: 1fr; gap: 8px; }
	.rea-tier-grid { grid-template-columns: 1fr; }
	.rea-prio-grid { grid-template-columns: 1fr; }
	.rea-badge-settings { grid-template-columns: 1fr; }
	.rea-bars { gap: 3px; }
	.rea-bars__lbl { font-size: 0; }
}
@media (max-width: 782px) {
	.rea-launch { grid-template-columns: 52px 1fr; }
	.rea-launch__img { width: 52px; height: 52px; }
	.rea-launch__price { grid-column: 2; }
	.rea-launch__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1100px) { .rea-insights { grid-template-columns: 1fr; } }
@media (max-width: 782px) {
	.rea-insight__list li { flex-wrap: wrap; }
	.rea-insight__act { width: 100%; }
}
@media (max-width: 1100px) { .rea-wz-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 782px) {
	.rea-wz-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rea-wz-grid { grid-template-columns: 1fr; }
	.rea-wz-sub { margin-left: 0; }
}
@media (max-width: 782px) { .rea-seo-cov { grid-template-columns: 1fr; } }
@media (max-width: 782px) {
	.rea-cmp-pairs li { grid-template-columns: 1fr; }
	.rea-cmp-form { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.rea-mk-overview { grid-template-columns: 1fr; }
}
