/**
 * Codebase Marketplace — 4-Step Listing Wizard (Screens 1-6) & 3-Tab Seller Console (Screens 7-9)
 *
 * Designed to match the clean, high-trust developer marketplace aesthetic:
 * - Soft slate canvas (#f8fafc) with crisp white surfaces (#ffffff) and 1px borders (#e2e8f0)
 * - 3-column wizard layout (220px left stepper | fluid center form | 280px right MCP helper card)
 * - macOS `description.md` markdown editor with red/yellow/green window dots and Write/Preview tabs
 * - Removable blue tech stack pills (#eff6ff / #2563eb)
 * - 4-stage live source bundle security scanner card
 *
 * @package UniteElements_Theme
 */

.ue-mp-shell {
	background-color: #f8fafc;
	color: #0f172a;
	min-height: calc(100vh - 72px);
	padding-bottom: 80px;
	font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* ==========================================================================
   TOP SUB-NAVIGATION BAR (Marketplace | Library | Selling + List a Codebase)
   ========================================================================== */
.ue-mp-topbar {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 40;
}

.ue-mp-topbar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ue-mp-topbar__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ue-mp-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ue-mp-topbar__link:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.ue-mp-topbar__link.is-active {
	background: #0f172a;
	color: #ffffff;
	font-weight: 600;
}

.ue-mp-topbar__link svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.ue-mp-topbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ue-mp-btn-green {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #16a34a;
	color: #ffffff !important;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #15803d;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ue-mp-btn-green:hover {
	background: #15803d;
}

.ue-mp-btn-green:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ue-mp-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #0f172a;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid #0f172a;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.ue-mp-btn-dark:hover {
	background: #1e293b;
}

.ue-mp-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #ffffff;
	color: #334155 !important;
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ue-mp-btn-outline:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a !important;
}

/* ==========================================================================
   SCREEN 1: "How do you want to list?" ENTRY GATEWAY
   ========================================================================== */
.ue-mp-gateway {
	max-width: 680px;
	margin: 56px auto 0;
	padding: 0 20px;
}

.ue-mp-gateway__title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #0f172a;
	margin: 0 0 8px;
}

.ue-mp-gateway__subtitle {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 32px;
	line-height: 1.5;
}

.ue-mp-gateway__cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ue-mp-gateway-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.ue-mp-gateway-card:hover {
	border-color: #94a3b8;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ue-mp-gateway-card__icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #0f172a;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ue-mp-gateway-card__icon svg {
	width: 20px;
	height: 20px;
}

.ue-mp-gateway-card__body {
	flex: 1;
}

.ue-mp-gateway-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
}

.ue-mp-gateway-card__desc {
	font-size: 13.5px;
	color: #64748b;
	line-height: 1.55;
	margin: 0 0 14px;
}

.ue-mp-gateway-card__actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ue-mp-gateway-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #16a34a;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
}

.ue-mp-gateway-card__cta:hover {
	color: #15803d;
	text-decoration: underline;
}

.ue-mp-gateway-card__secondary {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.ue-mp-gateway-card__secondary:hover {
	color: #0f172a;
	text-decoration: underline;
}

/* ==========================================================================
   SCREENS 2–6: 3-COLUMN WIZARD LAYOUT
   ========================================================================== */
.ue-mp-wizard {
	max-width: 1240px;
	margin: 40px auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr) 280px;
	gap: 36px;
	align-items: start;
}

/* Left Column: 4-Step Stepper */
.ue-mp-stepper {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ue-mp-stepper__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	transition: all 0.15s ease;
}

.ue-mp-stepper__item:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.ue-mp-stepper__badge {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ue-mp-stepper__item.is-active {
	color: #0f172a;
	font-weight: 700;
}

.ue-mp-stepper__item.is-active .ue-mp-stepper__badge {
	background: #0f172a;
	color: #ffffff;
}

.ue-mp-stepper__item.is-completed .ue-mp-stepper__badge {
	background: #dcfce7;
	color: #15803d;
}

/* Center Column: Step Panels */
.ue-mp-step-panel {
	display: none;
}

.ue-mp-step-panel.is-active {
	display: block;
}

.ue-mp-step-header {
	margin-bottom: 28px;
}

.ue-mp-step-header__title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	margin: 0 0 6px;
}

