.efd-dashboard,
.efd-login-required {
	--efd-navy: #17324d;
	--efd-blue: #176b87;
	--efd-green: #2f7d63;
	--efd-pale: #f3f7f6;
	--efd-border: #d8e1df;
	--efd-text: #22313f;
	--efd-muted: #637381;
	color: var(--efd-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
	line-height: 1.65;
}

.efd-dashboard {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 18px;
	box-shadow: 0 14px 40px rgba(23, 50, 77, 0.08);
	margin: 28px auto 60px;
	max-width: 1240px;
	overflow: hidden;
}

.efd-header {
	align-items: center;
	background: var(--efd-navy);
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 24px 32px;
}

.efd-header h1,
.efd-section-heading h2,
.efd-card h3 {
	margin: 0;
}

.efd-statistics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.efd-statistics-card {
	margin-bottom: 0;
}

.efd-statistics-card dl,
.efd-statistics-card dd {
	margin: 0;
}

.efd-statistics-card dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
}

.efd-statistics-card dd {
	font-size: 20px;
	font-weight: 700;
}

.efd-statistics-table-wrap {
	overflow-x: auto;
}

.efd-statistics-table {
	border-collapse: collapse;
	width: 100%;
}

.efd-statistics-table th,
.efd-statistics-table td {
	border-bottom: 1px solid var(--efd-border);
	padding: 9px 12px;
	text-align: left;
}

.efd-statistics-table td {
	min-width: 130px;
}

.efd-statistics-bar {
	background: #d6eee6;
	border-radius: 4px;
	display: inline-block;
	height: 12px;
	margin-right: 10px;
	min-width: 2px;
}

.efd-statistics-ranking {
	padding-left: 24px;
}

.efd-statistics-ranking li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin: 10px 0;
	overflow-wrap: anywhere;
}

.efd-header h1 {
	color: #fff;
	font-size: clamp(24px, 3vw, 34px);
}

.efd-eyebrow {
	color: #91cfc0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 3px;
	text-transform: uppercase;
}

.efd-user {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 4px;
}

.efd-user a {
	color: #d7f2eb;
}

.efd-user-actions {
	display: flex;
	gap: 14px;
}

.efd-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	min-height: 560px;
}

.efd-nav {
	background: var(--efd-pale);
	border-right: 1px solid var(--efd-border);
	padding: 22px 14px;
}

.efd-nav-label {
	color: var(--efd-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 16px 12px 6px;
	text-transform: uppercase;
}

.efd-nav-label:first-child {
	margin-top: 0;
}

.efd-nav a {
	border-radius: 9px;
	color: var(--efd-text);
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
	padding: 10px 12px;
	text-decoration: none;
}

.efd-nav a:hover,
.efd-nav a.is-current {
	background: #fff;
	color: var(--efd-blue);
	box-shadow: 0 2px 10px rgba(23, 50, 77, 0.08);
}

.efd-main,
.efd-editor {
	padding: 30px;
}

.efd-section-heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
}

.efd-heading-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.efd-section-heading h2 {
	color: var(--efd-navy);
	font-size: 26px;
}

.efd-title-with-help {
	align-items: center;
	display: flex;
	gap: 10px;
}

.efd-help-link {
	align-items: center;
	background: var(--efd-blue);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	text-decoration: none;
	width: 28px;
}

.efd-help-link:hover,
.efd-help-link:focus-visible {
	background: var(--efd-navy);
	color: #fff;
}

.efd-manual {
	max-width: 1100px;
}

.efd-manual-intro {
	background: linear-gradient(135deg, #edf8f4, #f7fbff);
	border: 1px solid #cfe5dc;
	border-radius: 14px;
	margin-bottom: 24px;
	padding: 22px 24px;
}

.efd-manual-intro h3,
.efd-manual-intro p {
	margin: 0;
}

.efd-manual-intro h3 {
	color: var(--efd-navy);
	font-size: 20px;
	margin-bottom: 8px;
}

.efd-manual-intro p + p {
	margin-top: 6px;
}

.efd-ai-manual-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--efd-border);
	border-left: 6px solid var(--efd-green);
	border-radius: 12px;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 24px;
	padding: 20px 22px;
}

.efd-ai-manual-card h3,
.efd-ai-manual-card p {
	margin: 0;
}

.efd-ai-manual-card h3 {
	color: var(--efd-navy);
	font-size: 19px;
	margin-bottom: 6px;
}

.efd-ai-manual-card .efd-button {
	flex: 0 0 auto;
}

.efd-manual-toc {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 32px;
}

