.pendid-ai-studio-wrap {
	--pendid-accent: #6f45e8;
	--pendid-accent-dark: #5730c8;
	--pendid-accent-soft: #f3efff;
	--pendid-accent-line: #d9cdfc;
	--pendid-text: #1d2327;
	--pendid-muted: #646970;
	--pendid-border: #dcdcde;
	--pendid-surface: #fff;
	--pendid-soft: #f6f7f7;
	--pendid-success: #16803c;
	max-width: 1280px;
	margin-top: 24px;
}

.pendid-ai-studio-wrap *,
.pendid-ai-studio-wrap *::before,
.pendid-ai-studio-wrap *::after {
	box-sizing: border-box;
}

.pendid-ai-studio-page-header {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 22px;
}

.pendid-ai-studio-brand {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
}

.pendid-ai-studio-brand-mark {
	display: grid;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	place-items: center;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(111, 69, 232, 0.14);
	border-radius: 15px;
	box-shadow: 0 8px 22px rgba(87, 48, 200, 0.14);
}

.pendid-ai-studio-brand-logo {
	display: block;
	width: 48px;
	height: 48px;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.pendid-ai-studio-product-name {
	margin: 0 0 2px !important;
	color: var(--pendid-accent);
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

.pendid-ai-studio-page-header h1 {
	margin: 0 0 4px;
	padding: 0;
	color: var(--pendid-text);
	font-size: 25px;
	font-weight: 650;
	line-height: 1.25;
}

.pendid-ai-studio-page-header p:not(.pendid-ai-studio-product-name) {
	margin: 0;
	color: var(--pendid-muted);
	font-size: 14px;
	line-height: 1.55;
}

.pendid-ai-studio-connection-badge,
.pendid-ai-studio-saved-badge {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 7px;
	align-items: center;
	padding: 7px 11px;
	color: #126b32;
	font-size: 12px;
	font-weight: 600;
	background: #edf9f1;
	border: 1px solid #b8e7c6;
	border-radius: 999px;
}

.pendid-ai-studio-connection-badge > span {
	width: 7px;
	height: 7px;
	background: #1f9d4b;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(31, 157, 75, 0.12);
}

.pendid-ai-studio-saved-badge .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.pendid-ai-studio-panel {
	background: var(--pendid-surface);
	border: 1px solid var(--pendid-border);
	border-radius: 14px;
	box-shadow: 0 3px 12px rgba(29, 35, 39, 0.045);
}

.pendid-ai-studio-panel-header,
.pendid-ai-studio-workspace-heading {
	padding: 24px 26px 20px;
	border-bottom: 1px solid #ececef;
}

.pendid-ai-studio-workspace-heading {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
}

.pendid-ai-studio-panel-header h2,
.pendid-ai-studio-workspace-heading h2,
.pendid-ai-studio-dashboard-card h2,
.pendid-ai-studio-dashboard-hero h2,
.pendid-ai-studio-recent-result h2,
.pendid-ai-studio-danger-panel h2,
.pendid-ai-studio-onboarding h2,
.pendid-ai-studio-connection-required h2 {
	margin: 0;
	color: var(--pendid-text);
	font-size: 20px;
	font-weight: 650;
	line-height: 1.35;
}

.pendid-ai-studio-panel-header > p:last-child {
	max-width: 700px;
	margin: 8px 0 0;
	color: var(--pendid-muted);
	font-size: 14px;
	line-height: 1.6;
}

.pendid-ai-studio-eyebrow {
	margin: 0 0 7px;
	color: var(--pendid-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pendid-ai-studio-panel-body {
	padding: 24px 26px 26px;
}

.pendid-ai-studio-dashboard-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 28px;
	align-items: center;
	min-height: 260px;
	padding: 38px 42px;
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 20%, rgba(126, 89, 231, 0.2), transparent 35%),
		linear-gradient(135deg, #fff 0%, #fbf9ff 55%, #f0ebff 100%);
	border-color: var(--pendid-accent-line);
}

.pendid-ai-studio-dashboard-hero h2 {
	max-width: 650px;
	font-size: 30px;
	line-height: 1.2;
}

.pendid-ai-studio-dashboard-hero p:not(.pendid-ai-studio-eyebrow) {
	max-width: 690px;
	margin: 13px 0 0;
	color: var(--pendid-muted);
	font-size: 15px;
	line-height: 1.7;
}

.pendid-ai-studio-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.pendid-ai-studio-hero-actions .button {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
}

.pendid-ai-studio-hero-actions .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.pendid-ai-studio-dashboard-hero-art {
	display: grid;
	width: 164px;
	height: 164px;
	place-items: center;
	justify-self: center;
	color: #fff;
	background: linear-gradient(145deg, #8564ee, #5b34cc);
	border: 12px solid rgba(255, 255, 255, 0.58);
	border-radius: 38px;
	box-shadow: 0 25px 55px rgba(87, 48, 200, 0.24);
	transform: rotate(3deg);
}

.pendid-ai-studio-dashboard-hero-art .dashicons {
	width: 58px;
	height: 58px;
	font-size: 58px;
}

.pendid-ai-studio-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.pendid-ai-studio-dashboard-card {
	position: relative;
	min-height: 240px;
	padding: 26px;
}

.pendid-ai-studio-card-icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 22px;
	place-items: center;
	color: var(--pendid-accent);
	background: var(--pendid-accent-soft);
	border-radius: 11px;
}

.pendid-ai-studio-card-icon .dashicons {
	width: 21px;
	height: 21px;
	font-size: 21px;
}

.pendid-ai-studio-dashboard-card h2 {
	font-size: 17px;
}

.pendid-ai-studio-dashboard-card > p:not(.pendid-ai-studio-eyebrow) {
	margin: 9px 0 24px;
	color: var(--pendid-muted);
	font-size: 13px;
	line-height: 1.65;
}

.pendid-ai-studio-dashboard-card > a {
	position: absolute;
	bottom: 24px;
	color: var(--pendid-accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.pendid-ai-studio-dashboard-card > a:hover {
	text-decoration: underline;
}

.pendid-ai-studio-recent-result {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	margin-top: 18px;
	padding: 20px;
}

.pendid-ai-studio-recent-result img {
	display: block;
	width: 190px;
	height: 120px;
	object-fit: cover;
	background: var(--pendid-soft);
	border-radius: 10px;
}

.pendid-ai-studio-recent-result p:not(.pendid-ai-studio-eyebrow) {
	margin: 8px 0 16px;
	color: var(--pendid-muted);
	line-height: 1.6;
}

.pendid-ai-studio-create-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
	gap: 20px;
	align-items: start;
}

.pendid-ai-studio-preview-panel,
.pendid-ai-studio-controls-panel {
	overflow: hidden;
}

.pendid-ai-studio-preview-stage {
	display: grid;
	min-height: 570px;
	padding: 24px;
	place-items: center;
	background-color: #faf9fd;
	background-image:
		linear-gradient(rgba(111, 69, 232, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(111, 69, 232, 0.045) 1px, transparent 1px);
	background-size: 24px 24px;
}

.pendid-ai-studio-preview-stage img {
	display: block;
	max-width: 100%;
	max-height: 520px;
	object-fit: contain;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(29, 35, 39, 0.14);
}

.pendid-ai-studio-preview-empty,
.pendid-ai-studio-connection-required {
	max-width: 520px;
	text-align: center;
}

.pendid-ai-studio-preview-empty h3 {
	margin: 18px 0 7px;
	color: var(--pendid-text);
	font-size: 18px;
}

.pendid-ai-studio-preview-empty p,
.pendid-ai-studio-connection-required p {
	margin: 0;
	color: var(--pendid-muted);
	font-size: 14px;
	line-height: 1.7;
}

.pendid-ai-studio-preview-symbol {
	display: inline-grid;
	width: 62px;
	height: 62px;
	place-items: center;
	color: #fff;
	background: linear-gradient(145deg, #7f5ce9, #5e35cf);
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(87, 48, 200, 0.22);
}

.pendid-ai-studio-preview-symbol .dashicons {
	width: 30px;
	height: 30px;
	font-size: 30px;
}

.pendid-ai-studio-preview-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 18px 24px 22px;
	border-top: 1px solid #ececef;
}

.pendid-ai-studio-generation-form {
	padding: 22px 24px 24px;
}

.pendid-ai-studio-use-cases {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 22px;
}

.pendid-ai-studio-use-cases span {
	padding: 6px 9px;
	color: #5945a7;
	font-size: 11px;
	font-weight: 600;
	background: var(--pendid-accent-soft);
	border: 1px solid #e1d9fb;
	border-radius: 999px;
}

.pendid-ai-studio-field > label,
.pendid-ai-studio-ratio-fieldset > legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--pendid-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.pendid-ai-studio-field textarea {
	display: block;
	width: 100%;
	min-height: 168px;
	padding: 13px 14px;
	color: var(--pendid-text);
	font-size: 14px;
	line-height: 1.65;
	background: #fff;
	border: 1px solid #a7aaad;
	border-radius: 9px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
	resize: vertical;
}

.pendid-ai-studio-field textarea::placeholder {
	color: #8c8f94;
}

.pendid-ai-studio-field textarea:focus {
	border-color: var(--pendid-accent);
	box-shadow: 0 0 0 1px var(--pendid-accent);
	outline: 2px solid transparent;
}

.pendid-ai-studio-field .description {
	margin: 7px 0 0;
	color: var(--pendid-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.55;
}

.pendid-ai-studio-ratio-fieldset {
	min-width: 0;
	margin: 22px 0 0;
	padding: 0;
	border: 0;
}

.pendid-ai-studio-ratio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.pendid-ai-studio-ratio-option {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.pendid-ai-studio-ratio-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.pendid-ai-studio-ratio-card {
	display: flex;
	gap: 9px;
	align-items: center;
	min-height: 68px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--pendid-border);
	border-radius: 9px;
	transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pendid-ai-studio-ratio-option:hover .pendid-ai-studio-ratio-card {
	border-color: #9c84e8;
}

.pendid-ai-studio-ratio-option input:checked + .pendid-ai-studio-ratio-card {
	background: var(--pendid-accent-soft);
	border-color: var(--pendid-accent);
	box-shadow: 0 0 0 1px var(--pendid-accent);
}

.pendid-ai-studio-ratio-option input:focus-visible + .pendid-ai-studio-ratio-card {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.pendid-ai-studio-ratio-card > span:last-child {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.pendid-ai-studio-ratio-card strong {
	color: var(--pendid-text);
	font-size: 12px;
	font-weight: 600;
}

.pendid-ai-studio-ratio-card small {
	color: var(--pendid-muted);
	font-size: 10px;
}

.pendid-ai-studio-ratio-preview {
	display: block;
	flex: 0 0 auto;
	background: #fff;
	border: 1.5px solid #7d8185;
	border-radius: 3px;
}

.pendid-ai-studio-ratio-preview.is-square {
	width: 22px;
	height: 22px;
}

.pendid-ai-studio-ratio-preview.is-landscape {
	width: 27px;
	height: 18px;
}

.pendid-ai-studio-ratio-preview.is-portrait {
	width: 17px;
	height: 27px;
}

.pendid-ai-studio-save-note,
.pendid-ai-studio-setting-row {
	display: flex;
	gap: 11px;
	align-items: flex-start;
}

.pendid-ai-studio-save-note {
	margin-top: 22px;
	padding: 13px;
	color: #49388f;
	background: #f7f4ff;
	border: 1px solid #e4dcfb;
	border-radius: 9px;
}

.pendid-ai-studio-save-note .dashicons,
.pendid-ai-studio-setting-row .dashicons {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin-top: 1px;
	color: var(--pendid-accent);
	font-size: 19px;
}

.pendid-ai-studio-save-note p,
.pendid-ai-studio-setting-row p {
	display: grid;
	gap: 3px;
	margin: 0;
}

.pendid-ai-studio-save-note strong,
.pendid-ai-studio-setting-row strong {
	color: var(--pendid-text);
	font-size: 12px;
}

.pendid-ai-studio-save-note small,
.pendid-ai-studio-setting-row small {
	color: var(--pendid-muted);
	font-size: 11px;
	line-height: 1.5;
}

.pendid-ai-studio-generate-button {
	display: inline-flex !important;
	width: 100%;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-top: 18px !important;
}

.pendid-ai-studio-generate-button .dashicons {
	width: 19px;
	height: 19px;
	font-size: 19px;
}

.pendid-ai-studio-settings-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 18px;
	align-items: start;
}

.pendid-ai-studio-status-list {
	display: grid;
	gap: 0;
	margin: 0;
}

.pendid-ai-studio-status-list > div {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid #ececef;
}

.pendid-ai-studio-status-list > div:first-child {
	padding-top: 0;
}

.pendid-ai-studio-status-list > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.pendid-ai-studio-status-list dt,
.pendid-ai-studio-status-list dd {
	margin: 0;
}

.pendid-ai-studio-status-list dt {
	color: var(--pendid-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.pendid-ai-studio-status-list dd {
	color: var(--pendid-text);
	font-size: 14px;
	font-weight: 600;
	word-break: break-word;
}

.pendid-ai-studio-settings-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 24px;
}

.pendid-ai-studio-settings-actions form {
	margin: 0;
}

.pendid-ai-studio-settings-actions .button {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.pendid-ai-studio-settings-actions .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.pendid-ai-studio-setting-row {
	padding: 16px 0;
	border-bottom: 1px solid #ececef;
}

.pendid-ai-studio-setting-row:first-child {
	padding-top: 0;
}

.pendid-ai-studio-setting-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.pendid-ai-studio-danger-panel {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding: 22px 26px;
	border-color: #efc7c7;
}

.pendid-ai-studio-danger-panel h2 {
	font-size: 16px;
}

.pendid-ai-studio-danger-panel p {
	margin: 6px 0 0;
	color: var(--pendid-muted);
}

.pendid-ai-studio-danger-panel form {
	margin: 0;
}

.pendid-ai-studio-disconnect {
	min-height: 34px;
	padding: 0 12px !important;
	color: #b32d2e !important;
	background: #fff !important;
	border: 1px solid #dba7a7 !important;
	border-radius: 4px;
	text-decoration: none !important;
}

.pendid-ai-studio-disconnect:hover,
.pendid-ai-studio-disconnect:focus {
	color: #8a2424 !important;
	background: #fff5f5 !important;
	border-color: #b32d2e !important;
}

.pendid-ai-studio-onboarding {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	overflow: hidden;
}

.pendid-ai-studio-onboarding-content {
	padding: 46px 48px;
}

.pendid-ai-studio-onboarding h2 {
	max-width: 580px;
	font-size: 30px;
	line-height: 1.2;
}

.pendid-ai-studio-onboarding-description {
	max-width: 640px;
	margin: 14px 0 0;
	color: var(--pendid-muted);
	font-size: 15px;
	line-height: 1.75;
}

.pendid-ai-studio-connect-button {
	display: inline-flex !important;
	gap: 8px;
	align-items: center;
	margin-top: 24px !important;
}

.pendid-ai-studio-connect-button .dashicons,
.pendid-ai-studio-connection-required .dashicons-external {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.pendid-ai-studio-connection-note {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 18px 0 0;
	color: var(--pendid-muted);
	font-size: 12px;
}

.pendid-ai-studio-connection-note .dashicons {
	width: 16px;
	height: 16px;
	color: #2271b1;
	font-size: 16px;
}

.pendid-ai-studio-onboarding-steps {
	display: grid;
	gap: 24px;
	align-content: center;
	padding: 42px;
	background:
		radial-gradient(circle at 75% 20%, rgba(125, 85, 235, 0.13), transparent 36%),
		linear-gradient(145deg, #faf8ff, #f1edff);
	border-left: 1px solid #ebe5fd;
}

.pendid-ai-studio-onboarding-steps > div {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.pendid-ai-studio-onboarding-steps > div:not(:last-child)::after {
	position: absolute;
	top: 34px;
	bottom: -24px;
	left: 16px;
	width: 1px;
	background: #d3c6f8;
	content: "";
}

.pendid-ai-studio-onboarding-steps > div > span {
	position: relative;
	z-index: 1;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	background: var(--pendid-accent);
	border-radius: 50%;
}

.pendid-ai-studio-onboarding-steps p {
	display: grid;
	gap: 4px;
	margin: 2px 0 0;
}

.pendid-ai-studio-onboarding-steps strong {
	color: var(--pendid-text);
	font-size: 13px;
}

.pendid-ai-studio-onboarding-steps small {
	color: var(--pendid-muted);
	font-size: 11px;
	line-height: 1.5;
}

.pendid-ai-studio-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.pendid-ai-studio-benefits > div {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--pendid-border);
	border-radius: 10px;
}

.pendid-ai-studio-benefits .dashicons {
	width: 22px;
	height: 22px;
	color: var(--pendid-accent);
	font-size: 22px;
}

.pendid-ai-studio-benefits p {
	display: grid;
	gap: 3px;
	margin: 0;
}

.pendid-ai-studio-benefits strong {
	color: var(--pendid-text);
	font-size: 12px;
}

.pendid-ai-studio-benefits small {
	color: var(--pendid-muted);
	font-size: 11px;
	line-height: 1.5;
}

.pendid-ai-studio-connection-required {
	margin: 0 auto;
	padding: 70px 36px;
}

.pendid-ai-studio-connection-required h2 {
	margin-top: 22px;
}

.pendid-ai-studio-connection-required p {
	max-width: 560px;
	margin: 10px auto 22px;
}

.pendid-ai-studio-connection-required .button {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.pendid-ai-studio-wrap .button-primary {
	color: #fff;
	background: var(--pendid-accent);
	border-color: var(--pendid-accent);
}

.pendid-ai-studio-wrap .button-primary:hover,
.pendid-ai-studio-wrap .button-primary:focus {
	color: #fff;
	background: var(--pendid-accent-dark);
	border-color: var(--pendid-accent-dark);
}

.pendid-ai-studio-wrap .button-primary .pendid-ai-studio-button-icon,
.pendid-ai-studio-wrap .button-primary:hover .pendid-ai-studio-button-icon,
.pendid-ai-studio-wrap .button-primary:focus .pendid-ai-studio-button-icon {
	color: #fff !important;
}

.pendid-ai-studio-button-icon {
	flex: 0 0 auto;
}

body.pendid-ai-studio-modal-open {
	overflow: hidden;
}

.pendid-ai-studio-modal[hidden] {
	display: none !important;
}

.pendid-ai-studio-modal {
	position: fixed;
	z-index: 100100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

.pendid-ai-studio-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 18, 25, 0.62);
	backdrop-filter: blur(2px);
}

.pendid-ai-studio-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--pendid-border);
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(18, 12, 39, 0.3);
}

.pendid-ai-studio-modal-dialog:focus {
	outline: 3px solid rgba(111, 69, 232, 0.28);
	outline-offset: 3px;
}

.pendid-ai-studio-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	color: var(--pendid-muted);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.pendid-ai-studio-modal-close:hover,
.pendid-ai-studio-modal-close:focus-visible {
	color: var(--pendid-text);
	background: var(--pendid-soft);
	outline: 2px solid var(--pendid-accent);
	outline-offset: 1px;
}

.pendid-ai-studio-modal-close .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.pendid-ai-studio-modal-icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	place-items: center;
	color: var(--pendid-accent-dark);
	background: var(--pendid-accent-soft);
	border-radius: 13px;
}

.pendid-ai-studio-modal-icon .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.pendid-ai-studio-modal-dialog h2 {
	max-width: 560px;
	margin: 0;
	color: var(--pendid-text);
	font-size: 24px;
	font-weight: 650;
	line-height: 1.3;
}

.pendid-ai-studio-modal-description {
	margin: 10px 0 0;
	color: var(--pendid-muted);
	font-size: 14px;
	line-height: 1.65;
}

.pendid-ai-studio-modal-site {
	display: grid;
	gap: 4px;
	margin: 22px 0;
	padding: 16px 18px;
	background: var(--pendid-soft);
	border: 1px solid #e3e4e6;
	border-radius: 12px;
}

.pendid-ai-studio-modal-site > span {
	color: var(--pendid-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pendid-ai-studio-modal-site strong {
	color: var(--pendid-text);
	font-size: 14px;
}

.pendid-ai-studio-modal-site code {
	padding: 0;
	color: var(--pendid-muted);
	background: transparent;
	font-size: 12px;
	word-break: break-all;
}

.pendid-ai-studio-modal-list {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pendid-ai-studio-modal-list li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	margin: 0;
	color: var(--pendid-text);
	font-size: 13px;
	line-height: 1.55;
}

.pendid-ai-studio-modal-list .dashicons {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--pendid-success);
	font-size: 18px;
}

.pendid-ai-studio-modal-legal {
	margin: 22px 0 0;
	color: var(--pendid-muted);
	font-size: 12px;
	line-height: 1.6;
}

.pendid-ai-studio-modal-legal a {
	font-weight: 600;
}

.pendid-ai-studio-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #ececef;
}

.pendid-ai-studio-modal-actions .button {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
}

@media screen and (max-width: 1180px) {
	.pendid-ai-studio-create-workspace,
	.pendid-ai-studio-settings-grid {
		grid-template-columns: 1fr;
	}

	.pendid-ai-studio-preview-stage {
		min-height: 460px;
	}

	.pendid-ai-studio-controls-panel {
		max-width: none;
	}
}

@media screen and (max-width: 960px) {
	.pendid-ai-studio-dashboard-grid,
	.pendid-ai-studio-benefits {
		grid-template-columns: 1fr;
	}

	.pendid-ai-studio-dashboard-card {
		min-height: 190px;
	}

	.pendid-ai-studio-onboarding {
		grid-template-columns: 1fr;
	}

	.pendid-ai-studio-onboarding-steps {
		border-top: 1px solid #ebe5fd;
		border-left: 0;
	}
}

@media screen and (max-width: 782px) {
	.pendid-ai-studio-wrap {
		margin-top: 18px;
	}

	.pendid-ai-studio-page-header {
		align-items: flex-start;
	}

	.pendid-ai-studio-page-header h1 {
		font-size: 22px;
	}

	.pendid-ai-studio-dashboard-hero {
		grid-template-columns: 1fr;
		padding: 30px 24px;
	}

	.pendid-ai-studio-dashboard-hero h2,
	.pendid-ai-studio-onboarding h2 {
		font-size: 25px;
	}

	.pendid-ai-studio-dashboard-hero-art {
		display: none;
	}

	.pendid-ai-studio-onboarding-content,
	.pendid-ai-studio-onboarding-steps {
		padding: 30px 24px;
	}

	.pendid-ai-studio-preview-stage {
		min-height: 360px;
		padding: 16px;
	}

	.pendid-ai-studio-ratio-grid {
		grid-template-columns: 1fr;
	}

	.pendid-ai-studio-ratio-card {
		min-height: 58px;
	}

	.pendid-ai-studio-status-list > div {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.pendid-ai-studio-settings-actions,
	.pendid-ai-studio-settings-actions form,
	.pendid-ai-studio-settings-actions .button,
	.pendid-ai-studio-hero-actions,
	.pendid-ai-studio-hero-actions .button {
		width: 100%;
	}

	.pendid-ai-studio-settings-actions .button,
	.pendid-ai-studio-hero-actions .button {
		justify-content: center;
	}

	.pendid-ai-studio-danger-panel,
	.pendid-ai-studio-recent-result {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.pendid-ai-studio-danger-panel {
		flex-direction: column;
		align-items: flex-start;
	}

	.pendid-ai-studio-recent-result img {
		width: 100%;
		height: auto;
		max-height: 260px;
	}
}

@media screen and (max-width: 560px) {
	.pendid-ai-studio-page-header {
		display: grid;
	}

	.pendid-ai-studio-connection-badge {
		justify-self: start;
	}

	.pendid-ai-studio-brand-mark {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.pendid-ai-studio-panel-header,
	.pendid-ai-studio-workspace-heading,
	.pendid-ai-studio-panel-body,
	.pendid-ai-studio-generation-form {
		padding-right: 18px;
		padding-left: 18px;
	}

	.pendid-ai-studio-modal {
		padding: 12px;
	}

	.pendid-ai-studio-modal-dialog {
		max-height: calc(100vh - 24px);
		padding: 26px 20px 20px;
		border-radius: 14px;
	}

	.pendid-ai-studio-modal-dialog h2 {
		font-size: 21px;
	}

	.pendid-ai-studio-modal-actions,
	.pendid-ai-studio-modal-actions .button {
		width: 100%;
	}
}

/* Generation request state and account guidance. */
.pendid-ai-studio-generation-form.is-submitting {
	cursor: progress;
}

.pendid-ai-studio-generation-form.is-submitting .pendid-ai-studio-field,
.pendid-ai-studio-generation-form.is-submitting .pendid-ai-studio-ratio-fieldset,
.pendid-ai-studio-generation-form.is-submitting .pendid-ai-studio-use-cases,
.pendid-ai-studio-generation-form.is-submitting .pendid-ai-studio-save-note {
	pointer-events: none;
	opacity: 0.68;
}

.pendid-ai-studio-generate-button[disabled] {
	cursor: wait;
	opacity: 0.9;
}

.pendid-ai-studio-loading-spinner {
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.48);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pendid-ai-studio-spin 0.75s linear infinite;
}

.pendid-ai-studio-generation-status {
	margin: 10px 0 0;
	color: var(--pendid-muted);
	font-size: 12px;
	line-height: 1.55;
	text-align: center;
}

.pendid-ai-studio-access-dialog {
	max-width: 570px;
}

.pendid-ai-studio-access-icon {
	color: #7a4ee8;
	background: #f0eaff;
}

.pendid-ai-studio-access-note {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 18px 0;
	padding: 14px;
	border: 1px solid #dcebdc;
	border-radius: 10px;
	background: #f5fbf4;
}

.pendid-ai-studio-access-note > .dashicons {
	width: 20px;
	height: 20px;
	color: var(--pendid-success);
	font-size: 20px;
}

.pendid-ai-studio-access-note p,
.pendid-ai-studio-access-note small {
	display: block;
	margin: 0;
}

.pendid-ai-studio-access-note small {
	margin-top: 3px;
	color: var(--pendid-muted);
	line-height: 1.5;
}

.pendid-ai-studio-access-actions {
	justify-content: flex-start;
}

.pendid-ai-studio-access-actions .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

@keyframes pendid-ai-studio-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pendid-ai-studio-loading-spinner {
		animation-duration: 1.5s;
	}
}


/* Final website image workflow: purposes, mood references, uploads, and edit mode. */
.pendid-ai-studio-create-workspace.has-result .pendid-ai-studio-controls-panel {
	align-self: start;
}

.pendid-ai-studio-purpose-fieldset,
.pendid-ai-studio-tone-section {
	margin: 0;
	padding: 0;
	border: 0;
}

.pendid-ai-studio-purpose-fieldset legend,
.pendid-ai-studio-tone-section > .pendid-ai-studio-section-title-row strong {
	font-size: 13px;
	font-weight: 700;
	color: #1d2327;
}

.pendid-ai-studio-purpose-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.pendid-ai-studio-purpose-option {
	position: relative;
	display: block;
	cursor: pointer;
}

.pendid-ai-studio-purpose-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pendid-ai-studio-purpose-option > span {
	display: flex;
	min-height: 58px;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pendid-ai-studio-purpose-option strong {
	font-size: 12px;
	color: #1d2327;
}

.pendid-ai-studio-purpose-option small {
	font-size: 10px;
	line-height: 1.35;
	color: #646970;
}

.pendid-ai-studio-purpose-option input:checked + span {
	border-color: #7047eb;
	background: #f7f4ff;
	box-shadow: 0 0 0 1px rgba(112,71,235,.12);
}

.pendid-ai-studio-purpose-option input:focus-visible + span {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.pendid-ai-studio-section-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pendid-ai-studio-section-title-row > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pendid-ai-studio-section-title-row small,
.pendid-ai-studio-selected-tone {
	font-size: 10px;
	color: #646970;
}

.pendid-ai-studio-tone-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin-top: 10px;
}

.pendid-ai-studio-tone-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	padding: 2px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
}

.pendid-ai-studio-tone-thumb img,
.pendid-ai-studio-tone-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	object-fit: cover;
	border-radius: 7px;
}

.pendid-ai-studio-tone-placeholder {
	background: linear-gradient(145deg, #f7f4ff, #ece6ff);
	color: #7047eb;
}

.pendid-ai-studio-tone-thumb.is-active {
	border-color: #7047eb;
	box-shadow: 0 0 0 2px rgba(112,71,235,.16);
}

.pendid-ai-studio-selected-tone {
	margin: 8px 0 0;
}

.pendid-ai-studio-tone-dialog {
	width: min(760px, calc(100vw - 40px));
	max-width: 760px;
}

.pendid-ai-studio-tone-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.pendid-ai-studio-tone-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px;
	border: 1px solid #dcdcde;
	border-radius: 13px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pendid-ai-studio-tone-card:hover {
	transform: translateY(-1px);
	border-color: #a78bfa;
}

.pendid-ai-studio-tone-card.is-active {
	border-color: #7047eb;
	box-shadow: 0 0 0 2px rgba(112,71,235,.14);
}

.pendid-ai-studio-tone-card input {
	position: absolute;
	opacity: 0;
}

.pendid-ai-studio-tone-card-image {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 9px;
}

.pendid-ai-studio-tone-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pendid-ai-studio-tone-card-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 2px 4px 5px;
}

.pendid-ai-studio-tone-card-copy strong {
	font-size: 12px;
	color: #1d2327;
}

.pendid-ai-studio-tone-card-copy small {
	font-size: 10px;
	line-height: 1.4;
	color: #646970;
}

.pendid-ai-studio-reference-card {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px dashed #c3c4c7;
	border-radius: 11px;
	background: #fafafa;
	cursor: pointer;
}

.pendid-ai-studio-reference-card input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
}

.pendid-ai-studio-reference-preview {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	overflow: hidden;
	border-radius: 9px;
	background: #f1edff;
	color: #7047eb;
}

.pendid-ai-studio-reference-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pendid-ai-studio-reference-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.pendid-ai-studio-reference-copy strong {
	font-size: 12px;
	color: #1d2327;
}

.pendid-ai-studio-reference-copy small {
	font-size: 10px;
	line-height: 1.4;
	color: #646970;
}

.pendid-ai-studio-edit-source-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 11px;
	border: 1px solid #e3dcff;
	border-radius: 10px;
	background: #f8f6ff;
	color: #5b35c9;
}

.pendid-ai-studio-edit-source-note p {
	display: flex;
	margin: 0;
	flex-direction: column;
	gap: 3px;
}

.pendid-ai-studio-edit-source-note strong {
	font-size: 11px;
	color: #3c286e;
}

.pendid-ai-studio-edit-source-note small {
	font-size: 10px;
	line-height: 1.45;
	color: #646970;
}

.pendid-ai-studio-preview-actions form {
	display: inline-flex;
	margin: 0;
}

.pendid-ai-studio-preview-actions .dashicons {
	width: 16px;
	height: 16px;
	margin-top: 3px;
	font-size: 16px;
}

@media (max-width: 782px) {
	.pendid-ai-studio-purpose-grid,
	.pendid-ai-studio-tone-grid {
		grid-template-columns: 1fr 1fr;
	}

	.pendid-ai-studio-reference-card {
		grid-template-columns: 50px minmax(0, 1fr);
	}

	.pendid-ai-studio-reference-card .button {
		grid-column: 1 / -1;
		text-align: center;
	}
}

@media (max-width: 520px) {
	.pendid-ai-studio-purpose-grid,
	.pendid-ai-studio-tone-grid {
		grid-template-columns: 1fr;
	}
}

/* Result actions and storage reassurance cards. */
.pendid-ai-studio-new-image-button {
	display: inline-flex !important;
	gap: 6px;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.pendid-ai-studio-new-image-button .dashicons {
	width: 16px;
	height: 16px;
	margin: 0;
	font-size: 16px;
	line-height: 1;
}

.pendid-ai-studio-storage-notes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0 24px 24px;
}

.pendid-ai-studio-storage-note {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	min-width: 0;
	padding: 14px;
	background: #f8f6ff;
	border: 1px solid #e4dcfb;
	border-radius: 10px;
}

.pendid-ai-studio-storage-note .dashicons {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--pendid-accent);
	font-size: 20px;
}

.pendid-ai-studio-storage-note p {
	display: grid;
	gap: 4px;
	min-width: 0;
	margin: 0;
}

.pendid-ai-studio-storage-note strong {
	color: var(--pendid-text);
	font-size: 12px;
	line-height: 1.4;
}

.pendid-ai-studio-storage-note small {
	color: var(--pendid-muted);
	font-size: 11px;
	line-height: 1.55;
}

@media (max-width: 782px) {
	.pendid-ai-studio-storage-notes {
		grid-template-columns: 1fr;
		padding-right: 18px;
		padding-left: 18px;
	}
}


/* v1.0.7: result reassurance cards and reference picker polish. */
.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-notes {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 16px 24px 24px;
	border-top: 1px solid var(--pendid-border);
	background: #fff;
}

.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-note {
	display: grid !important;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	min-width: 0;
	padding: 14px;
	border: 1px solid #e4dcfb;
	border-radius: 12px;
	background: #f8f6ff;
}

.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-note .dashicons {
	display: grid;
	width: 34px;
	height: 34px;
	margin: 0;
	place-items: center;
	border-radius: 9px;
	background: #eee8ff;
	color: var(--pendid-accent);
	font-size: 18px;
	line-height: 1;
}

.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-note p {
	display: flex !important;
	min-width: 0;
	margin: 0;
	flex-direction: column;
	gap: 3px;
}

.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-note strong {
	display: block;
	color: var(--pendid-text);
	font-size: 12px;
	line-height: 1.4;
}

.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-note small {
	display: block;
	color: var(--pendid-muted);
	font-size: 11px;
	line-height: 1.55;
}

.pendid-ai-studio-reference-card > .button {
	min-height: auto;
	padding: 4px 2px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pendid-accent) !important;
	font-weight: 600;
	line-height: 1.4;
}

.pendid-ai-studio-reference-card > .button:hover {
	background: transparent !important;
	color: #4f2fc6 !important;
}

.pendid-ai-studio-reference-card > .button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	box-shadow: none !important;
}

@media (max-width: 782px) {
	.pendid-ai-studio-preview-panel .pendid-ai-studio-storage-notes {
		grid-template-columns: 1fr;
		padding: 16px 18px 20px;
	}
}

/* v1.0.8: Persian and right-to-left admin support. */
.rtl .pendid-ai-studio-wrap {
	direction: rtl;
	text-align: right;
}

.rtl .pendid-ai-studio-product-name,
.rtl .pendid-ai-studio-eyebrow,
.rtl .pendid-ai-studio-modal-site > span,
.rtl .pendid-ai-studio-status-list dt {
	letter-spacing: 0;
	text-transform: none;
}

.rtl .pendid-ai-studio-onboarding-steps {
	border-right: 1px solid #ebe5fd;
	border-left: 0;
}

.rtl .pendid-ai-studio-onboarding-steps > div:not(:last-child)::after {
	right: 16px;
	left: auto;
}

.rtl .pendid-ai-studio-modal-close {
	right: auto;
	left: 18px;
}

.rtl .pendid-ai-studio-modal-site code,
.rtl .pendid-ai-studio-status-list dd,
.rtl .pendid-ai-studio-dashboard-card > p:not(.pendid-ai-studio-eyebrow) {
	unicode-bidi: plaintext;
}

.rtl .pendid-ai-studio-modal-site code {
	direction: ltr;
	text-align: left;
}

.rtl .pendid-ai-studio-generation-form textarea,
.rtl .pendid-ai-studio-generation-form input[type="text"] {
	direction: rtl;
	text-align: right;
	unicode-bidi: plaintext;
}

.rtl .pendid-ai-studio-reference-card > .button,
.rtl .pendid-ai-studio-modal-actions .button,
.rtl .pendid-ai-studio-settings-actions .button,
.rtl .pendid-ai-studio-hero-actions .button,
.rtl .pendid-ai-studio-new-image-button {
	flex-direction: row;
}

.rtl .pendid-ai-studio-preview-stage img,
.rtl .pendid-ai-studio-reference-preview img,
.rtl .pendid-ai-studio-tone-card-image img,
.rtl .pendid-ai-studio-tone-thumb img {
	direction: ltr;
}

@media screen and (max-width: 960px) {
	.rtl .pendid-ai-studio-onboarding-steps {
		border-top: 1px solid #ebe5fd;
		border-right: 0;
	}
}

@media screen and (max-width: 782px) {
	.rtl .pendid-ai-studio-danger-panel {
		align-items: flex-start;
	}
}