.ue-mp-step-header__subtitle {
	font-size: 14.5px;
	color: #64748b;
	margin: 0;
}

/* Form Cards & Fields */
.ue-mp-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 22px;
}

.ue-mp-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ue-mp-card__head-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ue-mp-card__icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #0f172a;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ue-mp-card__title {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.ue-mp-card__subtitle {
	font-size: 12.5px;
	color: #64748b;
	margin: 2px 0 0;
}

.ue-mp-field {
	margin-bottom: 22px;
}

.ue-mp-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 22px;
}

.ue-mp-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 3px;
}

.ue-mp-hint {
	display: block;
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 8px;
	line-height: 1.45;
}

.ue-mp-input,
.ue-mp-select {
	width: 100%;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 13px;
	font-size: 14px;
	color: #0f172a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.ue-mp-input:focus,
.ue-mp-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ue-mp-input:disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

.ue-mp-field-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 12px;
	color: #94a3b8;
}

/* GitHub Applied Row & Private Repo Notice */
.ue-mp-gh-picker {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ue-mp-applied-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: #16a34a;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 6px 11px;
	border-radius: 7px;
	white-space: nowrap;
}

.ue-mp-gh-note {
	font-size: 12px;
	color: #64748b;
	margin-top: 10px;
	line-height: 1.45;
}

/* ==========================================================================
   macOS `description.md` MARKDOWN EDITOR (Screen 2 & 3)
   ========================================================================== */
.ue-mp-md-window {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
}