.efd-manual-toc a {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 12px;
	color: var(--efd-text);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	text-decoration: none;
}

.efd-manual-toc a:hover,
.efd-manual-toc a:focus-visible {
	border-color: var(--efd-green);
	box-shadow: 0 4px 14px rgba(23, 50, 77, 0.08);
}

.efd-manual-toc strong {
	color: var(--efd-navy);
}

.efd-manual-toc span {
	color: var(--efd-muted);
	font-size: 13px;
}

.efd-manual-section {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 14px;
	margin-bottom: 22px;
	padding: 24px;
	scroll-margin-top: 18px;
}

.efd-manual-section > header {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.efd-manual-section > header > span {
	background: var(--efd-navy);
	border-radius: 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 8px;
}

.efd-manual-section h3,
.efd-manual-section header p,
.efd-manual-procedure h4,
.efd-manual-note p {
	margin: 0;
}

.efd-manual-section h3 {
	color: var(--efd-navy);
	font-size: 21px;
}

.efd-manual-section header p {
	color: var(--efd-muted);
	margin-top: 4px;
}

.efd-manual-procedure {
	margin: 18px 0;
}

.efd-manual-related {
	font-size: 13px;
	margin-left: 0.45em;
}

.efd-manual-related a {
	color: var(--efd-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.efd-manual-procedure h4 {
	color: var(--efd-navy);
	font-size: 16px;
}

.efd-manual-procedure ol {
	margin: 10px 0 0;
	padding-left: 24px;
}

.efd-manual-procedure li + li {
	margin-top: 7px;
}

.efd-manual-note {
	background: #eef7fb;
	border-left: 5px solid var(--efd-blue);
	border-radius: 8px;
	margin-top: 18px;
	padding: 14px 16px;
}

.efd-manual-note.is-warning {
	background: #fff5e8;
	border-left-color: #d4831f;
}

.efd-manual-note p {
	margin-top: 4px;
}

.efd-manual-actions {
	margin: 20px 0 0;
}

.efd-manual-back {
	font-size: 13px;
	margin: 18px 0 0;
	text-align: right;
}

.efd-manual-back a {
	color: var(--efd-blue);
}

.efd-button {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 9px;
	color: var(--efd-navy);
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	padding: 10px 18px;
	text-decoration: none;
}

.efd-button-primary {
	background: var(--efd-green);
	border-color: var(--efd-green);
	color: #fff;
}

.efd-button:hover {
	filter: brightness(0.96);
}

.efd-table-wrap {
	border: 1px solid var(--efd-border);
	border-radius: 12px;
	overflow-x: auto;
}

.efd-table {
	border-collapse: collapse;
	font-size: 14px;
	margin: 0;
	width: 100%;
}

.efd-table th,
.efd-table td {
	border-bottom: 1px solid var(--efd-border);
	padding: 14px 12px;
	text-align: left;
	vertical-align: middle;
}

.efd-table th {
	background: #f8faf9;
	color: var(--efd-muted);
	font-size: 12px;
	white-space: nowrap;
}

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

.efd-pagination {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.efd-pagination .page-numbers {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.efd-pagination a,
.efd-pagination .current,
.efd-pagination .dots {
	align-items: center;
	border: 1px solid var(--efd-border);
	border-radius: 8px;
	color: var(--efd-navy);
	display: inline-flex;
	justify-content: center;
	min-height: 38px;
	min-width: 38px;
	padding: 7px 11px;
	text-decoration: none;
}

.efd-pagination a:hover,
.efd-pagination a:focus,
.efd-pagination .current {
	background: var(--efd-green);
	border-color: var(--efd-green);
	color: #fff;
}

.efd-pagination .current {
	font-weight: 700;
}

.efd-pagination .dots {
	border-color: transparent;
}

.efd-sort-guidance {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-left: 4px solid #2271b1;
	background: #eef6fc;
	color: #1d3e57;
}

.efd-sort-guidance-icon {
	display: inline-block;
	margin-right: 5px;
	font-size: 20px;
	font-weight: 700;
	vertical-align: -1px;
}

.efd-sort-column {
	width: 150px;
}

.efd-sort-controls {
	white-space: nowrap;
}

.efd-drag-handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-right: 6px;
	border: 1px solid #8c8f94;
	border-radius: 5px;
	background: #fff;
	color: #50575e;
	cursor: grab;
	font-size: 24px;
	line-height: 1;
	user-select: none;
}

.efd-drag-handle:hover,
.efd-drag-handle:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	color: #2271b1;
	outline: none;
}

.efd-drag-handle:active {
	cursor: grabbing;
}

.efd-order-buttons {
	display: inline-flex;
	gap: 4px;
}

.efd-order-buttons button {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-height: 34px;
	padding: 4px 7px;
	border: 1px solid #8c8f94;
	border-radius: 5px;
	background: #fff;
	color: #2c3338;
	cursor: pointer;
}

.efd-order-buttons button:hover,
.efd-order-buttons button:focus {
	border-color: #2271b1;
	color: #2271b1;
}

.efd-order-buttons button:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.efd-sortable-table tr[data-post-id].is-dragging {
	opacity: .45;
	background: #eef8f2;
}

.efd-actions {
	white-space: nowrap;
}

.efd-actions a {
	color: var(--efd-blue);
	margin-left: 10px;
}

.efd-inline-form {
	display: inline;
	margin: 0 0 0 10px;
}

.efd-link-button {
	background: transparent;
	border: 0;
	color: var(--efd-blue);
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.efd-link-danger {
	color: #a52e2e;
}

.efd-trash-guidance {
	background: #fff8e7;
	border: 1px solid #ead5a2;
	border-radius: 9px;
	color: #72530d;
	font-size: 14px;
	margin: -8px 0 18px;
	padding: 10px 13px;
}

.efd-status {
	border-radius: 999px;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 9px;
	white-space: nowrap;
}

.efd-status-publish {
	background: #dff3ea;
	color: #176447;
}

.efd-status-draft {
	background: #fff0cf;
	color: #865d08;
}

.efd-status-private,
.efd-status-future {
	background: #e7edf5;
	color: #3e5872;
}

.efd-empty {
	color: var(--efd-muted);
	padding: 34px !important;
	text-align: center !important;
}

.efd-page-content-textarea {
	box-sizing: border-box;
	font-family: inherit;
	min-height: 180px;
	width: 100%;
}

.efd-local-sections {
	margin-top: 26px;
}

.efd-local-sections-heading,
.efd-local-section-header {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.efd-local-sections-heading {
	margin-bottom: 14px;
}

.efd-local-sections-heading h3,
.efd-local-section-header h3 {
	margin: 0;
}

.efd-local-section {
	border-left: 5px solid var(--efd-blue);
}

.efd-local-section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.efd-local-section-actions button {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 7px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	padding: 5px 9px;
}

.efd-local-sections-empty {
	background: #f8faf9;
	border: 1px dashed var(--efd-border);
	border-radius: 10px;
	margin: 0 0 20px;
}

.efd-editor-media-button {
	margin: 0 0 8px;
	padding: 7px 12px;
}

.efd-page-editor-form .wp-editor-wrap {
	background: #fff;
}

.efd-page-editor-form .mce-container,
.efd-page-editor-form .mce-container * {
	box-sizing: content-box;
}

.efd-dashboard-board {
	max-width: 1460px;
}

.efd-dashboard-board .efd-layout {
	display: block;
}

.efd-dashboard-board .efd-nav {
	align-items: center;
	border-bottom: 1px solid var(--efd-border);
	border-right: 0;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 10px 18px;
}

.efd-dashboard-board .efd-nav-label {
	flex: 0 0 auto;
	margin: 0 8px 0 16px;
}

.efd-dashboard-board .efd-nav-label:first-child {
	margin-left: 0;
}

.efd-dashboard-board .efd-nav a {
	flex: 0 0 auto;
	margin: 0;
	padding: 8px 11px;
	white-space: nowrap;
}

.efd-board-main {
	min-width: 0;
}

.efd-board-lead {
	color: var(--efd-muted);
	font-size: 13px;
	margin: 4px 0 0;
}

.efd-board-grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.9fr);
}

.efd-board-column {
	background: #f7f9f8;
	border: 1px solid var(--efd-border);
	border-radius: 14px;
	min-width: 0;
	overflow: hidden;
}

.efd-board-column-header,
.efd-board-column-header > div,
.efd-board-composer-header,
.efd-board-composer-header > div {
	align-items: center;
	display: flex;
}

.efd-board-column-header {
	background: #fff;
	border-bottom: 1px solid var(--efd-border);
	justify-content: space-between;
	padding: 15px 17px;
}

.efd-board-column-header > div,
.efd-board-composer-header > div {
	gap: 10px;
}

.efd-board-column-header h3,
.efd-board-composer-header h3 {
	border: 0;
	color: var(--efd-navy);
	font-size: 18px;
	margin: 0;
	padding: 0;
}

.efd-board-column-header > span,
.efd-board-column-header > a {
	color: var(--efd-muted);
	font-size: 12px;
}

.efd-board-step {
	align-items: center;
	background: var(--efd-navy);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 26px;
	justify-content: center;
	width: 26px;
}

.efd-board-search {
	padding: 13px 15px 10px;
}

.efd-board-search label,
.efd-board-library-filters > label:first-child {
	color: var(--efd-muted);
	display: block;
	font-size: 11px;
	font-weight: 800;
	margin-bottom: 5px;
}

.efd-board-search input,
.efd-board-library-filters select {
	background: #fff;
	border: 1px solid #b8c7c3;
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--efd-text);
	font: inherit;
	padding: 9px 11px;
	width: 100%;
}

.efd-board-page-list {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 9px;
	margin: 0 15px 16px;
	max-height: 720px;
	overflow-y: auto;
}

.efd-board-page-accordion {
	border-bottom: 1px solid var(--efd-border);
}

.efd-board-page-accordion:last-of-type {
	border-bottom: 0;
}

.efd-board-page-summary {
	align-items: center;
	color: var(--efd-text);
	cursor: pointer;
	display: flex;
	gap: 9px;
	list-style: none;
	padding: 11px 12px 11px calc(12px + var(--efd-page-depth, 0) * 17px);
}

.efd-board-page-summary::-webkit-details-marker {
	display: none;
}

.efd-board-page-summary:hover,
.efd-board-page-accordion.is-selected > .efd-board-page-summary {
	background: #e9f3f0;
	color: var(--efd-navy);
}

.efd-board-page-accordion.is-selected {
	box-shadow: inset 4px 0 0 var(--efd-green);
}

.efd-board-page-toggle {
	border-bottom: 2px solid #667b75;
	border-right: 2px solid #667b75;
	flex: 0 0 8px;
	height: 8px;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
	width: 8px;
}

.efd-board-page-accordion[open] > .efd-board-page-summary .efd-board-page-toggle {
	transform: rotate(45deg) translate(-2px, -2px);
}

.efd-board-page-label {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.efd-board-page-title {
	font-size: 14px;
	font-weight: 750;
}

.efd-board-page-meta {
	color: var(--efd-muted);
	font-size: 11px;
}

.efd-board-page-panel {
	background: #f7faf9;
	border-top: 1px solid var(--efd-border);
	padding: 13px 14px 15px calc(29px + var(--efd-page-depth, 0) * 17px);
}

.efd-board-page-panel > p {
	color: var(--efd-muted);
	font-size: 12px;
	margin: 0 0 10px;
}

.efd-board-filter-empty {
	color: var(--efd-muted);
	font-size: 13px;
	margin: 0;
	padding: 22px 14px;
	text-align: center;
}

.efd-board-composer {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 8px;
	padding: 14px;
}

.efd-board-composer-header {
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 14px;
}

.efd-board-composer-header p {
	color: var(--efd-muted);
	font-size: 11px;
	font-weight: 700;
	margin: 0;
}

.efd-board-composer-links {
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 5px 12px;
	justify-content: flex-end;
}

.efd-board-form {
	margin: 0;
}

.efd-board-placement-list {
	min-height: 10px;
	padding: 2px;
}

.efd-board-placement {
	grid-template-columns: auto minmax(150px, 1fr) auto;
}

.efd-board-placement .efd-placement-actions {
	justify-content: flex-end;
}

.efd-board-drop-empty {
	border: 2px dashed #a9c3bb;
	margin: 0;
	padding: 30px 16px !important;
}

.efd-board-drop-hint {
	background: #edf7f4;
	border: 2px dashed #8bb9aa;
	border-radius: 10px;
	color: var(--efd-green);
	font-size: 13px;
	font-weight: 800;
	margin-top: 12px;
	padding: 13px;
	text-align: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.efd-board-placement-list.is-library-over + .efd-board-drop-empty,
.efd-board-placement-list.is-library-over ~ .efd-board-drop-hint {
	background: #d9f0e8;
	border-color: var(--efd-green);
}

.efd-board-live {
	color: var(--efd-muted);
	font-size: 12px;
	margin: 10px 0 12px;
}

.efd-board-live[data-state="dirty"] {
	color: #865d08;
	font-weight: 700;
}

.efd-board-live[data-state="warning"] {
	color: #a52e2e;
	font-weight: 700;
}

.efd-board-locked {
	background: #fff8e7;
	border: 1px solid #ead5a2;
	border-radius: 10px;
	padding: 18px;
}

.efd-board-locked p {
	font-size: 13px;
	margin: 4px 0 12px;
}

.efd-board-library {
	position: sticky;
	top: 18px;
}

.efd-board-library-tools {
	background: #f7f9f8;
	border-bottom: 1px solid var(--efd-border);
}

.efd-board-library-filters {
	display: grid;
	gap: 5px 10px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0 15px 13px;
}

.efd-board-library-filters > label:first-child {
	grid-column: 1 / -1;
	margin: 0;
}

.efd-board-check {
	align-items: center;
	display: flex;
	font-size: 12px;
	gap: 5px;
	white-space: nowrap;
}

.efd-board-section-list {
	display: grid;
	gap: 8px;
	max-height: 660px;
	overflow-y: auto;
	padding: 12px;
}

.efd-library-section {
	align-items: center;
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 9px;
	display: grid;
	gap: 8px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 10px;
}

.efd-library-section[draggable="true"] {
	cursor: grab;
}

.efd-library-section.is-dragging {
	opacity: 0.45;
}

.efd-library-drag {
	color: var(--efd-muted);
	font-size: 18px;
	cursor: grab;
	touch-action: none;
	user-select: none;
}

body.efd-library-pointer-dragging,
body.efd-library-pointer-dragging * {
	cursor: grabbing !important;
}

.efd-library-section-main {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.efd-library-section-main > strong {
	font-size: 13px;
	overflow-wrap: anywhere;
}

.efd-library-section-main > span {
	align-items: center;
	color: var(--efd-muted);
	display: flex;
	font-size: 11px;
	gap: 7px;
}

.efd-library-section-main .efd-status {
	font-size: 10px;
	padding: 1px 6px;
}

.efd-library-section-actions {
	display: grid;
	font-size: 11px;
	gap: 4px;
	text-align: center;
}

.efd-library-section-actions button {
	background: #fff;
	border: 1px solid var(--efd-green);
	border-radius: 6px;
	color: var(--efd-green);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 4px 8px;
}

.efd-library-section-actions button:disabled {
	border-color: var(--efd-border);
	color: var(--efd-muted);
	cursor: not-allowed;
}

.efd-board-new-section {
	display: flex;
	margin: 0 12px 14px;
}

[data-board-page][hidden],
[data-library-section][hidden],
.efd-board-filter-empty[hidden] {
	display: none !important;
}

.efd-editor {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1170px;
	width: 100%;
}

.efd-editor .efd-rich-editor,
.efd-editor .wp-editor-wrap,
.efd-editor .wp-editor-container,
.efd-editor .mce-tinymce {
	max-width: 100%;
	width: 100% !important;
}

.efd-editor .mce-toolbar-grp {
	overflow-x: auto;
}

.efd-back {
	color: var(--efd-blue);
	display: inline-block;
	font-size: 14px;
	margin-bottom: 8px;
	text-decoration: none;
}

.efd-card {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 13px;
	margin-bottom: 22px;
	padding: 24px;
}

.efd-card h3 {
	border-bottom: 1px solid var(--efd-border);
	color: var(--efd-navy);
	font-size: 19px;
	margin-bottom: 20px;
	padding-bottom: 12px;
}

.efd-card-heading {
	align-items: flex-start;
	border-bottom: 1px solid var(--efd-border);
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
}

.efd-card-heading h3 {
	border: 0;
	margin: 0;
	padding: 0;
}

.efd-field {
	margin-bottom: 20px;
}

.efd-field:last-child {
	margin-bottom: 0;
}

.efd-field > label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 7px;
}

.efd-field input[type="text"],
.efd-field input[type="url"],
.efd-field input[type="datetime-local"],
.efd-field input[type="file"],
.efd-field select,
.efd-field textarea {
	background: #fff;
	border: 1px solid #b8c7c3;
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--efd-text);
	font: inherit;
	max-width: none;
	padding: 10px 12px;
	width: 100%;
}

.efd-field textarea {
	resize: vertical;
}

.efd-rich-editor .wp-editor-wrap {
	background: #fff;
}

.efd-rich-editor .wp-editor-container {
	border-color: #b8c7c3;
}

.efd-rich-editor .mce-container,
.efd-rich-editor .mce-container * {
	box-sizing: content-box;
}

.efd-page-rich-editor .mce-edit-area iframe {
	min-height: 620px;
}

.efd-heading-target-list {
	display: grid;
	gap: 12px;
}

.efd-heading-target-row {
	background: #f8faf9;
	border: 1px solid var(--efd-border);
	border-left: 5px solid var(--efd-blue);
	border-radius: 9px;
	padding: 14px 16px;
}

.efd-heading-target-row.efd-heading-level-3 {
	margin-left: 28px;
}

.efd-heading-target-row.efd-heading-level-4 {
	margin-left: 56px;
}

.efd-heading-target-title {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.efd-heading-target-title > span {
	background: var(--efd-navy);
	border-radius: 5px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 6px;
}

.efd-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.efd-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.efd-checkbox-grid label,
.efd-confirm {
	font-size: 14px;
}

.efd-confirm {
	background: #fff8e7;
	border: 1px solid #ead5a2;
	border-radius: 8px;
	display: block;
	font-weight: 700;
	margin-top: 18px;
	padding: 12px;
}

.efd-editor-warning {
	margin: 0 0 22px;
}

.efd-usage-notice {
	background: #edf7f4;
	border: 1px solid #bcded4;
	border-radius: 10px;
	margin-bottom: 22px;
	padding: 14px 18px;
}

.efd-usage-notice > span {
	display: block;
	font-size: 13px;
}

.efd-usage-notice ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 8px 0 0;
	padding-left: 20px;
}

.efd-placement-list,
.efd-parts-list {
	display: grid;
	gap: 12px;
}

.efd-placement {
	align-items: center;
	background: #fff;
	border: 1px solid var(--efd-border);
	border-left: 5px solid var(--efd-blue);
	border-radius: 10px;
	display: grid;
	gap: 10px;
	grid-template-columns: auto minmax(180px, 1fr) auto;
	padding: 12px;
	transition: margin 0.2s ease, opacity 0.2s ease;
}

.efd-placement[data-depth="1"] {
	margin-left: 32px;
}

.efd-placement[data-depth="2"] {
	margin-left: 64px;
}

.efd-placement.is-dragging,
.efd-part-card.is-dragging {
	opacity: 0.45;
}

.efd-placement-handle,
.efd-part-handle {
	color: var(--efd-muted);
	cursor: grab;
	font-size: 20px;
}

.efd-placement-main {
	display: grid;
	gap: 3px;
}

.efd-placement-main small {
	color: var(--efd-muted);
}

.efd-level-badge,
.efd-shared-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	margin-right: 7px;
	padding: 2px 7px;
}

.efd-level-badge {
	background: #e4eef5;
	color: var(--efd-navy);
}

.efd-shared-badge {
	background: #e5f5ed;
	color: var(--efd-green);
	margin-left: 8px;
}

.efd-placement-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.efd-placement-actions button,
.efd-move-control button,
.efd-part-header button,
.efd-text-toolbar button {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 6px;
	color: var(--efd-navy);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	padding: 5px 7px;
}

.efd-placement-actions a {
	font-size: 12px;
}

.efd-danger-text {
	color: #a52e2e !important;
}

.efd-move-control {
	display: flex;
	gap: 6px;
	grid-column: 2 / -1;
	justify-content: flex-end;
}

.efd-move-control select {
	font-size: 12px;
	max-width: 240px;
}

.efd-library-add,
.efd-part-add {
	align-items: center;
	background: var(--efd-pale);
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 18px;
	padding: 14px;
}

.efd-library-add label,
.efd-part-add > span {
	font-size: 13px;
	font-weight: 700;
}

.efd-library-add select {
	flex: 1 1 260px;
	max-width: 440px;
}

.efd-placement-empty,
.efd-parts-empty {
	background: var(--efd-pale);
	border-radius: 9px;
	margin: 0;
}

.efd-part-card {
	background: #fbfcfc;
	border: 1px solid var(--efd-border);
	border-radius: 10px;
	overflow: hidden;
}

.efd-part-header {
	align-items: center;
	background: var(--efd-pale);
	display: flex;
	gap: 8px;
	justify-content: space-between;
	padding: 9px 12px;
}

.efd-part-header > strong {
	flex: 1;
}

.efd-part-header > div {
	display: flex;
	gap: 5px;
}

.efd-part-fields {
	padding: 16px;
}

.efd-text-toolbar {
	display: flex;
	gap: 5px;
	margin-bottom: 6px;
}

.efd-current-asset {
	align-items: center;
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 8px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 14px;
	padding: 10px;
}

.efd-current-asset img,
.efd-gallery-current img {
	height: 72px;
	object-fit: cover;
	width: 96px;
}

.efd-gallery-current {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.efd-gallery-current label {
	background: #fff;
	border: 1px solid var(--efd-border);
	border-radius: 7px;
	display: grid;
	font-size: 11px;
	gap: 3px;
	padding: 5px;
}

.efd-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.efd-radio-group label,
.efd-current-file label {
	font-size: 14px;
	font-weight: 400;
}

.efd-current-file {
	align-items: center;
	background: var(--efd-pale);
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	margin-bottom: 9px;
	padding: 10px 12px;
}

.efd-current-file a {
	color: var(--efd-blue);
	overflow-wrap: anywhere;
}

.efd-help {
	color: var(--efd-muted);
	font-size: 12px;
	margin: 5px 0 0;
}

.efd-file-name-warning {
	background: #fff4d8;
	border-left: 4px solid #c18a18;
	color: #62470f;
	font-size: 13px;
	line-height: 1.6;
	margin: 8px 0 0;
	padding: 8px 10px;
}

.efd-required {
	background: #c94040;
	border-radius: 4px;
	color: #fff;
	font-size: 10px;
	margin-left: 4px;
	padding: 2px 5px;
}

.efd-form-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.efd-form-actions .efd-button {
	min-width: 130px;
}

.efd-trash-form {
	border-top: 1px solid var(--efd-border);
	margin-top: 32px;
	padding-top: 20px;
	text-align: right;
}

.efd-trash-form button {
	background: #fff;
	border: 1px solid #b32d2e;
	border-radius: 6px;
	color: #a52e2e;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	min-width: 130px;
	padding: 0.65rem 1rem;
}

.efd-trash-form button:hover,
.efd-trash-form button:focus {
	background: #b32d2e;
	color: #fff;
}

.efd-notice {
	border-left: 5px solid var(--efd-blue);
	margin: 20px 30px 0;
	padding: 12px 16px;
}

.efd-notice-success {
	background: #e5f5ed;
	border-color: var(--efd-green);
}

.efd-notice-warning {
	background: #fff4d8;
	border-color: #c18a18;
}

.efd-notice-error {
	background: #fde7e7;
	border-color: #b63333;
}

.efd-login-required {
	background: #fff;
	border: 1px solid #d8e1df;
	border-radius: 14px;
	margin: 48px auto;
	max-width: 560px;
	padding: 42px;
	text-align: center;
}

html.efd-dashboard-document,
body.efd-dashboard-shell {
	margin: 0;
	min-height: 100%;
	padding: 0;
}

body.efd-dashboard-shell {
	background: #edf2f1;
	color: #22313f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
}

.efd-dashboard-shell *,
.efd-dashboard-shell *::before,
.efd-dashboard-shell *::after {
	box-sizing: border-box;
}

.efd-dashboard-shell button,
.efd-dashboard-shell input,
.efd-dashboard-shell select,
.efd-dashboard-shell textarea {
	font: inherit;
}

.efd-dashboard-skip-link {
	background: #fff;
	color: #17324d;
	left: 16px;
	padding: 10px 14px;
	position: fixed;
	top: -80px;
	z-index: 10000;
}

.efd-dashboard-skip-link:focus {
	top: 12px;
}

.efd-dashboard-shell .efd-dashboard {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	max-width: none;
	min-height: 100vh;
	overflow: visible;
}

.efd-dashboard-shell .efd-header {
	min-height: 88px;
	padding: 17px clamp(20px, 2.5vw, 42px);
	position: sticky;
	top: 0;
	z-index: 100;
}

.efd-dashboard-shell .efd-header h1 {
	font-size: clamp(24px, 2.3vw, 32px);
}

.efd-dashboard-shell .efd-layout,
.efd-dashboard-shell .efd-dashboard-board .efd-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	min-height: calc(100vh - 88px);
}

.efd-dashboard-shell .efd-nav,
.efd-dashboard-shell .efd-dashboard-board .efd-nav {
	align-items: stretch;
	background: #f3f7f6;
	border-bottom: 0;
	border-right: 1px solid var(--efd-border);
	display: block;
	height: calc(100vh - 88px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 22px 14px;
	position: sticky;
	top: 88px;
}

.efd-dashboard-shell .efd-dashboard-board .efd-nav-label,
.efd-dashboard-shell .efd-dashboard-board .efd-nav-label:first-child {
	margin: 16px 12px 6px;
}

.efd-dashboard-shell .efd-dashboard-board .efd-nav-label:first-child {
	margin-top: 0;
}

.efd-dashboard-shell .efd-dashboard-board .efd-nav a {
	margin-bottom: 4px;
	padding: 10px 12px;
	white-space: normal;
}

.efd-dashboard-shell .efd-main,
.efd-dashboard-shell .efd-editor {
	padding: clamp(24px, 2.5vw, 44px);
}

.efd-dashboard-shell .efd-board-grid {
	grid-template-columns: minmax(520px, 1.55fr) minmax(350px, 0.9fr);
}

.efd-dashboard-shell .efd-login-required {
	box-shadow: 0 18px 50px rgba(23, 50, 77, 0.12);
	margin-top: 10vh;
}

@media (max-width: 1250px) {
	.efd-dashboard-shell .efd-board-grid {
		grid-template-columns: 1fr;
	}

	.efd-dashboard-shell .efd-board-library {
		position: static;
	}
}

@media (max-width: 800px) {
	.efd-dashboard {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		margin: 14px 0 40px;
	}

	.efd-header,
	.efd-section-heading {
		align-items: flex-start;
		gap: 14px;
	}

	.efd-heading-actions {
		justify-content: flex-start;
	}

	.efd-layout {
		display: block;
	}

	.efd-nav {
		border-bottom: 1px solid var(--efd-border);
		border-right: 0;
		display: flex;
		overflow-x: auto;
	}

	.efd-nav a {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.efd-main,
	.efd-editor {
		padding: 20px 14px;
	}

	.efd-manual-toc {
		grid-template-columns: 1fr;
	}

	.efd-manual-section,
	.efd-manual-intro {
		padding: 18px 16px;
	}

	.efd-ai-manual-card {
		align-items: stretch;
		flex-direction: column;
		padding: 18px 16px;
	}

	.efd-editor .efd-card {
		padding: 18px 14px;
	}

	.efd-heading-target-row.efd-heading-level-3 {
		margin-left: 12px;
	}

	.efd-heading-target-row.efd-heading-level-4 {
		margin-left: 24px;
	}

	.efd-grid {
		grid-template-columns: 1fr;
	}

	.efd-board-grid {
		grid-template-columns: 1fr;
	}

	.efd-board-library {
		position: static;
	}

	.efd-board-section-list {
		max-height: 480px;
	}

	.efd-board-composer-header {
		align-items: flex-start;
		gap: 10px;
	}

	.efd-board-placement {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.efd-board-placement .efd-placement-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.efd-placement,
	.efd-placement[data-depth="1"],
	.efd-placement[data-depth="2"] {
		grid-template-columns: auto minmax(0, 1fr);
		margin-left: 0;
	}

	.efd-placement[data-depth="1"] {
		margin-left: 14px;
	}

	.efd-placement[data-depth="2"] {
		margin-left: 28px;
	}

	.efd-placement-actions,
	.efd-move-control {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.efd-part-header {
		align-items: flex-start;
	}

	.efd-part-header > div {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.efd-local-sections-heading,
	.efd-local-section-header {
		align-items: stretch;
		flex-direction: column;
	}

	.efd-local-section-actions {
		justify-content: flex-start;
	}

	.efd-table thead {
		display: none;
	}

	.efd-table,
	.efd-table tbody,
	.efd-table tr,
	.efd-table td {
		display: block;
	}

	.efd-table tr {
		border-bottom: 1px solid var(--efd-border);
		padding: 12px;
	}

	.efd-table td {
		border: 0;
		padding: 4px 0;
	}

	.efd-table td::before {
		color: var(--efd-muted);
		content: attr(data-label) "：";
		font-size: 11px;
		font-weight: 700;
	}

	.efd-actions a:first-child {
		margin-left: 0;
	}

	.efd-inline-form:first-child {
		margin-left: 0;
	}

	.efd-current-file {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.efd-dashboard-shell .efd-header {
		min-height: 0;
		position: static;
	}

	.efd-dashboard-shell .efd-layout,
	.efd-dashboard-shell .efd-dashboard-board .efd-layout {
		display: block;
		min-height: 0;
	}

	.efd-dashboard-shell .efd-nav,
	.efd-dashboard-shell .efd-dashboard-board .efd-nav {
		align-items: center;
		border-bottom: 1px solid var(--efd-border);
		border-right: 0;
		display: flex;
		height: auto;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 10px 14px;
		position: static;
	}

	.efd-dashboard-shell .efd-dashboard-board .efd-nav-label,
	.efd-dashboard-shell .efd-dashboard-board .efd-nav-label:first-child {
		margin: 0 8px 0 16px;
	}

	.efd-dashboard-shell .efd-dashboard-board .efd-nav-label:first-child {
		margin-left: 0;
	}

	.efd-dashboard-shell .efd-dashboard-board .efd-nav a {
		margin: 0;
		padding: 8px 11px;
		white-space: nowrap;
	}

	.efd-dashboard-shell .efd-board-grid {
		grid-template-columns: 1fr;
	}
}
