.eamm-admin-screen {
	max-width: 1380px;
}

.eamm-form {
	display: grid;
	gap: 1rem;
}

.eamm-form-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eamm-field,
.eamm-field-full {
	display: grid;
	gap: 0.45rem;
}

.eamm-field-full {
	grid-column: 1 / -1;
}

.eamm-label {
	color: #1d2939;
	font-weight: 600;
}

.eamm-input,
.eamm-form input[type="text"],
.eamm-form input[type="email"],
.eamm-form input[type="number"],
.eamm-form input[type="password"],
.eamm-form input[type="search"],
.eamm-form input[type="date"],
.eamm-form textarea,
.eamm-form select {
	border: 1px solid #d0d5dd;
	border-radius: 12px;
	box-sizing: border-box;
	font: inherit;
	min-height: 44px;
	padding: 0.75rem 0.85rem;
	width: 100%;
}

.eamm-form textarea {
	min-height: 120px;
}

.eamm-input:focus,
.eamm-form textarea:focus,
.eamm-form select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
	outline: none;
}

.eamm-button {
	align-items: center;
	background: #101828;
	border: 1px solid #101828;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	padding: 0.8rem 1.1rem;
	text-decoration: none;
}

.eamm-button:hover {
	background: #1d2939;
	border-color: #1d2939;
	color: #fff;
}

.eamm-admin-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.5rem;
}

.eamm-admin-col,
.eamm-editor-main,
.eamm-editor-sidebar {
	min-width: 0;
}

.eamm-editor-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.9fr);
	gap: 1.5rem;
}

.eamm-editor-main,
.eamm-editor-sidebar,
.eamm-settings-sidebar {
	display: grid;
	gap: 1.5rem;
	align-content: start;
}

.eamm-admin-card,
.eamm-settings-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
	padding: 1.35rem 1.4rem;
}

.eamm-card-header,
.eamm-settings-card-header {
	margin-bottom: 1rem;
}

.eamm-card-header h2,
.eamm-settings-card-header h2 {
	font-size: 1.08rem;
	line-height: 1.3;
	margin: 0 0 0.35rem;
}

.eamm-card-header p,
.eamm-settings-card-header p,
.eamm-screen-lead,
.eamm-settings-lead,
.eamm-form .description {
	color: #50575e;
	line-height: 1.6;
	margin: 0;
}