.ue-mp-md-window__bar {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ue-mp-md-window__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ue-mp-md-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.ue-mp-md-dot--red { background: #ff5f56; }
.ue-mp-md-dot--yellow { background: #ffbd2e; }
.ue-mp-md-dot--green { background: #27c93f; }

.ue-mp-md-window__filename {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.ue-mp-md-window__tabs {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ue-mp-md-tab {
	background: transparent;
	border: none;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	padding: 4px 10px;
	border-radius: 5px;
	cursor: pointer;
}

.ue-mp-md-tab.is-active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ue-mp-md-textarea {
	width: 100%;
	min-height: 240px;
	border: none;
	padding: 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.65;
	color: #0f172a;
	resize: vertical;
	box-sizing: border-box;
}

.ue-mp-md-textarea:focus {
	outline: none;
}

.ue-mp-md-preview {
	display: none;
	min-height: 240px;
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.65;
	color: #1e293b;
}

.ue-mp-md-window__foot {
	border-top: 1px solid #f1f5f9;
	padding: 6px 14px;
	text-align: right;
	font-size: 11.5px;
	color: #94a3b8;
	background: #ffffff;
}

/* ==========================================================================
   PILL TAGS (Tech Stack, Connected Services, Industries)
   ========================================================================== */
.ue-mp-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ue-mp-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
}

.ue-mp-pill button {
	background: none;
	border: none;
	color: #2563eb;
	font-size: 14px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	opacity: 0.75;
}

.ue-mp-pill button:hover {
	opacity: 1;
}

.ue-mp-quick-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.ue-mp-quick-chip {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 11.5px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 5px;
	cursor: pointer;
}

.ue-mp-quick-chip:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* ==========================================================================
   IMAGES UPLOADER (Screen 3: 16:9, Max 5 MB, 0/5 uploaded)
   ========================================================================== */
.ue-mp-img-specs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 12px;
	color: #64748b;
}

.ue-mp-img-spec-pill {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	padding: 2px 8px;
	border-radius: 5px;
	font-weight: 500;
	color: #475569;
}

.ue-mp-img-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.ue-mp-img-dropzone {
	border: 1.5px dashed #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	min-height: 105px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ue-mp-img-dropzone:hover {
	border-color: #64748b;
	background: #f8fafc;
	color: #0f172a;
}

.ue-mp-img-thumb {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	aspect-ratio: 16 / 9;
	background: #0f172a;
}

.ue-mp-img-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ue-mp-img-thumb__cover {
	position: absolute;
	top: 6px;
	left: 6px;
	background: rgba(15, 23, 42, 0.82);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
}

.ue-mp-img-thumb__remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.8);
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

/* ==========================================================================
   RIGHT COLUMN STICKY CARD: "Let the MCP Do This"
   ========================================================================== */
.ue-mp-mcp-aside {
	position: sticky;
	top: 88px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.ue-mp-mcp-aside__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ue-mp-mcp-aside__icon {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	background: #0f172a;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 12px;
	font-weight: 700;
}

.ue-mp-mcp-aside__title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.ue-mp-mcp-aside__desc {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.55;
	margin: 0 0 14px;
}

.ue-mp-mcp-aside__links {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* ==========================================================================
   STEP 2: SOURCE REPOSITORY CARD (Screen 4)
   ========================================================================== */
.ue-mp-source-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 13px;
}

.ue-mp-source-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
	display: inline-block;
	margin-right: 6px;
}

.ue-mp-repo-box {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ue-mp-private-badge {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

/* ==========================================================================
   STEP 3: PRICING INPUT & REVENUE SPLIT PREVIEW (Screen 5)
   ========================================================================== */
.ue-mp-price-input-wrap {
	display: flex;
	align-items: center;
	max-width: 280px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
}

.ue-mp-price-prefix {
	padding: 10px 14px;
	background: #f8fafc;
	border-right: 1px solid #e2e8f0;
	color: #64748b;
	font-weight: 600;
	font-size: 14px;
}

.ue-mp-price-input {
	border: none;
	padding: 10px 14px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	width: 100%;
}

.ue-mp-price-input:focus {
	outline: none;
}

.ue-mp-split-preview {
	margin-top: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ue-mp-split-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
}

.ue-mp-split-box--direct {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

/* ==========================================================================
   STEP 4: REVIEW TABLE, 4-STAGE SCANNER & AGREEMENTS (Screen 6)
   ========================================================================== */
.ue-mp-review-table {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 22px;
}

.ue-mp-review-row {
	display: grid;
	grid-template-columns: 170px 1fr;
	padding: 13px 20px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 13.5px;
	align-items: baseline;
}

.ue-mp-review-row:last-child {
	border-bottom: none;
}

.ue-mp-review-label {
	color: #64748b;
	font-weight: 500;
}

.ue-mp-review-val {
	color: #0f172a;
	font-weight: 500;
	word-break: break-word;
}

.ue-mp-review-val--price {
	color: #16a34a;
	font-size: 16px;
	font-weight: 700;
}

/* 4-Stage Source Bundle Scanner Card */
.ue-mp-scanner-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 22px;
}

.ue-mp-scanner-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ue-mp-scanner-bar {
	height: 5px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}

.ue-mp-scanner-bar__fill {
	height: 100%;
	background: #2563eb;
	width: 25%;
	transition: width 0.35s ease, background-color 0.25s ease;
}

.ue-mp-scanner-bar__fill.is-passed {
	background: #16a34a;
	width: 100%;
}

.ue-mp-scanner-bar__fill.is-failed {
	background: #dc2626;
}

.ue-mp-scanner-stages {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ue-mp-stage-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #64748b;
}

.ue-mp-stage-row.is-running {
	color: #0f172a;
	font-weight: 600;
}

.ue-mp-stage-row.is-passed {
	color: #15803d;
	font-weight: 500;
}

.ue-mp-stage-row.is-failed {
	color: #dc2626;
	font-weight: 600;
}

/* Amber Payout Warning Callout */
.ue-mp-amber-callout {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 22px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ue-mp-amber-callout__title {
	font-size: 14px;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 4px;
}

.ue-mp-amber-callout__text {
	font-size: 13px;
	color: #b45309;
	margin: 0 0 8px;
	line-height: 1.5;
}

.ue-mp-amber-callout__link {
	font-size: 13px;
	font-weight: 700;
	color: #b45309;
	text-decoration: underline;
}

/* Mandatory Checkboxes Card */
.ue-mp-terms-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ue-mp-term-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13px;
	color: #334155;
	line-height: 1.55;
	cursor: pointer;
}

.ue-mp-term-check input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: #0f172a;
	flex-shrink: 0;
}

/* Step Footer Bar */
.ue-mp-step-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
	margin-top: 28px;
}

/* ==========================================================================
   MCP SETUP MODAL ("List with MCP" / "Set Up MCP")
   ========================================================================== */
.ue-mp-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ue-mp-modal-backdrop.is-open {
	display: flex;
}

.ue-mp-modal {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.ue-mp-codeblock {
	background: #0f172a;
	color: #f8fafc;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	padding: 14px 16px;
	border-radius: 8px;
	overflow-x: auto;
	line-height: 1.55;
	margin: 8px 0 16px;
	position: relative;
}

@media (max-width: 1024px) {
	.ue-mp-wizard {
		grid-template-columns: 1fr;
	}
	.ue-mp-stepper {
		position: static;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 8px;
	}
	.ue-mp-mcp-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.ue-mp-field-row,
	.ue-mp-split-preview {
		grid-template-columns: 1fr;
	}
	.ue-mp-review-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* ==========================================================================
   PHASE 5: 3-TAB SELLER CONSOLE (SCREENS 7, 8 & 9)
   Routes: /selling/listings, /selling/payouts, /selling/analytics
   ========================================================================== */

.ue-mp-subnav {
	background: #fafafa;
	border-bottom: 1px solid #e2e8f0;
}

.ue-mp-subnav__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.ue-mp-subnav__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 2px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.ue-mp-subnav__tab:hover {
	color: #0f172a;
}

.ue-mp-subnav__tab.is-active {
	color: #0f172a;
	font-weight: 600;
	border-bottom-color: #0f172a;
}

/* Console Containers */
.ue-mp-console {
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 24px 88px;
}

.ue-mp-console--narrow {
	max-width: 820px;
}

/* Screen 7: Listings Filter Bar */
.ue-mp-listings-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.ue-mp-filter-pills {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.ue-mp-filter-pill {
	appearance: none;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 13.5px;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ue-mp-filter-pill:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.ue-mp-filter-pill.is-active {
	background: #0f172a;
	color: #ffffff;
	font-weight: 600;
}

.ue-mp-filter-pill__count {
	font-size: 11.5px;
	opacity: 0.75;
}

/* Screen 7: 3-Column Listing Cards Grid */
.ue-mp-listings-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ue-mp-listing-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ue-mp-listing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.ue-mp-listing-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, #090d16 0%, #111827 55%, #1e293b 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.ue-mp-listing-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ue-mp-listing-card__fallback {
	padding: 20px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #f8fafc;
	box-sizing: border-box;
	background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.16), transparent 55%),
	            linear-gradient(145deg, #090d16 0%, #0f172a 100%);
}

.ue-mp-listing-card__fallback-top {
	display: flex;
	justify-content: flex-end;
}

.ue-mp-listing-card__fallback-repo {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	color: #94a3b8;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 3px 8px;
	border-radius: 6px;
}

.ue-mp-listing-card__fallback-title {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin-bottom: 6px;
}

.ue-mp-listing-card__fallback-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.ue-mp-listing-card__fallback-pill {
	font-size: 10.5px;
	font-weight: 600;
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.08);
	padding: 2px 7px;
	border-radius: 4px;
}

.ue-mp-listing-card__status {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.ue-mp-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	display: inline-block;
}

.ue-mp-status-dot--live {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.ue-mp-status-dot--under_review {
	background: #f59e0b;
}

.ue-mp-status-dot--draft {
	background: #94a3b8;
}

.ue-mp-status-dot--archived {
	background: #64748b;
}

.ue-mp-listing-card__body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between;
}

.ue-mp-listing-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.ue-mp-listing-card__title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.35;
	text-decoration: none;
}

.ue-mp-listing-card__title:hover {
	color: #16a34a;
}

.ue-mp-listing-card__price {
	background: #f1f5f9;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.ue-mp-listing-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.ue-mp-listing-card__stats {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #64748b;
	font-size: 12.5px;
	font-weight: 500;
}

.ue-mp-listing-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ue-mp-listing-card__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ue-mp-card-action-btn {
	appearance: none;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.15s ease;
}

.ue-mp-card-action-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}

.ue-mp-card-action-btn--share {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #15803d;
}

.ue-mp-card-action-btn--share:hover {
	background: #dcfce7;
	border-color: #86efac;
	color: #14532d;
}

.ue-mp-card-action-btn--danger:hover {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}

/* Empty State Card */
.ue-mp-empty-state {
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 14px;
	padding: 56px 24px;
	text-align: center;
	max-width: 520px;
	margin: 24px auto;
}

.ue-mp-empty-state__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
}

.ue-mp-empty-state__desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px;
	line-height: 1.55;
}

