.bmp-dm {
	--bmp-dm-accent: var(--bmp-dm-primary, #7b175d);
	--bmp-dm-accent-contrast: #fff;
	--bmp-dm-text: #202124;
	--bmp-dm-muted: #667085;
	--bmp-dm-border: #dfe3e8;
	--bmp-dm-surface: #fff;
	--bmp-dm-soft: #f6f7f9;
	--bmp-dm-danger: #b42318;
	--bmp-dm-radius: 10px;
	color: var(--bmp-dm-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	position: relative;
	width: 100%;
	min-width: 0;
	container-type: inline-size;
}
.bmp-dm.alignwide, .bmp-dm.alignfull { width: 100%; }
.bmp-dm [hidden] { display: none !important; }
.bmp-dm svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.bmp-dm button { margin: 0; box-shadow: none; line-height: 1.4; }
.bmp-dm button:disabled { opacity: .48; cursor: not-allowed; }
.bmp-dm input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--bmp-dm-accent); }
.bmp-dm--inherit-theme { --bmp-dm-accent: var(--wp--preset--color--primary, var(--bmp-dm-primary, #7b175d)); }
.bmp-dm *, .bmp-dm *::before, .bmp-dm *::after { box-sizing: border-box; }
.bmp-dm .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.bmp-dm button, .bmp-dm input, .bmp-dm select { font: inherit; }
.bmp-dm button { text-transform: none; letter-spacing: normal; }
.bmp-dm--notice { border: 1px solid var(--bmp-dm-border); border-radius: var(--bmp-dm-radius); padding: 24px; background: var(--bmp-dm-surface); }
.bmp-dm__app { border: 1px solid var(--bmp-dm-border); border-radius: var(--bmp-dm-radius); background: var(--bmp-dm-surface); min-height: 540px; overflow: hidden; position: relative; }
.bmp-dm__topbar { align-items: center; flex-wrap: wrap; background: var(--bmp-dm-soft); border-bottom: 1px solid var(--bmp-dm-border); display: flex; gap: 12px; min-height: 76px; padding: 16px; }
.bmp-dm__primary-actions, .bmp-dm__admin-actions { align-items: center; display: flex; gap: 8px; }
.bmp-dm__admin-actions { margin-left: auto; }
.bmp-dm__search-wrap { flex: 1 1 260px; max-width: 520px; margin-left: auto; }
.bmp-dm__search, .bmp-dm select, .bmp-dm__field { appearance: none; background: #fff; border: 1px solid #c9cfd6; border-radius: 7px; color: var(--bmp-dm-text); min-height: 42px; padding: 8px 12px; width: 100%; }
.bmp-dm__search:focus, .bmp-dm select:focus, .bmp-dm__field:focus, .bmp-dm button:focus-visible { border-color: var(--bmp-dm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bmp-dm-accent) 22%, transparent); outline: 0; }
.bmp-dm__button, .bmp-dm__icon-button, .bmp-dm__link-button { align-items: center; background: #fff; border: 1px solid #c9cfd6; border-radius: 7px; color: var(--bmp-dm-text); cursor: pointer; display: inline-flex; font-weight: 600; justify-content: center; min-height: 42px; padding: 8px 14px; text-decoration: none; }
.bmp-dm__button:hover, .bmp-dm__icon-button:hover { border-color: var(--bmp-dm-accent); color: var(--bmp-dm-accent); }
.bmp-dm__button--primary { background: var(--bmp-dm-accent); border-color: var(--bmp-dm-accent); color: var(--bmp-dm-accent-contrast); }
.bmp-dm__button--primary:hover { filter: brightness(.92); color: var(--bmp-dm-accent-contrast); }
.bmp-dm__icon-button { font-size: 20px; height: 42px; padding: 0; width: 42px; }
.bmp-dm__link-button { background: transparent; border: 0; color: var(--bmp-dm-accent); min-height: 34px; padding: 5px 8px; }
.bmp-dm__danger { color: var(--bmp-dm-danger) !important; }
.bmp-dm__tree-toggle { display: none; }
.bmp-dm__selection-bar { align-items: center; background: color-mix(in srgb, var(--bmp-dm-accent) 9%, #fff); border-bottom: 1px solid var(--bmp-dm-border); display: flex; gap: 6px; min-height: 48px; padding: 7px 16px; }
.bmp-dm__selection-bar[hidden] { display: none; }
.bmp-dm__selection-bar strong { margin-right: 12px; }
.bmp-dm__layout { display: grid; grid-template-columns: minmax(220px, 25%) minmax(0, 1fr); min-height: 510px; }
.bmp-dm--trash .bmp-dm__layout { grid-template-columns: minmax(0, 1fr); }
.bmp-dm__sidebar { background: #fafbfc; border-right: 1px solid var(--bmp-dm-border); overflow: auto; padding: 18px 12px; }
.bmp-dm__sidebar-title { color: var(--bmp-dm-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; margin: 0 8px 10px; text-transform: uppercase; }
.bmp-dm__tree ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.bmp-dm__tree > ul { padding-left: 0; }
.bmp-dm__tree li { margin: 1px 0; position: relative; }
.bmp-dm__tree-row { align-items: center; display: flex; min-width: 0; border-radius: 8px; margin: 3px 0; border: 1px solid transparent; }
.bmp-dm__tree-row.is-current { background: color-mix(in srgb, var(--bmp-dm-accent) 12%, white); border-color: color-mix(in srgb, var(--bmp-dm-accent) 30%, white); box-shadow: inset 3px 0 var(--bmp-dm-accent); }
.bmp-dm__tree-row.is-current .bmp-dm__tree-name { color: var(--bmp-dm-accent); font-weight: 700; }
.bmp-dm__tree-expand svg { width: 15px; height: 15px; margin: auto; transition: transform .15s ease; }
.bmp-dm__tree-expand[aria-expanded="true"] svg { transform: rotate(90deg); }
.bmp-dm__tree-expand:disabled { visibility: hidden; }
.bmp-dm__tree-expand { background: transparent; border: 0; color: var(--bmp-dm-muted); cursor: pointer; flex: 0 0 25px; height: 34px; padding: 0; }
.bmp-dm__tree-name { align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--bmp-dm-text); cursor: pointer; display: flex; flex: 1; gap: 7px; min-height: 36px; min-width: 0; padding: 5px 7px; text-align: left; }
.bmp-dm__tree-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmp-dm__tree-name:hover { background: color-mix(in srgb, var(--bmp-dm-accent) 7%, #fff); color: var(--bmp-dm-accent); }
.bmp-dm__tree-icon { flex: 0 0 24px; color: #b58016; }
.bmp-dm__main { min-width: 0; padding: 0 18px 18px; }
.bmp-dm__navigation { align-items: center; border-bottom: 1px solid var(--bmp-dm-border); display: flex; gap: 14px; min-height: 62px; }
.bmp-dm__breadcrumbs { align-items: center; display: flex; flex-wrap: wrap; flex: 1; gap: 4px; min-width: 0; }
.bmp-dm__breadcrumb { background: transparent; border: 0; color: var(--bmp-dm-muted); cursor: pointer; max-width: 190px; overflow: hidden; padding: 5px; text-overflow: ellipsis; white-space: nowrap; }
.bmp-dm__breadcrumb:last-child { color: var(--bmp-dm-text); font-weight: 700; }
.bmp-dm__breadcrumb-separator { color: #98a2b3; }
.bmp-dm__navigation select { min-height: 38px; width: auto; }
.bmp-dm__status { color: var(--bmp-dm-muted); min-height: 31px; padding: 9px 4px 4px; }
.bmp-dm__table-wrap { overflow-x: auto; }
.bmp-dm__table { border: 0; border-collapse: collapse; margin: 0; table-layout: auto; width: 100%; }
.bmp-dm__table th, .bmp-dm__table td { background: transparent; border: 0; border-bottom: 1px solid #eceef1; padding: 11px 9px; text-align: left; vertical-align: middle; }
.bmp-dm__table th { color: var(--bmp-dm-muted); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.bmp-dm__table tbody tr:hover { background: #fafbfc; }
.bmp-dm__check-cell { width: 42px; }
.bmp-dm__actions-col { width: 48px; }
.bmp-dm__date-col { white-space: nowrap; }
.bmp-dm__item-name { align-items: center; background: transparent; border: 0; color: var(--bmp-dm-text); cursor: pointer; display: inline-flex; font-weight: 600; gap: 10px; max-width: 100%; padding: 0; text-align: left; }
.bmp-dm__item-name:hover { color: var(--bmp-dm-accent); }
.bmp-dm__item-icon { align-items: center; background: #f0f3f8; color: #546681; border-radius: 9px; display: inline-flex; flex: 0 0 42px; height: 42px; justify-content: center; }
.bmp-dm__item-icon svg { width: 26px; height: 26px; }
.bmp-dm__item-icon--folder { background: #fff5d9; color: #a57412; }
.bmp-dm__item-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmp-dm__row-menu { position: relative; }
.bmp-dm__row-menu summary { align-items: center; border-radius: 6px; cursor: pointer; display: flex; font-size: 22px; height: 34px; justify-content: center; list-style: none; width: 34px; }
.bmp-dm__row-menu summary::-webkit-details-marker { display: none; }
.bmp-dm__row-menu[open] summary { background: var(--bmp-dm-soft); }
.bmp-dm.bmp-dm--menu-portal { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; width: max-content; max-width: calc(100vw - 16px); overflow: visible; z-index: 2147483000; container-type: normal; }
.bmp-dm__menu-panel { background: #fff; border: 1px solid var(--bmp-dm-border); border-radius: 10px; box-shadow: 0 12px 34px rgba(16,24,40,.2); min-width: 210px; padding: 7px; max-height: calc(100vh - 24px); overflow-y: auto; }
.bmp-dm__menu-panel button { background: transparent; border: 0; border-radius: 5px; color: var(--bmp-dm-text); cursor: pointer; display: block; padding: 8px 10px; text-align: left; width: 100%; }
.bmp-dm__menu-panel button:hover { background: var(--bmp-dm-soft); }
.bmp-dm__empty { color: var(--bmp-dm-muted); padding: 70px 20px; text-align: center; }
.bmp-dm__pagination { align-items: center; display: flex; gap: 12px; justify-content: center; padding: 20px 0 4px; }
.bmp-dm__pagination[hidden] { display: none; }
.bmp-dm__drop-zone { align-items: center; background: color-mix(in srgb, var(--bmp-dm-accent) 12%, rgba(255,255,255,.95)); border: 3px dashed var(--bmp-dm-accent); display: flex; inset: 12px; justify-content: center; position: absolute; z-index: 80; }
.bmp-dm__drop-zone[hidden] { display: none; }
.bmp-dm__dialog { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(16,24,40,.25); color: var(--bmp-dm-text); max-height: min(80vh, 780px); max-width: min(680px, calc(100vw - 30px)); padding: 0; width: 100%; }
.bmp-dm__dialog::backdrop { background: rgba(15,23,42,.48); }
.bmp-dm__dialog form { margin: 0; }
.bmp-dm__dialog header { align-items: center; border-bottom: 1px solid var(--bmp-dm-border); display: flex; justify-content: space-between; padding: 17px 20px; }
.bmp-dm__dialog h2 { font-size: 20px; margin: 0; }
.bmp-dm__dialog-close { background: transparent; border: 0; color: var(--bmp-dm-muted); cursor: pointer; font-size: 28px; line-height: 1; }
.bmp-dm__dialog-body { max-height: 58vh; overflow: auto; padding: 20px; }
.bmp-dm__dialog-footer { align-items: center; border-top: 1px solid var(--bmp-dm-border); display: flex; gap: 9px; justify-content: flex-end; padding: 14px 20px; }
.bmp-dm__form-row { margin-bottom: 16px; }
.bmp-dm__form-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.bmp-dm__help { color: var(--bmp-dm-muted); font-size: 13px; }
.bmp-dm__modal-table { border-collapse: collapse; width: 100%; }
.bmp-dm__modal-table th, .bmp-dm__modal-table td { border-bottom: 1px solid var(--bmp-dm-border); padding: 9px 6px; text-align: left; vertical-align: middle; }
.bmp-dm__modal-table select { min-height: 36px; }
.bmp-dm__toast { background: #101828; border-radius: 7px; bottom: 18px; box-shadow: 0 12px 25px rgba(16,24,40,.25); color: #fff; left: 50%; max-width: calc(100% - 30px); padding: 11px 16px; position: absolute; transform: translateX(-50%); z-index: 100; white-space: pre-line; }
.bmp-dm__toast--error { background: var(--bmp-dm-danger); }
.bmp-dm__loading-row td { color: var(--bmp-dm-muted); padding: 50px 10px; text-align: center; }
.bmp-dm__spinner { animation: bmp-dm-spin .8s linear infinite; border: 3px solid #d0d5dd; border-top-color: var(--bmp-dm-accent); border-radius: 50%; display: inline-block; height: 22px; margin-right: 8px; vertical-align: middle; width: 22px; }
.bmp-dm__activity-entry { border-bottom: 1px solid var(--bmp-dm-border); padding: 11px 0; }
.bmp-dm__activity-entry time { color: var(--bmp-dm-muted); display: block; font-size: 12px; }
.bmp-dm__permission-row { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; margin-bottom: 8px; }
.bmp-dm__button { gap: 8px; }
.bmp-dm__row-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.bmp-dm__row-actions .bmp-dm__icon-button { width: 38px; height: 40px; min-height: 40px; flex-shrink: 0; border-color: transparent; }
.bmp-dm__table { table-layout: fixed; }
.bmp-dm__table th:nth-child(3) { width: 70px; }
.bmp-dm__table th:nth-child(4) { width: 85px; }
.bmp-dm__table th:nth-child(5) { width: 130px; }
.bmp-dm__item-name { width: 100%; }
.bmp-dm--trash .bmp-dm__actions-col { width: 96px; }
.bmp-dm__sidebar { max-height: 75vh; }
.bmp-dm .is-dragging { opacity: .4; }
.bmp-dm [draggable="true"] { cursor: grab; }
.bmp-dm .is-drop-target { outline: 2px solid var(--bmp-dm-accent); outline-offset: -2px; background: color-mix(in srgb, var(--bmp-dm-accent) 15%, #fff) !important; border-radius: 8px; }
.bmp-dm .is-drop-invalid { outline: 2px dashed var(--bmp-dm-danger); outline-offset: -2px; }
.bmp-dm__upload-drop { border: 2px dashed #c9cfd6; border-radius: 12px; background: var(--bmp-dm-soft); padding: 30px 16px; text-align: center; }
.bmp-dm__upload-drop > svg { width: 34px; height: 34px; margin: auto; color: var(--bmp-dm-accent); }
.bmp-dm__upload-list { max-height: 160px; overflow: auto; padding-left: 20px; overflow-wrap: anywhere; }
.bmp-dm__dialog-message { margin: 10px 0 0; white-space: pre-line; }
.bmp-dm__dialog-message:empty { display: none; }
.bmp-dm__group-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bmp-dm-border); }
.bmp-dm__group-row > span { flex: 1; }
.bmp-dm__members { max-height: 300px; overflow: auto; }
.bmp-dm__members label { display: flex; align-items: center; gap: 12px; padding: 9px; overflow-wrap: anywhere; }
.bmp-dm__members input { flex-shrink: 0; }
@keyframes bmp-dm-spin { to { transform: rotate(360deg); } }
@container (max-width: 900px) {
	.bmp-dm__app { min-height: 620px; }
	.bmp-dm__topbar { flex-wrap: wrap; }
	.bmp-dm__tree-toggle { display: inline-flex; }
	.bmp-dm__primary-actions { order: 2; }
	.bmp-dm__search-wrap { flex-basis: calc(100% - 110px); max-width: none; order: 3; }
	.bmp-dm__admin-actions { margin-left: auto; }
	.bmp-dm__layout { grid-template-columns: 1fr; }
	.bmp-dm__sidebar { bottom: 0; box-shadow: 8px 0 25px rgba(16,24,40,.18); left: 0; max-width: min(320px, 88vw); position: absolute; top: 70px; transform: translateX(-105%); transition: transform .2s ease; width: 100%; z-index: 60; }
	.bmp-dm--tree-open .bmp-dm__sidebar { transform: translateX(0); }
	.bmp-dm__main { padding: 0 12px 14px; }
	.bmp-dm__optional-col { display: none; }
}
@container (max-width: 560px) {
	.bmp-dm__topbar { padding: 10px; }
	.bmp-dm__primary-actions { width: 100%; }
	.bmp-dm__primary-actions .bmp-dm__button { flex: 1; }
	.bmp-dm__search-wrap { flex-basis: 100%; }
	.bmp-dm__date-col { display: none; }
	.bmp-dm__navigation { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 0; }
	.bmp-dm__navigation select { width: 100%; }
	.bmp-dm__selection-bar { flex-wrap: wrap; }
	.bmp-dm__permission-row { grid-template-columns: 1fr; }
}
@supports not (container-type: inline-size) {
	@media (max-width: 900px) {
		.bmp-dm__layout { grid-template-columns: 1fr; }
		.bmp-dm__sidebar { display: none; }
		.bmp-dm--tree-open .bmp-dm__sidebar { display: block; }
		.bmp-dm__tree-toggle { display: inline-flex; }
		.bmp-dm__topbar { flex-wrap: wrap; }
		.bmp-dm__optional-col, .bmp-dm__date-col { display: none; }
	}
}
@media (prefers-reduced-motion: reduce) {
	.bmp-dm__sidebar, .bmp-dm__spinner { animation: none; transition: none; }
}