.eamm-screen-hero,
.eamm-settings-hero {
	background: linear-gradient(135deg, #f8f9fd 0%, #eef4ff 55%, #f5fbff 100%);
	border: 1px solid #dcdcde;
	border-radius: 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
	margin: 1rem 0 1.5rem;
	padding: 1.45rem 1.6rem;
}

.eamm-screen-hero-members {
	background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 45%, #f8fdff 100%);
}

.eamm-screen-hero-editor {
	background: linear-gradient(135deg, #faf8ff 0%, #eef4ff 52%, #f7fcff 100%);
}

.eamm-screen-hero-fields {
	background: linear-gradient(135deg, #fbfaf7 0%, #eef5ff 48%, #f7fbf5 100%);
}

.eamm-screen-hero-treasury {
	background: linear-gradient(135deg, #f7fbf7 0%, #eef8f1 46%, #f8fafc 100%);
}

.eamm-hero-copy {
	max-width: 780px;
}

.eamm-screen-hero h1,
.eamm-settings-hero h1 {
	margin: 0 0 0.35rem;
}

.eamm-screen-hero-actions,
.eamm-list-toolbar,
.eamm-bulk-actions,
.eamm-row-actions,
.eamm-filter-actions,
.eamm-settings-actions,
.eamm-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.eamm-summary-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.eamm-summary-card {
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	border: 1px solid #d9e0ea;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	padding: 1rem 1.1rem;
}

.eamm-summary-label {
	color: #667085;
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 0.35rem;
}

.eamm-summary-value {
	color: #101828;
	display: block;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.eamm-filter-bar {
	margin-bottom: 1.25rem;
}

.eamm-filter-shell {
	background: #fbfcfe;
	border: 1px solid #e5eaf1;
	border-radius: 16px;
	padding: 1rem;
}

.eamm-filter-grid {
	display: grid;
	grid-template-columns: minmax(280px, 2fr) minmax(220px, 1fr) auto;
	gap: 1rem;
	align-items: end;
}

.eamm-list-toolbar {
	justify-content: space-between;
	margin-bottom: 1rem;
}

.eamm-list-toolbar-strong {
	background: #f8fafc;
	border: 1px solid #e7edf4;
	border-radius: 16px;
	padding: 0.85rem 1rem;
}

.eamm-list-meta {
	display: inline-flex;
	gap: 0.45rem;
	align-items: baseline;
	color: #50575e;
}

.eamm-list-meta strong {
	color: #101828;
	font-size: 1rem;
}

.eamm-table-wrap {
	overflow-x: auto;
}

.eamm-table {
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	width: 100%;
}

.eamm-table th,
.eamm-table td {
	border-bottom: 1px solid #e8eaef;
	padding: 0.95rem;
	text-align: left;
	vertical-align: top;
}

.eamm-table thead th {
	background: #f8fafc;
	color: #344054;
	font-size: 0.88rem;
	font-weight: 700;
}

.eamm-table tbody tr:last-child td {
	border-bottom: 0;
}

.eamm-col-check {
	width: 42px;
}

.eamm-member-cell {
	display: grid;
	gap: 0.2rem;
}

.eamm-member-cell span {
	color: #667085;
	font-size: 0.92rem;
}

.eamm-table-card {
	padding-top: 1.15rem;
}

.eamm-status-pill {
	background: #eef2f6;
	border-radius: 999px;
	color: #344054;
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.35rem 0.7rem;
}

.eamm-status-pill-active {
	background: #e7f6ec;
	color: #027a48;
}

.eamm-status-pill-approved {
	background: #eaf1ff;
	color: #2850c8;
}

.eamm-status-pill-pending {
	background: #fff2e8;
	color: #b54708;
}

.eamm-status-pill-inactive,
.eamm-status-pill-deleted {
	background: #eef1f5;
	color: #667085;
}

.eamm-status-pill-rejected {
	background: #feeceb;
	color: #b42318;
}

.eamm-status-pill-paid {
	background: #e7f6ec;
	color: #027a48;
}

.eamm-status-pill-partial {
	background: #fff8e6;
	color: #936100;
}

.eamm-status-pill-overdue {
	background: #feeceb;
	color: #b42318;
}

.eamm-status-pill-unpaid {
	background: #eef1f5;
	color: #475467;
}

.eamm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.eamm-page-link {
	align-items: center;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	color: #344054;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
}

.eamm-page-link.is-active {
	background: #101828;
	border-color: #101828;
	color: #fff;
}

.eamm-settings-page .eamm-notice,
.eamm-admin-screen .eamm-notice {
	margin-bottom: 1rem;
}

.eamm-settings-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
	gap: 1.5rem;
	align-items: start;
}

.eamm-settings-form {
	gap: 1.25rem;
}

.eamm-settings-hero-badge {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	color: #135e96;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	white-space: nowrap;
}

.eamm-settings-checklist {
	display: grid;
	gap: 0.85rem;
}

.eamm-checkbox-row {
	align-items: flex-start;
	background: #f9fafb;
	border: 1px solid #e6e7ea;
	border-radius: 12px;
	cursor: pointer;
	display: grid;
	gap: 0.7rem;
	grid-template-columns: auto minmax(0, 1fr);
	line-height: 1.5;
	padding: 0.85rem 0.95rem;
	position: relative;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eamm-checkbox-row:hover {
	background: #fff;
	border-color: #d7dde6;
}

.eamm-checkbox-row:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.eamm-checkbox-row-input {
	height: 1px;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 1px;
}

.eamm-checkbox-row-ui {
	align-items: center;
	background: #fff;
	border: 1.5px solid #c4cbd5;
	border-radius: 0.4rem;
	display: inline-flex;
	height: 1.15rem;
	justify-content: center;
	margin-top: 0.18rem;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	width: 1.15rem;
}

.eamm-checkbox-row-ui::after {
	border-bottom: 2px solid #fff;
	border-right: 2px solid #fff;
	content: "";
	height: 0.55rem;
	opacity: 0;
	position: absolute;
	transform: rotate(45deg) scale(0.8);
	transform-origin: center;
	width: 0.28rem;
}

.eamm-checkbox-row-input:checked + .eamm-checkbox-row-ui {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.eamm-checkbox-row-input:checked + .eamm-checkbox-row-ui::after {
	opacity: 1;
}

.eamm-checkbox-row-input:focus-visible + .eamm-checkbox-row-ui {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.eamm-checkbox-row-content {
	color: #1d2939;
	min-width: 0;
}

.eamm-shortcode-list {
	display: grid;
	gap: 0.85rem;
}

.eamm-shortcode-item {
	background: #f8fafc;
	border: 1px solid #e6ebf0;
	border-radius: 12px;
	padding: 0.9rem 0.95rem;
}

.eamm-shortcode-item code {
	background: #111827;
	border-radius: 10px;
	color: #f9fafb;
	display: block;
	font-size: 12px;
	line-height: 1.5;
	overflow-wrap: anywhere;
	padding: 0.75rem 0.8rem;
}

.eamm-shortcode-item p {
	color: #50575e;
	line-height: 1.55;
	margin: 0.65rem 0 0;
}

.eamm-settings-tips {
	color: #50575e;
	margin: 0;
	padding-left: 1.2rem;
}

.eamm-settings-tips li + li {
	margin-top: 0.75rem;
}

.eamm-empty-state {
	padding: 1rem 0.25rem;
	text-align: center;
}

.eamm-empty-state h3 {
	margin: 0 0 0.35rem;
}

.eamm-empty-state p {
	color: #667085;
	margin: 0;
}

.eamm-button.eamm-button-secondary {
	background: #fff;
	border-color: #d0d5dd;
	color: #344054;
}

.eamm-export-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.eamm-editor-card,
.eamm-sidebar-card {
	position: relative;
	overflow: hidden;
}

.eamm-editor-card::before,
.eamm-sidebar-card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #7c97ff 0%, #6fc0ff 100%);
	opacity: 0.85;
}

.eamm-card-subsection {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid #e9edf3;
}

.eamm-card-subsection h3 {
	margin: 0 0 0.8rem;
	font-size: 0.98rem;
	color: #101828;
}

.eamm-checklist-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eamm-form-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.eamm-rights-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.eamm-rights-card {
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
	border: 1px solid #dbe5f0;
	border-radius: 16px;
	padding: 1rem;
}

.eamm-rights-card p,
.eamm-rights-list p,
.eamm-muted-text {
	color: #667085;
	margin: 0.35rem 0 0;
}

.eamm-rights-list {
	background: #f8fafc;
	border: 1px solid #e8edf3;
	border-radius: 14px;
	padding: 0.85rem 0.95rem;
}

.eamm-rights-list p:first-child,
.eamm-muted-text:first-child {
	margin-top: 0;
}

.eamm-summary-strip-compact {
	margin-bottom: 1rem;
}

.eamm-overview-grid,
.eamm-action-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	margin-bottom: 1.25rem;
}

.eamm-overview-card,
.eamm-action-card {
	color: inherit;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.eamm-overview-card:hover,
.eamm-action-card:hover {
	border-color: #b9c6d8;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
	color: inherit;
	transform: translateY(-1px);
}

.eamm-overview-card p {
	color: #667085;
	line-height: 1.55;
	margin: 0.65rem 0 0;
}

.eamm-action-card {
	background: #f8fafc;
	border: 1px solid #e5eaf1;
	border-radius: 16px;
	display: grid;
	gap: 0.35rem;
	padding: 1rem;
}

.eamm-action-card strong {
	color: #101828;
	font-size: 1rem;
}

.eamm-action-card span {
	color: #667085;
	line-height: 1.45;
}

.eamm-tab-nav {
	background: #ffffff;
	border: 1px solid #d9e0ea;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1.25rem;
	padding: 0.55rem;
}

.eamm-tab-button {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #344054;
	cursor: pointer;
	font-weight: 700;
	padding: 0.65rem 0.9rem;
	text-decoration: none;
}

.eamm-tab-button:hover {
	background: #f2f6fb;
	color: #101828;
}

.eamm-tab-button.is-active {
	background: #101828;
	border-color: #101828;
	color: #fff;
}

.eamm-tab-panel {
	display: grid;
	gap: 1.5rem;
}

.eamm-tab-panel[hidden] {
	display: none;
}

.eamm-settings-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
	align-items: start;
}

.eamm-placeholder-grid {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.eamm-placeholder-grid code,
.eamm-shortcode-item-compact code {
	background: #101828;
	border-radius: 10px;
	color: #fff;
	display: block;
	font-size: 12px;
	line-height: 1.5;
	overflow-wrap: anywhere;
	padding: 0.65rem 0.75rem;
	user-select: all;
}

.eamm-shortcode-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.eamm-shortcode-item-compact {
	margin: 0;
}

.eamm-access-checklist {
	margin-top: 1rem;
}

.eamm-checkbox-row-content strong,
.eamm-checkbox-row-content small {
	display: block;
}

.eamm-checkbox-row-content small {
	color: #667085;
	font-size: 0.86rem;
	margin-top: 0.2rem;
}

.eamm-danger-card {
	border-color: #f4b8b1;
	background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.eamm-danger-option {
	background: #fff7f6;
	border-color: #f0b8b0;
}

.eamm-danger-option .eamm-checkbox-row-content strong {
	color: #b42318;
}

.eamm-settings-actions-sticky {
	background: #fff;
	border: 1px solid #d9e0ea;
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
	margin-top: 0.25rem;
	padding: 0.85rem 1rem;
}

.eamm-treasury-layout {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
	align-items: start;
}

.eamm-treasury-main,
.eamm-treasury-sidebar {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

.eamm-input-inline {
	max-width: 150px;
}

.eamm-media-row {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.eamm-treasury-table .eamm-row-actions {
	align-items: flex-start;
}

.eamm-treasury-payment-list {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.85rem;
}

.eamm-treasury-payment-item {
	background: #f8fafc;
	border: 1px solid #d9e0ea;
	border-radius: 14px;
	padding: 0.85rem;
}

.eamm-treasury-payment-item.is-voided {
	background: #fff5f4;
	border-color: #f0c7c2;
}

.eamm-treasury-payment-head {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
}

.eamm-treasury-inline-form {
	display: grid;
	gap: 0.65rem;
	margin-top: 0.75rem;
}

@media (max-width: 1080px) {
	.eamm-admin-grid,
	.eamm-editor-layout,
	.eamm-settings-layout,
	.eamm-settings-grid,
	.eamm-treasury-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.eamm-screen-hero,
	.eamm-settings-hero,
	.eamm-list-toolbar,
	.eamm-filter-grid {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}

	.eamm-filter-grid {
		display: grid;
	}
}

@media (max-width: 640px) {
	.eamm-tab-nav {
		display: grid;
		grid-template-columns: 1fr;
	}

	.eamm-tab-button {
		justify-content: center;
		width: 100%;
	}

	.eamm-media-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.eamm-table,
	.eamm-table thead,
	.eamm-table tbody,
	.eamm-table th,
	.eamm-table td,
	.eamm-table tr {
		display: block;
	}

	.eamm-table thead {
		display: none;
	}

	.eamm-table tr {
		border: 1px solid #e8eaef;
		border-radius: 18px;
		margin-bottom: 1rem;
		overflow: hidden;
	}

	.eamm-table td {
		border-bottom: 1px solid #eef2f6;
	}

	.eamm-table td:last-child {
		border-bottom: 0;
	}

	.eamm-table td[data-label]::before {
		color: var(--eamm-muted);
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .04em;
		margin-bottom: 5px;
		text-transform: uppercase;
	}
}

/* PASEFK application shell, derived from the approved reference UI. */
:root {
	--eamm-navy: #17324d;
	--eamm-navy-deep: #132b40;
	--eamm-teal: #117a73;
	--eamm-teal-soft: #e4f3f1;
	--eamm-canvas: #f4f6f8;
	--eamm-ink: #1f2933;
	--eamm-muted: #637381;
	--eamm-line: #dfe5e9;
	--eamm-shadow: 0 10px 30px rgba(21, 48, 73, 0.08);
}

body.eamm-fullscreen-admin #wpadminbar,
body.eamm-fullscreen-admin #adminmenumain,
body.eamm-fullscreen-admin #wpfooter,
body.eamm-fullscreen-admin .update-nag,
body.eamm-fullscreen-admin .notice:not(.eamm-notice) { display: none !important; }
body.eamm-fullscreen-admin #wpcontent,
body.eamm-fullscreen-admin #wpbody-content { margin: 0; padding: 0; }
body.eamm-fullscreen-admin #wpbody { padding-top: 0; }
body.eamm-fullscreen-admin { background: var(--eamm-canvas); }
html:has(body.eamm-fullscreen-admin) { margin-top: 0 !important; }
body.eamm-fullscreen-admin #screen-meta, body.eamm-fullscreen-admin #screen-meta-links { display: none !important; }

.eamm-app-shell {
	background: var(--eamm-canvas);
	color: var(--eamm-ink);
	display: grid;
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	grid-template-columns: 252px minmax(0, 1fr);
	min-height: 100vh;
	position: relative;
}
.eamm-app-shell * { box-sizing: border-box; }
.eamm-app-shell.is-frontend { border: 1px solid var(--eamm-line); border-radius: 18px; min-height: 760px; overflow: clip; width: 100%; }
.eamm-app-sidebar { background: linear-gradient(180deg, var(--eamm-navy), var(--eamm-navy-deep)); color: #fff; display: flex; flex-direction: column; height: 100vh; padding: 24px 18px; position: sticky; top: 0; z-index: 40; }
.is-frontend .eamm-app-sidebar { height: 100%; min-height: 760px; position: relative; }
.eamm-app-brand { align-items: center; display: flex; gap: 12px; padding: 4px 8px 28px; }
.eamm-app-brand-mark { align-items: center; background: #fff; border-radius: 13px; box-shadow: 0 8px 20px rgba(0,0,0,.16); color: var(--eamm-navy); display: flex; font-size: 22px; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.eamm-app-brand strong, .eamm-app-brand small { display: block; }
.eamm-app-brand strong { color: #fff; font-size: 17px; letter-spacing: .04em; }
.eamm-app-brand small { color: #b9c8d4; font-size: 11px; margin-top: 3px; }
.eamm-app-nav { display: grid; gap: 6px; }
.eamm-app-nav-item { align-items: center; border-radius: 11px; color: #c9d6df; display: flex; gap: 12px; padding: 12px 13px; text-decoration: none; transition: .16s ease; }
.eamm-app-nav-item > span { font-size: 20px; text-align: center; width: 22px; }
.eamm-app-nav-item:hover, .eamm-app-nav-item:focus, .eamm-app-nav-item.is-active { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.eamm-app-nav-item:focus-visible, .eamm-app-secondary-link:focus-visible, .eamm-app-menu-toggle:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 2px; }
.eamm-app-nav-item .dashicons { font-size: 20px; height: 20px; width: 20px; }
.eamm-app-nav-item.is-active { box-shadow: inset 3px 0 0 #65c5bd; }
.eamm-app-secondary { border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 2px; margin-top: 22px; padding: 18px 8px 0; }
.eamm-app-nav-label { color: #8097a8; font-size: 10px; font-weight: 700; letter-spacing: .09em; margin-bottom: 7px; text-transform: uppercase; }
.eamm-app-secondary-link { border-radius: 8px; color: #afc0cc; font-size: 12px; padding: 7px 9px; text-decoration: none; }
.eamm-app-secondary-link:hover, .eamm-app-secondary-link.is-active { background: rgba(255,255,255,.08); color: #fff; }
.eamm-app-sidebar-footer { align-items: center; border-top: 1px solid rgba(255,255,255,.12); color: #9fb2c0; display: flex; flex-wrap: wrap; font-size: 10px; gap: 7px; margin-top: auto; padding: 18px 10px 4px; }
.eamm-app-sidebar-footer a { color: #dce6ec; flex-basis: 100%; margin-top: 6px; }
.eamm-environment-dot { background: #65c5bd; border-radius: 50%; box-shadow: 0 0 0 4px rgba(101,197,189,.15); height: 8px; width: 8px; }
.eamm-app-main { min-width: 0; }
.eamm-app-topbar { align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--eamm-line); display: flex; justify-content: space-between; min-height: 92px; padding: 18px 32px; position: sticky; top: 0; z-index: 30; }
.eamm-app-topbar p { color: var(--eamm-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; margin: 0 0 4px; text-transform: uppercase; }
.eamm-app-topbar h1 { color: var(--eamm-ink); font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.eamm-app-user { align-items: center; background: #fff; border: 1px solid var(--eamm-line); border-radius: 99px; color: var(--eamm-muted); display: flex; font-size: 12px; gap: 9px; min-height: 40px; padding: 5px 12px 5px 6px; }
.eamm-app-user > span { align-items: center; background: var(--eamm-teal); border-radius: 50%; color: #fff; display: flex; font-weight: 700; height: 29px; justify-content: center; width: 29px; }
.eamm-app-user b { font-weight: 600; }
.eamm-app-menu-toggle { background: #fff; border: 1px solid var(--eamm-line); border-radius: 9px; color: var(--eamm-navy); display: none; font-size: 20px; height: 40px; margin-right: 12px; width: 40px; }
.eamm-app-nav-overlay { background: rgba(12,30,44,.45); border: 0; inset: 0; padding: 0; position: fixed; z-index: 35; }
.eamm-app-nav-overlay[hidden] { display: none; }
.eamm-app-content { padding: 26px 32px 42px; }
.eamm-app-content > .wrap { margin: 0; max-width: none; }
.eamm-app-content .eamm-screen-hero { background: #fff; border-color: var(--eamm-line); border-radius: 16px; box-shadow: var(--eamm-shadow); margin-top: 0; }
.eamm-app-content .eamm-screen-hero h1 { color: var(--eamm-navy); }
.eamm-app-content .eamm-admin-card, .eamm-app-content .eamm-settings-card, .eamm-app-content .eamm-summary-card { border-color: var(--eamm-line); box-shadow: var(--eamm-shadow); }
.eamm-app-content .eamm-button { background: var(--eamm-teal); border-color: var(--eamm-teal); border-radius: 10px; box-shadow: 0 5px 12px rgba(17,122,115,.12); min-height: 40px; }
.eamm-app-content .eamm-button:hover { background: #0d6c66; border-color: #0d6c66; color: #fff; }
.eamm-app-content .eamm-button-secondary { background: #fff; border-color: var(--eamm-line); box-shadow: none; color: var(--eamm-navy); }
.eamm-app-content .eamm-button-danger { background: #b83a3a; border-color: #b83a3a; }
.eamm-button-small { min-height: 32px !important; padding: 6px 10px; }
.eamm-app-content .eamm-status-pill { align-items: center; display: inline-flex; gap: 6px; }
.eamm-app-content .eamm-status-pill::before { background: currentColor; border-radius: 50%; content: ""; height: 6px; opacity: .7; width: 6px; }
.eamm-status-pill-canceled { background: #feeceb; color: #b42318; }
.eamm-status-pill-active { background: #e7f6ec; color: #027a48; }
.eamm-screen-hero-protocol { background: linear-gradient(135deg, #f7fbfb, #e8f5f3 52%, #f8fafc) !important; }
.eamm-protocol-ref { color: var(--eamm-teal); font-family: Consolas, "SFMono-Regular", monospace; white-space: nowrap; }
.eamm-cell-secondary { color: var(--eamm-muted); display: block; font-size: 11px; margin-top: 4px; }
.eamm-protocol-filters { margin-bottom: 18px; }
.eamm-protocol-filters .eamm-filter-grid { grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(110px, .65fr)) auto; }
.eamm-recent-protocol { margin-bottom: 20px; }
.eamm-recent-protocol .eamm-card-header { align-items: center; display: flex; justify-content: space-between; }
.eamm-protocol-mini-list { display: grid; gap: 9px; }
.eamm-protocol-mini-list > div { border: 1px solid var(--eamm-line); border-radius: 10px; display: grid; gap: 3px; padding: 10px; }
.eamm-protocol-mini-list span, .eamm-protocol-mini-list small { color: var(--eamm-muted); }

.eamm-modal[hidden] { display: none; }
.eamm-modal { inset: 0; position: fixed; z-index: 100000; }
.eamm-modal-backdrop { background: rgba(12,30,44,.6); inset: 0; position: absolute; }
.eamm-modal-dialog { background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(8,26,40,.32); left: 50%; max-height: calc(100vh - 40px); overflow: auto; padding: 24px; position: absolute; top: 20px; transform: translateX(-50%); width: min(780px, calc(100vw - 32px)); }
.eamm-confirm-modal .eamm-modal-dialog { top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 32px)); }
.eamm-confirm-modal .eamm-modal-dialog h2 { margin-top: 0; }
.eamm-modal-dialog h2 { color: var(--eamm-navy); margin: 0 44px 18px 0; }
.eamm-modal-close { background: #f2f4f5; border: 0; border-radius: 9px; color: var(--eamm-muted); font-size: 22px; height: 34px; position: absolute; right: 18px; top: 18px; width: 34px; }
body.eamm-modal-open { overflow: hidden; }

@media (max-width: 1080px) {
	.eamm-protocol-filters .eamm-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.eamm-app-shell, .eamm-app-shell.is-frontend { grid-template-columns: 1fr; }
	.eamm-app-sidebar { box-shadow: 12px 0 35px rgba(10,28,42,.24); left: 0; position: fixed; transform: translateX(-105%); transition: transform .2s ease; width: 252px; }
	.eamm-app-shell.is-frontend .eamm-app-sidebar { height: 100vh; min-height: 0; position: fixed; }
	.eamm-app-shell.is-menu-open .eamm-app-sidebar { transform: translateX(0); }
	.eamm-app-menu-toggle { display: block; }
	.eamm-app-topbar { justify-content: flex-start; padding: 15px 16px; }
	.eamm-app-user { margin-left: auto; }
	.eamm-app-content { padding: 18px 14px 32px; }
}
@media (max-width: 640px) {
	.eamm-app-user b { display: none; }
	.eamm-app-topbar h1 { font-size: 20px; }
	.eamm-protocol-filters .eamm-filter-grid { grid-template-columns: 1fr; }
	.eamm-modal-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.eamm-app-shell *, .eamm-modal-dialog { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
