.nexdirectory-pro-ticket-cta,
.nexdirectory-pro-primary-button,
.nexdirectory-pro-secondary-button,
.nexdirectory-pro-danger-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.25;
	min-height: 44px;
	padding: 11px 16px;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.nexdirectory-pro-ticket-cta,
.nexdirectory-pro-primary-button {
	background: var(--nd-accent, var(--nexdirectory-primary));
	color: var(--nd-on-accent, #fff);
	width: 100%;
}

.nexdirectory-pro-ticket-cta:hover,
.nexdirectory-pro-primary-button:hover {
	background: var(--nd-accent-hover, var(--nexdirectory-primary-hover, #e04f0d));
	box-shadow: var(--nd-shadow-2, 0 8px 20px rgb(15 23 42 / 12%));
	color: var(--nd-on-accent, #fff);
	transform: translateY(-1px);
}

.nexdirectory-pro-ticket-cta--existing {
	background: #111827;
}

.nexdirectory-pro-ticket-cta--mobile {
	flex: 1 1 0;
}

.nexdirectory-pro-secondary-button {
	background: #fff;
	border-color: #d1d5db;
	color: #374151;
}

.nexdirectory-pro-secondary-button:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

.nexdirectory-pro-danger-button {
	background: #fff;
	border-color: #fecaca;
	color: #b91c1c;
}

.nexdirectory-pro-danger-button:hover {
	background: #fef2f2;
	border-color: #fca5a5;
}

.nexdirectory-pro-ticket-cta:focus-visible,
.nexdirectory-pro-primary-button:focus-visible,
.nexdirectory-pro-secondary-button:focus-visible,
.nexdirectory-pro-danger-button:focus-visible,
.nexdirectory-pro-dialog__close:focus-visible {
	outline: 3px solid rgb(99 102 241 / 32%);
	outline-offset: 3px;
}

.nexdirectory-pro-primary-button:disabled,
.nexdirectory-pro-ticket-cta:disabled {
	background: #9ca3af;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

/*
 * Inside the account workspace the core plugin resets every button to
 * `font: inherit; color: inherit` with a rule keyed on #nexdirectory-app, which
 * beat the rules above and left the label in the page's text colour on the
 * accent background. The doubled ID outranks that reset.
 */
#nexdirectory-app#nexdirectory-app .nexdirectory-pro-primary-button,
#nexdirectory-app#nexdirectory-app .nexdirectory-pro-secondary-button,
#nexdirectory-app#nexdirectory-app .nexdirectory-pro-danger-button {
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	padding: 11px 16px;
}

/*
 * The same goes for fill and border: the core plugin's reset for plain buttons
 * (.nxd-ui :where(button)) has the same weight as the rules above, so whichever stylesheet
 * loads last wins. When the reset loaded last the buttons had no background at all, leaving
 * white text on a white card. Stated here with the doubled ID so load order cannot matter.
 */
#nexdirectory-app#nexdirectory-app .nexdirectory-pro-primary-button {
	background: var(--nd-accent, var(--nexdirectory-primary));
	border: 1px solid transparent;
	color: var(--nd-on-accent, #fff);
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-primary-button:hover {
	background: var(--nd-accent-hover, var(--nexdirectory-primary-hover, #e04f0d));
	color: var(--nd-on-accent, #fff);
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-primary-button:disabled {
	background: #9ca3af;
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-secondary-button {
	background: #fff;
	border: 1px solid #d1d5db;
	color: #374151;
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-secondary-button:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-danger-button {
	background: #fff;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

#nexdirectory-app#nexdirectory-app .nexdirectory-pro-danger-button:hover {
	background: #fef2f2;
	border-color: #fca5a5;
}

.nexdirectory-pro-field-error {
	margin: -4px 0 0;
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.45;
}

.nexdirectory-pro-checkout-form input[aria-invalid="true"] {
	border-color: #dc2626;
}

.nexdirectory-pro-dialog {
	background: #fff;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgb(15 23 42 / 30%);
	color: #111827;
	margin: auto;
	max-height: min(760px, calc(100dvh - 32px));
	max-width: min(560px, calc(100vw - 24px));
	overflow: auto;
	padding: 0;
	width: 100%;
}

.nexdirectory-pro-dialog::backdrop {
	background: rgb(15 23 42 / 72%);
	backdrop-filter: blur(5px);
}

.nexdirectory-pro-dialog[open] {
	animation: nexdirectory-pro-dialog-in 180ms ease-out;
}

@keyframes nexdirectory-pro-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}
}

.nexdirectory-pro-dialog__header {
	align-items: flex-start;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 22px 24px;
}

.nexdirectory-pro-dialog__header h2,
.nexdirectory-pro-panel h2,
.nexdirectory-pro-panel h3,
.nexdirectory-pro-ticket-settings h3 {
	color: #111827;
	font-weight: 750;
	letter-spacing: -.02em;
	margin: 0;
}

.nexdirectory-pro-dialog__header h2 {
	font-size: 21px;
	line-height: 1.3;
}

.nexdirectory-pro-dialog__close {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	color: #4b5563;
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 40px;
}

.nexdirectory-pro-checkout-form {
	display: grid;
	gap: 18px;
	padding: 24px;
}

.nexdirectory-pro-checkout-form label,
.nexdirectory-pro-boost-form label,
.nexdirectory-pro-ticket-settings label,
.nexdirectory-pro-calendar-controls > label {
	color: #374151;
	display: grid;
	font-size: 13px;
	font-weight: 650;
	gap: 7px;
}

.nexdirectory-pro-checkout-form input:not([type="radio"]):not([type="checkbox"]),
.nexdirectory-pro-boost-form select,
.nexdirectory-pro-ticket-settings input:not([type="checkbox"]),
.nexdirectory-pro-calendar-controls input {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-sizing: border-box;
	color: #111827;
	font: inherit;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.nexdirectory-pro-checkout-form input:focus,
.nexdirectory-pro-boost-form select:focus,
.nexdirectory-pro-ticket-settings input:focus,
.nexdirectory-pro-calendar-controls input:focus {
	border-color: var(--nd-accent, var(--nexdirectory-primary));
	box-shadow: 0 0 0 3px rgb(99 102 241 / 16%);
	outline: 0;
}

.nexdirectory-pro-price-row {
	align-items: center;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	padding: 14px 16px;
}

.nexdirectory-pro-price-row strong {
	color: var(--nd-accent, var(--nexdirectory-primary));
	font-size: 18px;
}

.nexdirectory-pro-form-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexdirectory-pro-gateway-fieldset {
	border: 0;
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.nexdirectory-pro-gateway-fieldset legend {
	color: #374151;
	font-size: 13px;
	font-weight: 650;
	margin-bottom: 7px;
}

.nexdirectory-pro-gateway-fieldset label {
	align-items: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	display: flex;
	gap: 9px;
	padding: 11px 12px;
}

.nexdirectory-pro-eyebrow {
	color: var(--nd-accent, var(--nexdirectory-primary)) !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	letter-spacing: .09em;
	margin: 0 0 5px !important;
	text-transform: uppercase;
}

.nexdirectory-pro-help {
	color: #6b7280 !important;
	font-size: 12px !important;
	line-height: 1.55;
	margin: 0;
}

.nexdirectory-pro-help--center {
	text-align: center;
}

.nexdirectory-pro-alert {
	border: 1px solid #fde68a;
	border-radius: 10px;
	font-size: 13px;
	padding: 11px 13px;
}

.nexdirectory-pro-alert--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.nexdirectory-pro-ticket-settings,
.nexdirectory-pro-panel,
.nexdirectory-pro-calendar-controls {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-sizing: border-box;
	color: #374151;
	display: grid;
	gap: 18px;
	padding: 20px;
}

.nexdirectory-pro-ticket-settings p,
.nexdirectory-pro-panel__heading p {
	color: #6b7280;
	font-size: 13px;
	line-height: 1.55;
	margin: 5px 0 0;
}

.nexdirectory-pro-switch-row {
	align-items: center !important;
	display: flex !important;
	gap: 9px !important;
}

.nexdirectory-pro-switch-row input {
	accent-color: var(--nd-accent, var(--nexdirectory-primary));
	height: 18px;
	width: 18px;
}

.nexdirectory-pro-panel__heading--split {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

/*
 * These panels are one-column grids. A grid item is at least as wide as its content, so the
 * order history table (580px minimum) stretched the whole panel off the side of a phone and
 * cut off the boost cards. A minmax(0, 1fr) track lets the table scroll inside its own wrapper.
 */
.nexdirectory-pro-ticket-settings,
.nexdirectory-pro-panel,
.nexdirectory-pro-calendar-controls {
	grid-template-columns: minmax(0, 1fr);
}

.nexdirectory-pro-history,
.nexdirectory-pro-boost-card {
	min-width: 0;
}

.nexdirectory-pro-boost-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.nexdirectory-pro-boost-card {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	display: grid;
	gap: 14px;
	padding: 16px;
}

.nexdirectory-pro-boost-card__top {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.nexdirectory-pro-boost-card h3 {
	font-size: 16px;
}

.nexdirectory-pro-boost-card h3 a {
	color: inherit;
	text-decoration: none;
}

.nexdirectory-pro-boost-card h3 a:hover {
	color: var(--nd-accent, var(--nexdirectory-primary));
}

.nexdirectory-pro-boost-card__top p {
	color: #6b7280;
	font-size: 12px;
	margin: 4px 0 0;
}

.nexdirectory-pro-status {
	background: #f3f4f6;
	border-radius: 999px;
	color: #4b5563;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 9px;
}

.nexdirectory-pro-status.is-active {
	background: #ecfdf5;
	color: #047857;
}

.nexdirectory-pro-boost-form {
	display: grid;
	gap: 12px;
}

.nexdirectory-pro-history {
	border-top: 1px solid #e5e7eb;
	padding-top: 18px;
}

.nexdirectory-pro-history > h3 {
	font-size: 16px;
	margin-bottom: 12px;
}

.nexdirectory-pro-table-wrap {
	overflow-x: auto;
}

.nexdirectory-pro-table-wrap table {
	border-collapse: collapse;
	font-size: 13px;
	min-width: 580px;
	width: 100%;
}

.nexdirectory-pro-table-wrap th,
.nexdirectory-pro-table-wrap td {
	border-bottom: 1px solid #e5e7eb;
	padding: 11px 10px;
	text-align: left;
}

.nexdirectory-pro-table-wrap th {
	color: #6b7280;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nexdirectory-pro-table-wrap a {
	color: var(--nd-accent, var(--nexdirectory-primary));
	font-weight: 650;
	text-decoration: none;
}

.nexdirectory-pro-empty-state {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	padding: 18px;
}

.nexdirectory-pro-empty-state strong {
	color: #111827;
}

.nexdirectory-pro-empty-state p {
	color: #6b7280;
	font-size: 13px;
	margin: 5px 0 0;
}

.nexdirectory-pro-metric-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.nexdirectory-pro-metric-grid article {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	display: grid;
	gap: 6px;
	padding: 14px;
}

.nexdirectory-pro-metric-grid span {
	color: #6b7280;
	font-size: 12px;
}

.nexdirectory-pro-metric-grid strong {
	color: #111827;
	font-size: 22px;
}

.nexdirectory-pro-export-actions,
.nexdirectory-pro-inline-actions,
.nexdirectory-pro-copy-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nexdirectory-pro-copy-row input {
	flex: 1 1 280px;
}

.nexdirectory-pro-ticket-summary {
	align-items: center;
	color: #4b5563;
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 7px;
	margin-top: 8px;
}

.nexdirectory-pro-ticket-summary code {
	background: #f3f4f6;
	border-radius: 6px;
	color: #374151;
	padding: 3px 6px;
}

body.nexdirectory-pro-dialog-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.nexdirectory-pro-form-grid {
		grid-template-columns: 1fr;
	}

	.nexdirectory-pro-panel__heading--split {
		display: grid;
	}

	.nexdirectory-pro-dialog__header,
	.nexdirectory-pro-checkout-form {
		padding: 18px;
	}

	.nexdirectory-pro-export-actions > button {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexdirectory-pro-dialog[open] {
		animation: none;
	}

	.nexdirectory-pro-ticket-cta,
	.nexdirectory-pro-primary-button,
	.nexdirectory-pro-secondary-button,
	.nexdirectory-pro-danger-button {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Account workspace › Settings › Team (templates/frontend/account-team-access.php)
 * Built on Free's .nd-* / .nda-* components; only layout glue lives here.
 * ------------------------------------------------------------------------- */
.ndp-team__picker { display: flex; gap: 8px; align-items: center; }
.ndp-team__picker .nd-select { flex: 1; min-width: 0; }
.ndp-team__rolehelp { margin: -12px 0 0; }
.ndp-team__events {
	display: grid;
	gap: 2px;
	max-height: 240px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--nd-line);
	border-radius: var(--nd-radius-sm, 10px);
	background: var(--nd-surface);
}
.ndp-team__event {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--nd-ink-2);
	font-size: 14px;
	cursor: pointer;
}
.ndp-team__event:hover { background: var(--nd-surface-2); }
.ndp-team__event span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndp-team__event .nda-check { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--nd-accent); }
.ndp-team__actions { display: flex; justify-content: flex-end; }
.ndp-team__members { display: grid; gap: 0; margin: -8px 0; padding: 0; list-style: none; }
.ndp-team__member {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--nd-line);
}
.ndp-team__member:first-child { border-top: 0; }
.ndp-team__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ndp-team__whotext { min-width: 0; }
.ndp-team__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--nd-ink); font-weight: 650; font-size: 15px; }
.ndp-team__meta { margin: 2px 0 0; overflow: hidden; color: var(--nd-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ndp-team__manage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ndp-team__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ndp-team .ndp-team__edit .nd-select { flex: 0 1 148px; width: 148px; min-width: 0; }
.ndp-team__remove { margin: 0; }
.ndp-team__emptytitle { color: var(--nd-ink); font-size: 15px; }

@media (max-width: 640px) {
	.ndp-team .nd-btn, .ndp-team .nd-select, .ndp-team .nd-input { min-height: 44px; }
	.ndp-team__actions .nd-btn { width: 100%; }
	.ndp-team .ndp-team__edit .nd-select { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; }
	.ndp-team__edit .nda-chipset { flex: 1 1 100%; }
	.ndp-team__edit > .nd-btn { flex: 1; }
	.ndp-team__manage { display: grid; grid-template-columns: 1fr; }
	.ndp-team__remove .nd-btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
 * Account workspace › Events › Event app (templates/frontend/account-event-app-studio.php)
 * ------------------------------------------------------------------------- */
.ndp-studio { display: grid; gap: 16px; max-width: 760px; }
.ndp-studio__form { display: grid; gap: 16px; margin: 0; }
.ndp-studio__pickerrow { display: flex; gap: 8px; }
.ndp-studio__pickerrow .nd-select { flex: 1; min-width: 0; }
.ndp-studio__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.ndp-studio__statustext { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ndp-studio__eventtitle { margin: 0; overflow: hidden; color: var(--nd-ink); font: 650 18px/1.3 var(--nd-font); letter-spacing: -0.015em; text-overflow: ellipsis; white-space: nowrap; }
.ndp-studio__grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ndp-studio__fsdesc { margin: -6px 0 0; }

/* Toggle rows: text left, switch right; whole row is the hit area. */
.ndp-toggles { display: grid; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-sm, 12px); background: var(--nd-surface); overflow: hidden; }
.ndp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--nd-line); cursor: pointer; transition: background var(--nd-dur-1, 120ms) var(--nd-ease, ease); }
.ndp-toggles > input + .ndp-toggle:first-of-type, .ndp-toggles > .ndp-toggle:first-child { border-top: 0; }
.ndp-toggle:hover { background: var(--nd-surface-2); }
.ndp-toggle__text { display: grid; gap: 2px; min-width: 0; }
.ndp-toggle__text strong { color: var(--nd-ink); font: 600 14px/1.35 var(--nd-font); }
.ndp-toggle__text small { color: var(--nd-muted); font-size: 13px; line-height: 1.45; }
.ndp-toggle .nd-switch { position: relative; flex: none; }

.ndp-color { height: 44px; padding: 4px; cursor: pointer; }
.ndp-color::-webkit-color-swatch-wrapper { padding: 0; }
.ndp-color::-webkit-color-swatch { border: 0; border-radius: 6px; }
.ndp-color::-moz-color-swatch { border: 0; border-radius: 6px; }

.ndp-asset { display: flex; gap: 16px; align-items: flex-start; }
.ndp-asset__preview { display: grid; place-items: center; flex: none; width: 56px; height: 56px; margin-top: 22px; overflow: hidden; border: 1px dashed var(--nd-line-strong); border-radius: 14px; background: var(--nd-surface-2); }
.ndp-asset__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ndp-asset__field { flex: 1; min-width: 0; }
.ndp-asset__row { display: flex; gap: 8px; }
.ndp-asset__row .nd-input { flex: 1; min-width: 0; }
.ndp-upload { flex: none; cursor: pointer; }
.ndp-asset__row:has(.ndp-upload__input:focus-visible) .ndp-upload { box-shadow: var(--nd-ring); }
.ndp-file { display: block; width: 100%; color: var(--nd-muted); font: 400 14px/1.4 var(--nd-font); }
.ndp-file::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 14px; border: 1px solid var(--nd-line-strong); border-radius: var(--nd-radius-sm, 10px); background: var(--nd-surface); color: var(--nd-ink); font: 600 14px/1 var(--nd-font); cursor: pointer; }

.ndp-studio__advanced { padding: 0; overflow: hidden; }
.ndp-studio__advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 16px 24px; cursor: pointer; list-style: none; }
.ndp-studio__advanced > summary::-webkit-details-marker { display: none; }
.ndp-studio__advanced > summary span { display: grid; gap: 2px; }
.ndp-studio__advanced > summary strong { color: var(--nd-ink); font: 650 16px/1.3 var(--nd-font); }
.ndp-studio__advanced > summary small { color: var(--nd-muted); font-size: 13px; }
.ndp-studio__advanced > summary svg { flex: none; color: var(--nd-muted); transition: transform var(--nd-dur-2, 200ms) var(--nd-ease, ease); }
.ndp-studio__advanced[open] > summary { border-bottom: 1px solid var(--nd-line); }
.ndp-studio__advanced[open] > summary svg { transform: rotate(180deg); }
.ndp-studio__advanced > summary:focus-visible { outline: none; box-shadow: inset var(--nd-ring); }

.ndp-studio__savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg, 16px); background: color-mix(in srgb, var(--nd-surface) 90%, transparent); box-shadow: var(--nd-shadow-3); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.ndp-studio__savestate { margin: 0; color: var(--nd-muted); font-size: 13px; }

@media (max-width: 782px) {
	.ndp-studio__grid3 { grid-template-columns: 1fr; }
	.ndp-studio .nd-btn, .ndp-studio .nd-select, .ndp-studio .nd-input { min-height: 44px; }
	.ndp-studio__savebar { bottom: calc(72px + env(safe-area-inset-bottom)); }
	.ndp-studio__savebar .nd-btn { flex: 1; }
	.ndp-studio__savestate { display: none; }
	.ndp-studio__advanced > summary { padding: 16px; }
	.ndp-asset__preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ndp-toggle, .ndp-studio__advanced > summary svg { transition: none; }
}

/* ---------------------------------------------------------------------------
 * Standalone ticket page (templates/frontend/ticket-verification.php)
 * Mobile first: status, then the QR code people show at the door.
 * ------------------------------------------------------------------------- */
.ndp-ticket-page {
	margin: 0;
	background: var(--nd-canvas, #f6f7f9);
	color: var(--nd-ink, #0f172a);
	font: 400 16px/1.6 var(--nd-font, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
	-webkit-font-smoothing: antialiased;
}
.ndp-ticket-page {
	--nd-accent: var(--nexdirectory-primary);
	--nd-accent-hover: var(--nexdirectory-primary-hover);
	--nd-on-accent: var(--nexdirectory-on-primary, #fff);
	--nd-ring: 0 0 0 3px color-mix(in srgb, var(--nexdirectory-primary) 28%, transparent);
}
.ndp-ticket-page *, .ndp-ticket-page *::before, .ndp-ticket-page *::after { box-sizing: border-box; }
.ndp-ticket { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); }
.ndp-ticket__brand { display: flex; justify-content: center; min-height: 32px; }
.ndp-ticket__logo { max-width: 160px; max-height: 32px; object-fit: contain; }
.ndp-ticket__brandname { color: var(--nd-ink-2, #334155); font-weight: 650; font-size: 15px; }

.ndp-ticket__status { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--nd-radius-lg, 16px); background: var(--ndp-state-soft); color: var(--nd-ink, #0f172a); }
.ndp-ticket--success { --ndp-state: var(--nd-success, #12805c); --ndp-state-soft: var(--nd-success-soft, #e9f7f1); }
.ndp-ticket--warning { --ndp-state: var(--nd-warning, #b25e09); --ndp-state-soft: var(--nd-warning-soft, #fdf3e6); }
.ndp-ticket--error { --ndp-state: var(--nd-danger, #c4320a); --ndp-state-soft: var(--nd-danger-soft, #fdeeea); }
.ndp-ticket__statusicon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ndp-state); color: #fff; }
.ndp-ticket__statustext { min-width: 0; }
.ndp-ticket__statuslabel { margin: 0 0 2px; color: var(--ndp-state); font-size: 14px; font-weight: 650; }
.ndp-ticket__title { margin: 0; font: 700 24px/1.2 var(--nd-font-display, inherit); letter-spacing: -0.02em; text-wrap: balance; }
.ndp-ticket__message { margin: 4px 0 0; color: var(--nd-ink-2, #334155); font-size: 15px; }
.ndp-ticket__scanned { margin: 8px 0 0; color: var(--nd-ink-2, #334155); font-size: 14px; font-weight: 600; }

.ndp-ticket__card { padding: 20px; border: 1px solid var(--nd-line, #e5e7eb); border-radius: var(--nd-radius-lg, 16px); background: var(--nd-surface, #fff); box-shadow: var(--nd-shadow-1, 0 1px 2px rgba(15, 23, 42, .04)); }
.ndp-ticket__qrcard { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ndp-ticket__qr { display: grid; place-items: center; width: min(100%, 280px); aspect-ratio: 1; margin-bottom: 8px; }
.ndp-ticket__qr svg { display: block; width: 100%; height: auto; }
.ndp-ticket__qrskeleton { width: 100%; height: 100%; border-radius: 12px; }
.ndp-ticket__qrimg { width: 200px; height: 200px; object-fit: contain; }
.ndp-ticket__fallback { margin: 0 0 8px; color: var(--nd-danger, #c4320a); font-size: 14px; }
.ndp-ticket__h2 { margin: 0; font: 650 18px/1.3 var(--nd-font, inherit); letter-spacing: -0.015em; }
.ndp-ticket__muted { margin: 0; color: var(--nd-muted, #5d6b82); font-size: 14px; }
.ndp-ticket__code { margin: 12px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--nd-surface-2, #f9fafb); color: var(--nd-ink, #0f172a); font: 600 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }

.ndp-ticket__eventtitle { margin: 0 0 12px; font: 650 20px/1.3 var(--nd-font-display, inherit); letter-spacing: -0.02em; text-wrap: balance; }
.ndp-ticket__eventmeta { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--nd-ink-2, #334155); font-size: 15px; }
.ndp-ticket__eventmeta li { display: flex; gap: 10px; align-items: flex-start; }
.ndp-ticket__eventmeta svg { flex: none; margin-top: 3px; color: var(--nd-muted, #5d6b82); }

.ndp-ticket__list { display: grid; margin: 12px 0 0; }
.ndp-ticket__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--nd-line, #e5e7eb); }
.ndp-ticket__list > div:first-child { border-top: 0; }
.ndp-ticket__list dt { color: var(--nd-muted, #5d6b82); font-size: 14px; }
.ndp-ticket__list dd { min-width: 0; margin: 0; color: var(--nd-ink, #0f172a); font-size: 15px; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.ndp-ticket__list--small dd { font-size: 13px; }
.ndp-ticket__mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.ndp-ticket__door { display: grid; gap: 12px; border-color: var(--nexdirectory-primary, #4f46e5); }
.ndp-ticket__door .ndp-ticket__h2, .ndp-ticket__door .ndp-ticket__muted { margin: 0; }
.ndp-ticket__doorguest { margin: 0; color: var(--nd-ink, #0f172a); font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ndp-ticket__doorbtn { width: 100%; min-height: 52px; justify-content: center; }
.ndp-ticket__door.is-done { border-color: var(--nd-success, #15803d); }
.ndp-ticket__door.is-used { border-color: var(--nd-warning, #b45309); }
.ndp-ticket__doorerror { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; font-weight: 600; }
.ndp-ticket__doorlink { color: var(--nd-ink-2, #334155); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ndp-ticket__note { margin: 12px 0 0; padding: 12px; border-radius: 10px; background: var(--nd-surface-2, #f9fafb); color: var(--nd-ink-2, #334155); font-size: 14px; }
.ndp-ticket__more { margin-top: 8px; border-top: 1px solid var(--nd-line, #e5e7eb); }
.ndp-ticket__more > summary { display: flex; align-items: center; min-height: 44px; color: var(--nd-ink-2, #334155); font-size: 14px; font-weight: 600; cursor: pointer; }
.ndp-ticket__more > summary { justify-content: space-between; list-style: none; }
.ndp-ticket__more > summary::-webkit-details-marker { display: none; }
.ndp-ticket__more > summary::after { width: 8px; height: 8px; margin-right: 4px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; content: ""; transform: rotate(45deg); }
.ndp-ticket__more[open] > summary::after { transform: rotate(-135deg); }
.ndp-ticket__more > summary:focus-visible { outline: none; box-shadow: var(--nd-ring); border-radius: 8px; }
.ndp-ticket__pre { margin: 8px 0 0; padding: 12px; overflow: auto; border-radius: 10px; background: var(--nd-surface-2, #f9fafb); color: var(--nd-ink, #0f172a); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.ndp-ticket__actions { display: grid; gap: 8px; }
.ndp-ticket__actions .nd-btn { justify-content: center; min-height: 48px; text-decoration: none; }

@media (min-width: 640px) {
	.ndp-ticket { padding-top: 40px; }
	.ndp-ticket__actions { grid-auto-flow: column; justify-content: start; }
}

/* ---------------------------------------------------------------------------
 * Account workspace › Listings: "Waiting for payment" (listing fees).
 * Built on Free's .nd-* tokens and buttons; only layout glue lives here.
 * ------------------------------------------------------------------------- */
/* Doubled class: Free's scoped reset (.nxd-ui *) sets border to 0 at the same weight. */
.ndp-fee.ndp-fee {
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid var(--nd-line, #e6e9f0);
	border-left: 4px solid var(--nd-warning, #b45309);
	border-radius: var(--nd-radius-lg, 14px);
	background: var(--nd-surface, #fff);
	font-family: var(--nd-font, inherit);
	color: var(--nd-ink, inherit);
}
.ndp-fee__title { margin: 0 0 4px; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--nd-ink, inherit); }
.ndp-fee__lede { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--nd-ink-2, inherit); }
.ndp-fee__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ndp-fee .ndp-fee__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 12px 0;
	border-top: 1px solid var(--nd-line, #e6e9f0);
}
.ndp-fee__text { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.ndp-fee__name { font-size: 0.9375rem; font-weight: 600; overflow-wrap: anywhere; }
.ndp-fee__state { font-size: 0.875rem; line-height: 1.4; color: var(--nd-muted, inherit); }
.ndp-fee__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ndp-fee__actions .nd-btn { text-decoration: none; }
@media (max-width: 560px) {
	.ndp-fee { padding: 16px; }
	.ndp-fee__actions,
	.ndp-fee__actions .nd-btn { width: 100%; justify-content: center; }
}