/* Screen 8 & 9: KPI Cards Grid */
.ue-mp-kpi-grid {
	display: grid;
	gap: 18px;
	margin-bottom: 24px;
}

.ue-mp-kpi-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ue-mp-kpi-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ue-mp-kpi-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 22px;
}

.ue-mp-kpi-card__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 10px;
}

.ue-mp-kpi-card__value {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.15;
	margin-bottom: 6px;
}

.ue-mp-kpi-card__sub {
	font-size: 12.5px;
	color: #64748b;
}

/* Screen 8: Payout Account Card */
.ue-mp-payout-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 28px;
}

.ue-mp-payout-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ue-mp-payout-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.ue-mp-conn-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
}

.ue-mp-conn-badge.is-connected {
	background: #dcfce7;
	color: #15803d;
}

.ue-mp-payout-card__desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 20px;
}

/* Screen 9: Analytics Period Selector & Table */
.ue-mp-analytics-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 18px;
}

.ue-mp-analytics-topbar__label {
	font-size: 13px;
	color: #64748b;
}

.ue-mp-period-switch {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	padding: 3px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ue-mp-period-btn {
	font-size: 12.5px;
	font-weight: 500;
	color: #64748b;
	padding: 5px 12px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ue-mp-period-btn:hover {
	color: #0f172a;
}

.ue-mp-period-btn.is-active {
	background: #ffffff;
	color: #0f172a;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ue-mp-channel-note-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 32px;
	font-size: 13.5px;
	color: #64748b;
	line-height: 1.55;
}

.ue-mp-channel-note-card strong {
	color: #0f172a;
	font-weight: 600;
}

.ue-mp-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ue-mp-section-head__title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.ue-mp-section-head__meta {
	font-size: 12.5px;
	color: #64748b;
}

.ue-mp-table-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow-x: auto;
}

.ue-mp-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.ue-mp-table th {
	padding: 13px 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.ue-mp-table td {
	padding: 15px 18px;
	font-size: 13.5px;
	color: #0f172a;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ue-mp-table tbody tr:last-child td {
	border-bottom: none;
}

.ue-mp-table tbody tr:hover td {
	background: #f8fafc;
}

.ue-mp-table__num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ue-mp-status-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #475569;
	font-weight: 500;
}

@media (max-width: 960px) {
	.ue-mp-listings-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ue-mp-kpi-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ue-mp-listings-grid,
	.ue-mp-kpi-grid--3,
	.ue-mp-kpi-grid--4 {
		grid-template-columns: 1fr;
	}
}

