/* 高度链：--idapu-page-height（JS：视口 − 网站顶栏 − 可选页脚）→ 内层 flex 填满 → 编辑器/播放器固定占满剩余 */
.idapu-workbench-page {
	width: 100%;
	margin: 0;
	background: #fff;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box;
	height: var(--idapu-page-height, calc(100vh - 180px));
	max-height: var(--idapu-page-height, calc(100vh - 180px));
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;

}

.idapu-workbench {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 0;
	border-radius: 0;
}

.idapu-workbench-inner {
	padding: 0;
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.idapu-workbench,
.idapu-workbench input,
.idapu-workbench textarea,
.idapu-workbench select,
.idapu-workbench button {
	font-size: 13px;
	line-height: 1.45;
}

.idapu-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
	align-items: center;
}

.idapu-toolbar-main {
	flex-shrink: 0;
	min-height: 42px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 3px 8px;
}

.idapu-toolbar-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.idapu-toolbar-group-right {
	margin-left: auto;
}

.idapu-menu-divider {
	width: 1px;
	height: 20px;
	background: #d1d5db;
}

.idapu-toolbar .wpcom-btn.btn-primary.btn-xs {
	background: transparent;
	color: #111827;
	border: 0;
	box-shadow: none;
	border-radius: 4px;
	padding: 4px 6px;
	font-weight: 500;
}

.idapu-toolbar .wpcom-btn.btn-primary.btn-xs:hover {
	background: #eff6ff;
	color: #2563eb;
}

.idapu-toolbar .wpcom-btn.btn-primary.btn-xs:active {
	transform: translateY(1px);
}

.idapu-toolbar .wpcom-btn.btn-primary.btn-xs.is-disabled,
.idapu-operation-menu .wpcom-btn.btn-primary.btn-xs.is-disabled,
.idapu-modal .wpcom-btn.btn-primary.btn-xs.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}

.idapu-toolbar .wpcom-btn.btn-primary.btn-xs.is-active {
	background: #dbeafe;
	color: #1d4ed8;
}

.idapu-workbench.is-access-restricted [data-action].is-restricted-action {
	position: relative;
}

.idapu-workbench.is-access-restricted [data-action].is-restricted-action::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ef4444;
}

.idapu-toolbar [data-action='operation-menu'].is-active {
	background: #dbeafe;
	color: #1d4ed8;
}

.idapu-toast-host {
	position: fixed;
	top: 56px;
	right: 14px;
	z-index: 12000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.idapu-toast {
	min-width: 180px;
	max-width: 360px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, .08);
	background: #111827;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
	opacity: 0;
	transform: translateY(-6px);
	transition: all .18s ease;
}

.idapu-toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

.idapu-toast.is-success {
	background: #166534;
}

.idapu-toast.is-warning {
	background: #92400e;
}

.idapu-toast.is-danger {
	background: #991b1b;
}

.idapu-top-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: 38px;
	min-height: 32px;
}

.idapu-top-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

.idapu-top-btn span:last-child {
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .1px;
}

/* biuAI 顶栏入口 + 测试角标 */
.idapu-biuai-btn {
	position: relative;
	overflow: visible;
}
.idapu-biuai-btn .idapu-biuai-beta-tag {
	position: absolute;
    top: -1px;
    right: -12px;
    z-index: 2;
    font-size: 8px;
    line-height: 1.15;
    padding: 2px 5px;
    border-radius: 8px;
    background: #e60012;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0;
    pointer-events: none;
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}
.idapu-biuai-intro {
	margin: 0 0 10px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}
.idapu-biuai-progress {
	margin: 10px 0 0;
	font-size: 13px;
	color: #0f172a;
	min-height: 1.35em;
}

.idapu-biuai-quota {
	margin: 8px 0 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
	min-height: 1.2em;
}

/* biuAI 后台任务条（关弹窗后仍可见） */
.idapu-biuai-task-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: #eff6ff;
	border-bottom: 1px solid #bfdbfe;
	flex-shrink: 0;
}
.idapu-biuai-task-bar[hidden] {
	display: none !important;
}
.idapu-biuai-task-copy {
	flex: 1;
	min-width: 0;
}
.idapu-biuai-task-line1 {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}
.idapu-biuai-task-line2 {
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
	margin-top: 3px;
}
.idapu-biuai-task-spinner {
	flex-shrink: 0;
	font-size: 22px;
	width: 22px;
	height: 22px;
	line-height: 1;
	color: #2563eb;
	display: inline-block;
}
.idapu-biuai-task-spinner.is-spinning {
	animation: idapu-biuai-spin 0.85s linear infinite;
}
@keyframes idapu-biuai-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.idapu-operation-menu {
	display: none;
	position: absolute;
	top: 52px;
	left: 8px;
	z-index: 60;
	min-width: 168px;
	max-width: min(240px, calc(100vw - 32px));
}

.idapu-operation-menu.is-open {
	display: block;
	background: #000;
	border-radius: 8px;
	padding: 6px 0;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.idapu-operation-menu.is-open::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 18px;
	width: 10px;
	height: 10px;
	background: #000;
	transform: rotate(45deg);
}

.idapu-operation-menu .wpcom-btn.btn-primary.btn-xs {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	padding: 8px 12px;
	font-weight: 500;
}

.idapu-operation-menu .wpcom-btn.btn-primary.btn-xs:hover {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}


.idapu-my-scores-close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.idapu-my-scores-close-btn:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.idapu-my-scores-close-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.idapu-my-scores-body {
	max-height: min(62vh, 520px);
	overflow: auto;
	/* border-radius: 8px; */
}

.idapu-my-scores-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.idapu-my-scores-table th,
.idapu-my-scores-table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
	vertical-align: middle;
	text-align: left;
}

.idapu-my-scores-table th {
	background: #f8fafc;
	font-weight: 600;
}

.idapu-my-scores-empty {
	padding: 16px 12px;
	color: #6b7280;
	text-align: center;
}

.idapu-status-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.5;
	margin-left: 8px;
}

.idapu-status-tag.is-draft {
	background: #e0f2fe;
	color: #0369a1;
}

.idapu-status-tag.is-pending {
	background: #fef3c7;
	color: #92400e;
}

.idapu-status-tag.is-publish {
	background: #dcfce7;
	color: #166534;
}

.idapu-my-scores-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.idapu-my-scores-row-actions .wpcom-btn.btn-primary.btn-xs {
	padding: 4px 10px;
	background: #fff;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: none;
}

.idapu-my-scores-row-actions .wpcom-btn.btn-primary.btn-xs:hover {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #93c5fd;
}

.idapu-my-scores-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.idapu-my-scores-footer .wpcom-btn.btn-primary.btn-xs {
	padding: 4px 10px;
	background: #fff;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: none;
}

.idapu-my-scores-footer .wpcom-btn.btn-primary.btn-xs:hover {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #93c5fd;
}

.idapu-grammar-panel {
	display: none;
	position: absolute;
	top: 43px;
	left: 8px;
	z-index: 35;
	width: min(980px, calc(100vw - 40px));
	max-height: min(76vh, 720px);
	border: 1px solid rgba(15, 23, 42, .12);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
	overflow: hidden;
}

.idapu-grammar-panel.is-open {
	display: block;
}

.idapu-grammar-panel-head {
	padding: 8px 10px 7px;
	border-bottom: 1px solid rgba(148, 163, 184, .22);
	background: #f8fafc;
}

.idapu-grammar-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.idapu-grammar-search {
	flex: 1 1 auto;
	min-height: 34px;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, .4);
	padding: 7px 10px;
	background: #fff;
}

.idapu-grammar-recent {
	flex: 0 0 auto;
	display: flex;
	gap: 0;
	max-width: 52%;
	overflow-x: auto;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	align-items: center;
}

.idapu-grammar-recent-label {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f1f5f9;
	border: 1px solid rgba(148, 163, 184, .35);
	color: #475569;
	margin-right: 6px;
}

.idapu-grammar-recent-empty {
	color: #94a3b8;
}

.idapu-grammar-recent-item {
	border: 0;
	background: transparent;
	color: #2563eb;
	padding: 0;
	margin: 0;
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
}

.idapu-grammar-recent-item:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.idapu-grammar-recent-sep {
	color: #94a3b8;
	padding: 0 6px;
}

.idapu-grammar-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
}

.idapu-grammar-tab {
	border: 1px solid rgba(148, 163, 184, .35);
	border-radius: 999px;
	background: #fff;
	color: #334155;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.idapu-grammar-tab.is-active {
	background: #0f172a;
	color: #fff;
	border-color: #0f172a;
}

.idapu-grammar-panel-body {
	display: grid;
	grid-template-columns: 380px 1fr;
	min-height: 420px;
	max-height: calc(min(76vh, 720px) - 46px);
}

.idapu-grammar-list-wrap {
	border-right: 1px solid rgba(148, 163, 184, .2);
	background: #fff;
	overflow: auto;
}

.idapu-grammar-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.idapu-grammar-table {
	min-width: 100%;
}

.idapu-grammar-row {
	display: grid;
	grid-template-columns: 1.2fr 1.6fr 1.6fr 1fr;
	gap: 8px;
	align-items: center;
}

.idapu-grammar-row>div {
	padding: 8px 10px;
	min-width: 0;
	text-align: left;
	font-size: 12px;
	color: #334155;
	white-space: normal;
	word-break: break-word;
	line-height: 1.45;
}

.idapu-grammar-row-head {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f8fafc;
	border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.idapu-grammar-row-head>div {
	font-size: 12px;
	color: #0f172a;
	font-weight: 700;
}

.idapu-grammar-row-item {
	width: 100%;
	border: 0;
	border-bottom: 1px solid rgba(148, 163, 184, .16);
	background: #fff;
	cursor: pointer;
	padding: 0;
}

.idapu-grammar-row-item.is-active {
	background: #eff6ff;
}

.idapu-grammar-cell-code {
	font-family: Menlo, Consolas, Monaco, monospace;
	color: #0f172a !important;
}

.idapu-grammar-preview-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	background: #fcfdff;
	overflow: auto;
}

.idapu-grammar-preview-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.idapu-grammar-preview-desc {
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
}

.idapu-grammar-preview-code {
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font-family: Menlo, Consolas, Monaco, monospace;
	font-size: 12px;
	white-space: pre-wrap;
}

.idapu-grammar-alpha-host {
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 8px;
	background: #fff;
	min-height: 196px;
	height: 240px;
	overflow: auto;
}

.idapu-grammar-alpha-tip {
	min-height: 18px;
	font-size: 12px;
	color: #b45309;
}

.idapu-grammar-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: auto;
	padding-top: 2px;
}

.idapu-grammar-actions .wpcom-btn.btn-primary.btn-xs {
	min-width: 92px;
	min-height: 34px;
	border-radius: 8px;
	font-size: 13px;
}

.idapu-grammar-actions .idapu-btn-confirm {
	background: #111827 !important;
	border: 1px solid #111827 !important;
	color: #fff !important;
}

.idapu-grammar-actions .idapu-btn-cancel {
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-drafts {
	width: 100%;
	margin-top: 8px;
	font-size: 12px;
}

.idapu-draft-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 6px;
	margin-bottom: 6px;
	background: #fff;
}

.idapu-draft-item small {
	color: #888;
}

.idapu-subpanel {
	display: none;
}

.idapu-subpanel-item {
	display: none;
	font-size: 13px;
	color: #566;
}

.idapu-subpanel-item.is-active {
	display: block;
}

.idapu-subpanel-item strong {
	display: block;
	color: #334;
	margin-bottom: 4px;
}

.idapu-layout {
	--idapu-split-ratio: 50%;
	--idapu-split-ratio-v: 50%;
	display: grid;
	grid-template-columns: minmax(280px, var(--idapu-split-ratio)) 8px minmax(280px, 1fr);
	grid-template-rows: minmax(0, 1fr);
	gap: 0;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	height: 100%;
	max-height: 100%;
}

.idapu-layout.is-vertical {
	grid-template-columns: 1fr;
	grid-template-rows: minmax(180px, var(--idapu-split-ratio-v)) 8px minmax(0, 1fr);
}

.idapu-panel {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: #fff;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.idapu-layout,
.idapu-panel,
.idapu-panel-player,
.idapu-panel-player .idapu-embed-root,
.idapu-panel-player .idapu-embed-root .at-wrap,
.idapu-panel-player .idapu-embed-root .idapu-alpha-host {
	min-width: 0;
}

.idapu-panel-editor {
	border-right: 0;
	background: #fffae8;
	min-height: 0;
}

.idapu-panel-player {
	border-left: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

/*
 * AlphaTab HTML 光标：createCursors() 只设置定位与 transform，不设置填充色；
 * 官方 Web 示例会单独引入主题 CSS；iframe 内若无背景，缩放后的空 div 完全透明。
 */
.idapu-panel-player .at-cursor-bar {
	background: rgba(173, 173, 173, 0.15);
}

.idapu-panel-player .at-cursor-beat {
	background: rgba(38, 139, 255, 0.85);
	border-radius: 3px;
}


.idapu-splitter {
	background: #e5e7eb;
	position: relative;
	cursor: col-resize;
}

.idapu-splitter::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 2px;
	height: 28px;
	background: #94a3b8;
	border-radius: 999px;
}

.idapu-layout.is-vertical .idapu-splitter {
	cursor: row-resize;
}

.idapu-layout.is-vertical .idapu-splitter::before {
	width: 28px;
	height: 2px;
}

.idapu-panel-title,
.idapu-panel-editor .idapu-panel-title,
.idapu-panel-player .idapu-panel-title {
	display: none !important;
}

.idapu-config {
	border: 1px solid #eef2f7;
	border-radius: 6px;
	padding: 8px;
	margin-bottom: 8px;
	background: #fafafa;
}

.idapu-config-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.idapu-config-grid label,
.idapu-config-block {
	display: block;
	font-size: 12px;
	color: #666;
}

.idapu-config-grid .is-input,
.idapu-config-block .is-input {
	margin-top: 4px;
}

.idapu-config-block {
	margin-top: 8px;
}

.idapu-config .is-input {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	min-height: 34px;
	padding: 6px 8px;
}

.idapu-panel-editor #idapu-title {
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 4px;
	background: #fff;
	padding: 7px 9px;
	margin-bottom: 6px;
}

.idapu-editor-wrap {
	position: relative;
	flex: 1 1 0%;
	min-height: 0;
	border: 0;
	background: #e1f0ff;
	overflow: hidden;
	display: grid;
	grid-template-columns: 46px 1fr;
	align-items: stretch;
}

.idapu-editor-main {
	position: relative;
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.idapu-autocomplete-switcher-wrap {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 6;
}

.idapu-autocomplete-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(148, 163, 184, .45);
	user-select: none;
}

.idapu-autocomplete-switcher input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.idapu-autocomplete-switcher-ui {
	position: relative;
	width: 30px;
	height: 16px;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background .12s ease;
}

.idapu-autocomplete-switcher-ball {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(2, 6, 23, .3);
	transition: transform .12s ease;
}

.idapu-autocomplete-switcher input:checked + .idapu-autocomplete-switcher-ui {
	background: #e60012;
}

.idapu-autocomplete-switcher input:checked + .idapu-autocomplete-switcher-ui .idapu-autocomplete-switcher-ball {
	transform: translateX(14px);
}

.idapu-autocomplete-switcher-label {
	font-size: 12px;
	line-height: 1;
	color: #334155;
	font-weight: 600;
}

/* 与 #idapu-editor 同字号、同行高，否则 scrollTop 同步后行号与正文会错位（常见差约 2 行） */
.idapu-editor-gutter {
	margin: 0;
	padding: 10px 6px 10px 0;
	border-right: 1px solid #e2e8f0;
	background: #f6f8fb;
	color: #9aa7b8;
	text-align: right;
	font-family: Consolas, Monaco, monospace;
	font-size: 14px;
	line-height: 1.8;
	overflow: hidden;
	user-select: none;
}

.idapu-editor-gutter .ln {
	display: block;
	min-height: 1.8em;
}

#idapu-editor-highlight,
#idapu-editor {
	position: absolute;
	inset: 0;
	flex: 1;
	min-height: 0;
	width: 100%;
	margin: 0;
	padding: 10px 11px;
	border: 0;
	border-radius: 0;
	font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
	font-size: 14px;
	line-height: 1.8;
	white-space: pre;
	overflow: auto;
}

#idapu-editor-highlight {
	color: #111827;
	pointer-events: none;
	background: transparent;
	z-index: 1;
}

#idapu-editor {
	resize: none;
	box-sizing: border-box;
	background: transparent;
	color: transparent;
	caret-color: #111827;
	text-shadow: 0 0 0 #111827;
	z-index: 2;
}

.idapu-autocomplete-panel {
	position: absolute;
	top: 36px;
	left: 12px;
	width: min(420px, calc(100% - 20px));
	max-height: min(260px, 40vh);
	overflow: auto;
	background: rgba(255, 255, 255, .98);
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .15);
	z-index: 7;
	display: none;
}

.idapu-autocomplete-panel.is-open {
	display: block;
}

.idapu-autocomplete-item {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid rgba(226, 232, 240, .75);
	cursor: pointer;
}

.idapu-autocomplete-item:last-child {
	border-bottom: 0;
}

.idapu-autocomplete-item:hover,
.idapu-autocomplete-item.is-active {
	background: #eff6ff;
}

.idapu-autocomplete-item-code {
	font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
	font-size: 12px;
	color: #0f172a;
	font-weight: 700;
}

.idapu-autocomplete-item-desc {
	font-size: 11px;
	color: #64748b;
	line-height: 1.35;
	margin-top: 2px;
}

.idapu-autocomplete-hit {
	background: rgba(250, 204, 21, .35);
	color: #111827;
	padding: 0 1px;
	border-radius: 2px;
}

#idapu-editor[readonly] {
	background: #f8fafc;
	color: #475569;
	caret-color: transparent;
	text-shadow: none;
}

.idapu-editor-main:has(#idapu-errors:not(:empty)) #idapu-editor {
	padding-bottom: 72px;
}

/* 与 textarea 同底内边距，避免错误条出现时高亮层与正文可滚动高度不一致 */
.idapu-editor-main:has(#idapu-errors:not(:empty)) #idapu-editor-highlight {
	padding-bottom: 72px;
}

#idapu-editor:focus {
	outline: none !important;
	box-shadow: none !important;
}

.idapu-editor-wrap:focus-within {
	outline: none !important;
	box-shadow: none !important;
}

.idapu-workbench.is-license-blocked .idapu-editor-wrap:focus-within {
	box-shadow: none !important;
}

.idapu-license-block-overlay {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 40;
	pointer-events: none;
}

.idapu-license-block-card {
	max-width: 440px;
	background: rgba(15, 23, 42, .92);
	color: #fff;
	border-radius: 10px;
	padding: 12px 14px;
	box-shadow: 0 10px 24px rgba(2, 6, 23, .35);
}

.idapu-license-block-card h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
}

.idapu-license-block-card p {
	margin: 4px 0;
	font-size: 12px;
	line-height: 1.5;
	color: #dbeafe;
}

#idapu-editor::selection {
	background: rgba(59, 130, 246, .22);
	color: transparent;
}

.idapu-editor-highlight .tok-meta {
	color: #2563eb;
	font-weight: 600;
}

.idapu-editor-highlight .tok-track {
	color: #0f766e;
}

.idapu-editor-highlight .tok-lyric {
	color: #7c3aed;
}

.idapu-editor-highlight .tok-directive {
	color: #0f766e;
	font-weight: 600;
}

.idapu-editor-highlight .tok-bar {
	color: #a16207;
}

.idapu-editor-highlight .tok-meta-key {
	color: #2563eb;
	font-weight: 600;
}

.idapu-editor-highlight .tok-track-key {
	color: #0f766e;
	font-weight: 700;
}

.idapu-editor-highlight .tok-lyric-key {
	color: #7c3aed;
	font-weight: 700;
}

.idapu-editor-highlight .tok-directive-key {
	color: #0f766e;
	font-weight: 700;
}

.idapu-editor-highlight .tok-line {
	display: block;
	min-height: 1.8em;
}

.idapu-editor-highlight .tok-line.empty::after {
	content: " ";
}

.idapu-editor-highlight .tok-line.tok-caret-line {
	box-shadow: inset 3px 0 0 rgba(33, 139, 255, 0.85);
	background: rgba(208, 219, 229, 0.85);
}

.idapu-editor-highlight .tok-line.tok-error {
	border-bottom: 1px solid rgba(220, 38, 38, .38);
	background-color: rgba(220, 38, 38, .12);
}

.idapu-editor-highlight .tok-line.tok-warning {
	border-bottom: 1px solid rgba(245, 158, 11, .35);
	background-color: rgba(245, 158, 11, .12);
}

.idapu-errors {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 4;
	max-width: min(560px, calc(100% - 16px));
	margin: 0;
	font-size: 12px;
	color: #b91c1c;
	max-height: min(120px, 32vh);
	overflow: auto;
	border: 1px solid rgba(185, 28, 28, .18);
	background: rgba(255, 255, 255, .97);
	border-radius: 6px;
	padding: 5px 6px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .1);
	pointer-events: auto;
}

.idapu-errors:empty {
	display: none;
}

.idapu-errors .item {
	padding: 4px 6px;
	border-left: 3px solid #ef4444;
	background: #fff6f6;
	margin-bottom: 3px;
	border-radius: 4px;
}

.idapu-errors .item:last-child {
	margin-bottom: 0;
}

.idapu-panel-player .idapu-embed-root {
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}

.idapu-panel-player .idapu-embed-root .at-wrap {
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
}

.idapu-panel-player .idapu-embed-root .idapu-alpha-host {
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
	display: block;
}

.idapu-panel-player .idapu-embed-root.is-player-scroll-vertical,
.idapu-panel-player .idapu-embed-root.is-player-scroll-vertical .at-wrap {
	overflow-y: auto;
	overflow-x: hidden;
}

.idapu-panel-player .idapu-embed-root.is-player-scroll-horizontal,
.idapu-panel-player .idapu-embed-root.is-player-scroll-horizontal .at-wrap {
	overflow-x: auto;
	overflow-y: hidden;
}

.idapu-panel-player .idapu-embed-root .idapu-alpha-host .at-cursor-bar,
.idapu-panel-player .idapu-embed-root .idapu-alpha-host .at-cursor-beat,
.idapu-panel-player .idapu-embed-root .idapu-alpha-host .at-cursor,
.idapu-panel-player .idapu-embed-root .idapu-alpha-host [class*="cursor"] {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

.idapu-small-meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
}

.idapu-player-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 12px;
	color: #666;
	background: #f8fafc;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 4px;
	padding: 6px;
}

.idapu-player-controls label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.idapu-player-controls input[type="range"] {
	width: 120px;
}

.idapu-player-state {
	margin-left: auto;
	padding: 1px 7px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, .12);
	background: #eef2ff;
	color: #3730a3;
	font-size: 12px;
	line-height: 1.5;
}

.idapu-player-progress {
	margin-bottom: 6px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 4px;
	padding: 6px;
}

.idapu-player-progress-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	cursor: pointer;
}

.idapu-player-progress-bar i {
	display: block;
	height: 100%;
	width: 0%;
	background: #3b82f6;
	transition: width .12s linear;
}

.idapu-player-ab {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 4px;
	padding: 6px;
}

.idapu-player-ab .idapu-small-meta {
	margin: 0;
}

.idapu-player-ab .wpcom-btn.btn-primary.btn-xs {
	padding: 4px 8px;
}

.idapu-panel-player #idapu-player-meta {
	background: #f8fafc;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 4px;
	padding: 5px 7px;
}

.idapu-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
	z-index: 10100;
}

.idapu-modal.is-open {
	display: flex;
}

.idapu-modal-card {
	width: min(92vw, 520px);
	background: #fff;
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .12);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
}

#idapu-new-score-modal .idapu-modal-card,
#idapu-header-modal .idapu-modal-card {
	width: min(92vw, 640px);
}

.idapu-modal-card h4 {
	margin: 0;
	padding: 12px 12px;
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
	font-size: 15px;
	font-weight: 600;
	color: #e60012;
}

.idapu-access-hint-message {
	margin: 10px 12px 6px;
	color: #374151;
	line-height: 1.7;
	font-size: 13px;
}

.idapu-access-hint-allow {
	margin: 0 12px 10px;
	padding: 8px 10px;
	border: 1px solid #fde68a;
	background: #fffbeb;
	color: #92400e;
	border-radius: 8px;
	font-size: 12px;
}

.idapu-modal-card label {
	display: block;
	margin: 7px 12px;
	font-size: 12px;
	color: #475569;
}

.idapu-modal-card .idapu-label {
	display: inline-block;
	margin-bottom: 6px;
	color: #334155;
}

.idapu-required {
	color: #dc2626;
	font-weight: 700;
}

.idapu-form-section-title {
	grid-column: 1 / -1;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	margin: 2px 0 8px;
	padding-left: 2px;
}

.idapu-form-divider {
	grid-column: 1 / -1;
	height: 1px;
	background: rgba(148, 163, 184, .28);
	margin: 2px 0;
}

.idapu-modal-form {
	max-height: min(66vh, 680px);
	overflow: auto;
	padding: 10px 14px 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
}

.idapu-modal-form>label,
.idapu-modal-form>.idapu-modal-grid {
	margin: 0;
	grid-column: 0;
}

.idapu-modal-form>.idapu-modal-grid {
	margin: 0;
}

.idapu-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	margin: 0;
}

.idapu-modal-grid label {
	margin: 0;
}

.idapu-modal-card .is-input {
	margin-top: 0;
	border: 1px solid rgba(148, 163, 184, .4);
	border-radius: 8px;
	min-height: 36px;
	padding: 7px 10px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.idapu-modal-card select.is-input {
	-webkit-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #64748b 50%),
		linear-gradient(135deg, #64748b 50%, transparent 50%),
		linear-gradient(to right, #e2e8f0, #e2e8f0);
	background-position:
		calc(100% - 16px) calc(50% - 2px),
		calc(100% - 11px) calc(50% - 2px),
		calc(100% - 32px) 50%;
	background-size: 6px 6px, 6px 6px, 1px 18px;
	background-repeat: no-repeat;
	padding-right: 36px;
	color: #0f172a;
	font-weight: 700;
}

.idapu-modal-card select.is-input:focus {
	background-image:
		linear-gradient(45deg, transparent 50%, #1e293b 50%),
		linear-gradient(135deg, #1e293b 50%, transparent 50%),
		linear-gradient(to right, #cbd5e1, #cbd5e1);
}

.idapu-modal-card select.is-input option {
	color: #1f2937;
	background: #fff;
	font-weight: 500;
}

.idapu-modal-card select.is-input option:checked,
.idapu-modal-card select.is-input option[selected] {
	color: #fff;
	background: #111827;
	font-weight: 700;
}

.idapu-modal-card .is-input:focus {
	border-color: rgba(37, 99, 235, .55);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
	outline: none;
}

.idapu-help-lines {
	margin-top: 4px;
	padding: 7px 9px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
	color: #334155;
	font-size: 12px;
	line-height: 1.5;
}

.idapu-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 10px 14px 12px;
	border-top: 1px solid rgba(15, 23, 42, .08);
	background: #f8fafc;
}

.idapu-modal-actions .wpcom-btn.btn-primary.btn-xs {
	min-width: 92px;
	border-radius: 8px;
	min-height: 34px;
	font-size: 13px;
}

.idapu-modal-actions .idapu-btn-confirm {
	background: #111827 !important;
	border: 1px solid #111827 !important;
	color: #fff !important;
}

.idapu-modal-actions .idapu-btn-cancel {
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-modal-actions [data-action*="confirm"],
.idapu-modal-actions [data-action*="save"],
.idapu-modal-actions [data-action*="publish"],
.idapu-modal-actions [data-action*="insert"],
.idapu-modal-actions [data-action*="update"] {
	background: #111827 !important;
	border: 1px solid #111827 !important;
	color: #fff !important;
}

.idapu-modal-actions [data-action*="cancel"],
.idapu-modal-actions [data-action*="close"] {
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-modal-card-wide {
	width: min(92vw, 760px);
}

.idapu-modal-card-compact {
	width: min(92vw, 560px) !important;
}

/* 导入 GP：与「新增轨道」等弹窗同一套 form 栅格，说明/状态占满行 */
.idapu-modal-form > .idapu-gp-import-hint {
	grid-column: 1 / -1;
	margin: -4px 0 2px;
	padding-left: 2px;
	font-size: 12px;
	line-height: 1.55;
	color: #64748b;
	font-weight: 400;
}

.idapu-modal-form > .idapu-gp-import-hint strong {
	color: #475569;
	font-weight: 600;
}

.idapu-modal-form > label.idapu-gp-import-file-label {
	grid-column: 1 / -1;
}

.idapu-modal-form > .idapu-gp-import-progress-wrap {
	grid-column: 1 / -1;
	margin: 6px 0 2px;
	padding-left: 2px;
}

.idapu-gp-import-progress-track {
	height: 6px;
	border-radius: 3px;
	background: #e2e8f0;
	overflow: hidden;
}

.idapu-gp-import-progress-bar {
	height: 100%;
	width: 0%;
	border-radius: 3px;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	transition: width 0.2s ease-out;
}

.idapu-modal-form > .idapu-gp-import-status {
	grid-column: 1 / -1;
	margin: 2px 0 0;
	padding-left: 2px;
	font-size: 12px;
	line-height: 1.45;
	color: #334155;
	min-height: 1.2em;
}

.idapu-track-modal-body {
	display: grid;
	grid-template-columns: 355px 1fr;
	gap: 12px;
	padding: 18px 12px 18px;
}

.idapu-track-modal-left label,
.idapu-track-modal-right label {
	margin-left: 0;
	margin-right: 0;
}

.idapu-track-modal-right {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	align-content: start;
	max-width: 390px;
}

.idapu-track-modal-right .idapu-form-section-title {
	margin-top: 0;
	margin-bottom: 2px;
}

.idapu-track-list {
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 8px;
	max-height: 320px;
	overflow: auto;
	margin: 0 0 6px;
	background: #fff;
}

.idapu-track-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(148, 163, 184, .18);
	font-size: 11px;
}

.idapu-track-item.is-active {
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.idapu-track-item.is-track-hidden {
	opacity: 0.82;
}

.idapu-track-item-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex-wrap: nowrap;
}

.idapu-track-item-row .drag {
	margin-left: auto;
	flex-shrink: 0;
	color: #94a3b8;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.idapu-track-item-row .drag:active {
	cursor: grabbing;
}

.idapu-track-vis-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, .45);
	border-radius: 7px;
	background: #fff;
	color: #475569;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	flex-shrink: 0;
}

.idapu-track-vis-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}

.idapu-track-vis-btn.is-off {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.idapu-track-vis-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.idapu-track-vol-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding-left: 34px;
	min-width: 0;
}

.idapu-track-vol-label {
	flex: 0 0 auto;
	font-size: 10px;
	color: #64748b;
	letter-spacing: 0.02em;
}

.idapu-track-vol-range {
	flex: 1;
	min-width: 0;
	height: 8px;
	border-radius: 999px;
	accent-color: #2563eb;
	cursor: ew-resize;
}

.idapu-track-item strong.is-muted,
.idapu-track-item .tag.is-muted {
	opacity: 0.55;
}

.idapu-track-item-main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 0;
	flex: 1;
}

.idapu-track-item-actions {
	flex: 0 0 auto;
}

.idapu-track-item-actions .wpcom-btn.btn-primary.btn-xs.idapu-btn-cancel {
	min-width: auto;
	min-height: 26px;
	padding: 0 12px;
	border-radius: 5px;
	font-size: 12px;
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-track-item:last-child {
	border-bottom: 0;
}

.idapu-track-item .tag {
	display: inline-block;
	background: #f8fafc;
	border: 1px solid rgba(148, 163, 184, .35);
	border-radius: 999px;
	padding: 1px 6px;
	color: #334155;
}

.idapu-track-modal-right .idapu-modal-grid {
	gap: 8px 10px;
}

.idapu-track-modal-right .idapu-label {
	margin-bottom: 4px;
	font-size: 12px;
}

.idapu-track-modal-right .is-input {
	min-height: 32px;
	padding: 5px 8px;
	font-size: 12px;
}

.idapu-track-modal-right label {
	margin-bottom: 0;
}

.idapu-track-modal-right .idapu-form-divider {
	margin: 0;
}

.idapu-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 12px 8px;
}

.idapu-chip {
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 16px;
	padding: 3px 10px;
	font-size: 12px;
	line-height: 1.5;
	background: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 28px;
}

.idapu-chip-main {
	font-weight: 600;
	line-height: 1;
}

.idapu-chip-sub {
	font-size: 10px;
	line-height: 1;
	opacity: .72;
}

.idapu-chip:hover {
	border-color: #3b82f6;
	color: #1d4ed8;
	background: #eff6ff;
}

.idapu-chip.is-active {
	border-color: #2563eb;
	background: #dbeafe;
	color: #1d4ed8;
}

.idapu-chord-main {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 10px;
	margin: 0 12px 8px;
}

.idapu-chord-diagram-wrap {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	padding: 6px;
}

.idapu-chord-name {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 4px;
}

.idapu-chord-name.is-unknown {
	color: #dc2626;
}

.idapu-chord-diagram {
	width: 160px;
	height: 200px;
	display: block;
	margin: 0 auto;
}

.idapu-chord-pos-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}

.idapu-chord-custom {
	min-width: 0;
}

.idapu-chord-custom-actions {
	display: flex;
	gap: 8px;
	margin: 2px 0 8px;
}

.idapu-chord-nav-btn {
	border: 0;
	border-radius: 8px;
	width: 28px;
	height: 28px;
	background: #e5e7eb;
	color: #1f2937;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.idapu-chord-nav-btn:hover {
	background: #d1d5db;
}

.idapu-chord-info {
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	background: #f8fafc;
	padding: 8px;
	margin: 0 0 8px;
}

.idapu-chord-info-row {
	display: flex;
	gap: 8px;
	font-size: 12px;
	margin-bottom: 4px;
}

.idapu-chord-info-row:last-child {
	margin-bottom: 0;
}

.idapu-chord-info-row .k {
	width: 32px;
	color: #64748b;
}

.idapu-chord-info-row .v {
	color: #1f2937;
	font-weight: 500;
}

.idapu-chord-basefret {
	margin: 6px 0 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
}

.idapu-chord-basefret-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.idapu-chord-basefret-controls .idapu-chord-nav-btn {
	width: 24px;
	height: 24px;
	font-size: 14px;
	border-radius: 6px;
}

#idapu-chord-basefret-text {
	min-width: 38px;
	text-align: center;
	color: #334155;
}

.idapu-chord-manual-hint {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.idapu-chord-manual-hint.is-error {
	color: #b91c1c;
}

.idapu-chord-manual-hint.is-ok {
	color: #166534;
}

.idapu-chord-search-results {
	margin: 0 12px 8px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
	max-height: 140px;
	overflow: auto;
	display: none;
}

.idapu-chord-search-results.is-open {
	display: block;
}

.idapu-chord-search-item {
	padding: 6px 8px;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.idapu-chord-search-item:last-child {
	border-bottom: 0;
}

.idapu-chord-search-item:hover {
	background: #eff6ff;
}

.idapu-preview-overlay {
	--idapu-space-1: 4px;
	--idapu-space-2: 8px;
	--idapu-space-3: 12px;
	--idapu-space-4: 16px;
	--idapu-radius-sm: 8px;
	--idapu-radius-md: 10px;
	--idapu-radius-lg: 12px;
	--idapu-font-xs: 12px;
	--idapu-font-sm: 13px;
	--idapu-font-md: 14px;
	--idapu-font-lg: 17px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10020;
	background: var(--el-bg-color, #fff);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .12s ease;
}

.idapu-preview-overlay.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.idapu-preview-main {
	position: absolute;
	inset: 0;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	display: block;
}

.idapu-preview-side {
	background: #000;
	padding: var(--idapu-space-1);
	display: flex;
	flex-direction: column;
	gap: var(--idapu-space-1);
	position: absolute;
	top: var(--idapu-space-4);
	right: var(--idapu-space-4);
	z-index: 4;
	border-radius: var(--idapu-radius-lg);
	width: 52px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.idapu-preview-menu-btn {
	border: 0;
	background: transparent;
	color: #9ca3af;
	border-radius: var(--idapu-radius-md);
	min-height: 50px;
	padding: 5px 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	gap: 2px;
	transition: background .12s ease, color .12s ease, transform .12s ease;
}

.idapu-preview-menu-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, .36);
	outline-offset: 1px;
}

.idapu-preview-menu-btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.idapu-preview-menu-btn span:last-child {
	font-size: 10px;
	line-height: 1.1;
}

.idapu-preview-menu-btn:hover {
	background: rgba(255, 255, 255, .1);
	color: #d1d5db;
	transform: translateY(-1px);
}

.idapu-preview-menu-btn:active {
	transform: translateY(0);
}

.idapu-preview-body {
	padding: 0;
	height: 100%;
	overflow: auto;
	background: var(--el-bg-color, #fff);
}

.idapu-preview-overlay:not(.is-a4) #idapu-preview-root {
	height: 100%;
	min-height: 640px;
}

.idapu-preview-overlay:not(.is-a4) #idapu-preview-alpha-host {
	height: 100%;
	min-height: 640px;
}

.idapu-preview-overlay:not(.is-a4) #idapu-preview-root .at-wrap {
	min-height: 640px;
}

.idapu-preview-overlay.is-a4 .idapu-preview-body {
	overflow: auto;
	padding: calc(var(--idapu-space-4) + var(--idapu-space-2)) var(--idapu-space-4);
	background: #fff;
}

.idapu-preview-overlay.is-a4 #idapu-preview-root {
	width: 210mm;
	min-height: 297mm;
	height: auto;
	margin: 6px auto 18px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.idapu-export-option-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
}

.idapu-preview-settings-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 14px;
	padding: 8px;
	background: #dcf5fb;
	/* border: 1px solid rgba(148, 163, 184, 0.45); */
	border-radius: 10px;
	overflow-x: auto;
	flex-shrink: 0;
}

.idapu-preview-settings-tabs::-webkit-scrollbar {
	height: 4px;
}

.idapu-preview-settings-tab {
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid transparent;
	background: transparent;
	color: #64748b;
	border-radius: 8px;
	padding: 7px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	cursor: pointer;
	transition: background .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.idapu-preview-settings-tab.is-active {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.idapu-preview-settings-tab:hover:not(.is-active) {
	color: #0f172a;
	background: rgba(255, 255, 255, 0.65);
}

.idapu-preview-settings-panel {
	display: none;
}

.idapu-preview-settings-panel.is-active {
	display: block;
}

.idapu-drawer-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 10120;
}

.idapu-drawer-modal.is-open {
	display: block;
}

.idapu-drawer-mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}

.idapu-drawer-card {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 360px;
	max-width: 92vw;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .16s ease;
	border-right: 1px solid rgba(15, 23, 42, .08);
	box-shadow: 14px 0 32px rgba(15, 23, 42, .18);
}

.idapu-drawer-modal.is-open .idapu-drawer-card {
	transform: translateX(0);
}

.idapu-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.idapu-drawer-header h4 {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.idapu-drawer-close {
	border: 0;
	background: #f8fafc;
	width: 28px;
	height: 28px;
	border-radius: var(--idapu-radius-sm);
	cursor: pointer;
	color: #475569;
	font-size: 18px;
	line-height: 1;
	transition: all .12s ease;
}

.idapu-drawer-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.idapu-drawer-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 10px 14px 16px;
}

#idapu-preview-settings-modal .idapu-drawer-body .idapu-modal-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 0 0 10px 0 !important;
}

#idapu-preview-settings-modal .idapu-drawer-body .is-input {
	margin-top: 0;
	border: 1px solid rgba(148, 163, 184, 0.4);
	border-radius: 8px;
	min-height: 36px;
	padding: 7px 10px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

#idapu-preview-settings-modal .idapu-drawer-body select.is-input {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image:
		linear-gradient(45deg, transparent 50%, #64748b 50%),
		linear-gradient(135deg, #64748b 50%, transparent 50%),
		linear-gradient(to right, #e2e8f0, #e2e8f0);
	background-position:
		calc(100% - 16px) calc(50% - 2px),
		calc(100% - 11px) calc(50% - 2px),
		calc(100% - 32px) 50%;
	background-size: 6px 6px, 6px 6px, 1px 18px;
	background-repeat: no-repeat;
	padding-right: 36px;
	color: #0f172a;
	font-weight: 700;
}

#idapu-preview-settings-modal .idapu-drawer-body select.is-input:focus {
	background-image:
		linear-gradient(45deg, transparent 50%, #1e293b 50%),
		linear-gradient(135deg, #1e293b 50%, transparent 50%),
		linear-gradient(to right, #cbd5e1, #cbd5e1);
}

#idapu-preview-settings-modal .idapu-drawer-body select.is-input option {
	color: #1f2937;
	background: #fff;
	font-weight: 500;
}

#idapu-preview-settings-modal .idapu-drawer-body select.is-input option:checked,
#idapu-preview-settings-modal .idapu-drawer-body select.is-input option[selected] {
	color: #fff;
	background: #111827;
	font-weight: 700;
}

#idapu-preview-settings-modal .idapu-drawer-body .is-input:focus {
	border-color: rgba(37, 99, 235, 0.55);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
	outline: none;
}

#idapu-preview-settings-modal .idapu-drawer-body input[type="range"].is-input {
	height: auto;
	min-height: 0;
	padding: 0;
	margin-top: 4px;
	border: none;
	background: transparent;
	box-shadow: none;
}

#idapu-preview-settings-modal .idapu-drawer-body input[type="range"].is-input:focus {
	box-shadow: none;
	outline: none;
}

#idapu-preview-settings-modal .idapu-drawer-body label {
	font-size: 12px;
	color: #475569;
}

#idapu-preview-settings-modal .idapu-drawer-body .idapu-label {
	display: inline-block;
	margin-bottom: 0;
	font-size: 12px;
	color: #334155;
}

.idapu-drawer-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 10px 14px 12px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	background: #f8fafc;
}

#idapu-preview-settings-modal .idapu-drawer-body label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 10px 0 !important;
	width: 100%;
	min-width: 0;
}

#idapu-preview-settings-modal .idapu-drawer-body .idapu-preview-settings-panel {
	padding: 0;
}

#idapu-preview-settings-modal .idapu-drawer-body .idapu-preview-settings-panel .idapu-modal-grid>label {
	min-width: 0;
	margin-bottom: 0 !important;
}

#idapu-preview-settings-modal .idapu-drawer-body .idapu-preview-settings-panel input[type="number"].is-input,
#idapu-preview-settings-modal .idapu-drawer-body .idapu-preview-settings-panel select.is-input {
	width: 100%;
}

.idapu-drawer-footer .wpcom-btn.btn-primary.btn-xs {
	min-width: 92px;
	min-height: 34px;
	border-radius: 8px;
	font-size: 13px;
}

.idapu-drawer-footer .idapu-btn-confirm {
	background: #111827 !important;
	border: 1px solid #111827 !important;
	color: #fff !important;
}

.idapu-drawer-footer .idapu-btn-cancel {
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-drawer-footer [data-action*="confirm"],
.idapu-drawer-footer [data-action*="save"],
.idapu-drawer-footer [data-action*="publish"],
.idapu-drawer-footer [data-action*="insert"],
.idapu-drawer-footer [data-action*="update"] {
	background: #111827 !important;
	border: 1px solid #111827 !important;
	color: #fff !important;
}

.idapu-drawer-footer [data-action*="cancel"],
.idapu-drawer-footer [data-action*="close"] {
	background: #e5e7eb !important;
	border: 1px solid #cbd5e1 !important;
	color: #111827 !important;
}

.idapu-export-option {
	width: 100%;
	text-align: left;
	border: 1px solid #f1f5f9;
	border-radius: 10px;
	background: #fff;
	padding: 5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: var(--idapu-space-3);
	transition: all .12s ease;
}

.idapu-export-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	color: #2563eb;
	font-size: 18px;
	flex: 0 0 auto;
	margin-left: 6px;
}

.idapu-export-text {
	min-width: 0;
	padding-left: 10px;
}

.idapu-export-text strong {
	display: block;
	font-size: var(--idapu-font-md);
	color: #111827;
}

.idapu-export-text span {
	display: block;
	font-size: 14px;
	color: #64748b;
}

.idapu-export-option:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, .08);
}

.idapu-share-empty p {
	margin: 0 0 10px;
	color: #475569;
	font-size: var(--idapu-font-sm);
	line-height: 1.6;
}

.idapu-share-qr-wrap {
	margin-top: calc(var(--idapu-space-2) + 2px);
	border-top: 1px solid rgba(0, 0, 0, .08);
	padding-top: var(--idapu-space-3);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--idapu-space-2);
}

.idapu-share-qr-wrap span {
	font-size: var(--idapu-font-xs);
	color: #64748b;
}

#idapu-share-qr {
	width: 160px;
	height: 160px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: var(--idapu-radius-sm);
	background: #fff;
}

.idapu-toolbar.is-preview-open .idapu-preview-toggle {
	color: #2563eb;
}

.idapu-toolbar.is-preview-open .idapu-top-btn:not(.idapu-preview-toggle) {
	pointer-events: none;
	opacity: .55;
	cursor: not-allowed;
}

body.idapu-preview-lock {
	overflow: hidden;
}

body.biupro-idapu-hide-footer footer,
body.biupro-idapu-hide-footer #footer,
body.biupro-idapu-hide-footer .site-footer {
	display: none !important;
}

.idapu-workbench,
.idapu-workbench-inner,
.idapu-layout {
	height: 100%;
}

/* 语法提示 #idapu-errors 在 .idapu-editor-main 内绝对定位，随编辑区可见 */
.idapu-editor-wrap {
	min-height: 0;
}

@media (max-width:991px) {

	/* 窄屏：上下各半高，仍吃满 --idapu-page-height（与桌面同一套 JS 高度） */
	.idapu-layout:not(.is-vertical) {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 0;
	}

	.idapu-layout.is-vertical {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(180px, var(--idapu-split-ratio-v)) 8px minmax(0, 1fr);
	}

	.idapu-splitter {
		display: none;
	}

	.idapu-toolbar-group-right {
		margin-left: 0;
	}

	.idapu-toolbar-group {
		gap: 6px;
	}

	.idapu-config-grid {
		grid-template-columns: 1fr 1fr;
	}

	.idapu-toolbar-main {
		padding: 6px;
	}

	.idapu-toolbar .wpcom-btn.btn-primary.btn-xs {
		padding: 4px 6px;
	}

	.idapu-top-btn {
		min-width: 36px;
		min-height: 32px;
	}

	.idapu-top-btn .dashicons {
		font-size: 18px;
		width: 18px;
		height: 18px;
	}

	.idapu-top-btn span:last-child {
		font-size: 13px;
	}

	.idapu-menu-divider {
		display: none;
	}

	.idapu-operation-menu {
		left: 8px;
		top: 52px;
		width: calc(100vw - 16px);
	}

	.idapu-grammar-panel {
		top: 43px;
		left: 8px;
		width: calc(100vw - 16px);
		max-height: 78vh;
	}

	.idapu-grammar-panel-body {
		grid-template-columns: 1fr;
		max-height: calc(78vh - 46px);
	}

	.idapu-grammar-list-wrap {
		max-height: 220px;
		border-right: 0;
		border-bottom: 1px solid rgba(148, 163, 184, .2);
	}

	.idapu-grammar-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.idapu-grammar-row-head {
		display: none;
	}

	.idapu-grammar-row-item>div {
		padding: 6px 10px;
	}

	.idapu-grammar-tools {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 6px;
	}

	.idapu-grammar-recent {
		max-width: 100%;
	}

	.idapu-editor-wrap {
		min-height: 0;
		grid-template-columns: 40px 1fr;
	}

	#idapu-editor,
	#idapu-editor-highlight {
		padding: 9px;
	}

	.idapu-editor-gutter {
		padding: 9px 4px 9px 0;
		font-size: 14px;
	}

	.idapu-panel-player {
		padding: 0;
	}

	.idapu-preview-main {
		inset: 0;
	}

	.idapu-preview-side {
		flex-direction: row;
		justify-content: flex-end;
		width: auto;
		left: 8px;
		right: 8px;
		top: 8px;
	}

	.idapu-preview-menu-btn {
		min-height: 40px;
		min-width: 46px;
	}

	.idapu-preview-body {
		padding: 56px 8px 8px;
	}

	.idapu-preview-overlay.is-a4 .idapu-preview-body {
		padding: 56px 8px 8px;
	}

	.idapu-preview-overlay:not(.is-a4) #idapu-preview-root,
	.idapu-preview-overlay:not(.is-a4) #idapu-preview-alpha-host,
	.idapu-preview-overlay:not(.is-a4) #idapu-preview-root .at-wrap {
		min-height: calc(100vh - 132px);
	}

	.idapu-preview-overlay.is-a4 #idapu-preview-root {
		width: 100%;
		min-height: calc(100vh - 132px);
	}

	.idapu-drawer-card {
		width: 100vw;
		max-width: 100vw;
	}

	#idapu-preview-settings-modal .idapu-drawer-body .idapu-preview-settings-panel .idapu-modal-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.idapu-modal-form {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 10px 12px 10px;
	}

	.idapu-modal-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.idapu-track-modal-body {
		grid-template-columns: 1fr;
	}

	.idapu-chord-main {
		grid-template-columns: 1fr;
	}
}

/* Rhythm catalog modal (dynamic from backend JSON) */
#idapu-rhythm-modal .idapu-modal-card {
	max-width: min(860px, 96vw);
}

#idapu-rhythm-list {
	max-height: min(34vh, 320px);
	overflow: auto;
	/* border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	margin-top: 8px; */
}

#idapu-rhythm-search {
	margin-bottom: 6px;
}

#idapu-rhythm-recent {
	margin-bottom: 6px;
}

.idapu-tutorial-modal-card {
	max-width: min(980px, 96vw);
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.idapu-tutorial-head {
	display: flex;
	align-items: center;
	/* padding: 9px 12px; */
	border-bottom: 1px solid rgba(148, 163, 184, .25);
	background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
	position: sticky;
	top: 0;
	z-index: 2;
}

.idapu-tutorial-head h4 {
	margin: 0;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 600;
	color: #e60012;
	border: none;
}

.idapu-my-scores-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	/* padding: 9px 12px; */
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.idapu-my-scores-head h4 {
	margin: 0;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 600;
	color: #e60012;
	border: none;
}

#idapu-tutorial-search {
	width: 100%;
	margin-bottom: 8px;
}

.idapu-tutorial-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 10px;
	min-height: min(60vh, 560px);
	flex: 1 1 auto;
	min-height: 0;
	overflow: visible;
	align-items: start;
}

#idapu-tutorial-modal .idapu-modal-actions {
	padding-top: 8px;
	border-top: 1px solid rgba(148, 163, 184, .25);
	background: #fff;
	position: sticky;
	bottom: 0;
	z-index: 2;
}

.idapu-tutorial-list {
/* 	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 8px; */
	overflow: hidden;
	max-height: none;
	background: #fff;
}

.idapu-tutorial-item {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 8px 10px;
	cursor: pointer;
	border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.idapu-tutorial-item:last-child {
	border-bottom: 0;
}

.idapu-tutorial-item:hover,
.idapu-tutorial-item.is-active {
	background: #eff6ff;
}

.idapu-tutorial-item-title {
	font-weight: 700;
	color: #0f172a;
	font-size: 13px;
}

.idapu-tutorial-item-sub {
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

.idapu-tutorial-detail {
	/* border: 1px solid rgba(148, 163, 184, .25); */
	/* border-radius: 8px; */
	padding: 10px;
	overflow: auto;
	max-height: min(60vh, 560px);
	background: #fff;
}

.idapu-tutorial-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
}

.idapu-tutorial-summary,
.idapu-tutorial-track {
	margin-top: 6px;
	font-size: 12px;
	color: #334155;
}

.idapu-tutorial-example {
	margin-top: 8px;
	padding: 8px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: #f8fafc;
	white-space: pre-wrap;
	font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
	font-size: 12px;
	color: #0f172a;
}

.idapu-tutorial-notes {
	margin-top: 8px;
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
}

.idapu-tutorial-note-block {
	margin-top: 8px;
}

.idapu-tutorial-note-block ul {
	margin: 4px 0 0 16px;
}

.idapu-tutorial-note-block li {
	margin: 2px 0;
}

.idapu-tutorial-template {
	margin: 4px 0 0;
	padding: 6px 8px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: #f8fafc;
	white-space: pre-wrap;
	font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
	font-size: 12px;
	color: #0f172a;
}

/* —— 底部五线谱录入面板 —— */
.idapu-staff-panel-root {
	position: relative;
}

.idapu-workbench-page.idapu-staff-panel-open .idapu-layout {
	padding-bottom: 300px;
	box-sizing: border-box;
	transition: padding-bottom .22s ease;
}

.idapu-staff-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 120000;
	background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
	border-top: 1px solid rgba(148, 163, 184, .35);
	box-shadow: 0 -12px 40px rgba(15, 23, 42, .1), 0 -1px 0 rgba(255, 255, 255, .8) inset;
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
	transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
	outline: none;
}

.idapu-staff-dock.is-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.idapu-staff-dock-inner {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 14px 20px 18px;
	box-sizing: border-box;
}

.idapu-staff-dock-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(226, 232, 240, .95);
}

.idapu-staff-dock-head-left {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.idapu-staff-dock-title {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: .03em;
}

.idapu-staff-dock-key {
	font-size: 12px;
	color: #475569;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
	padding: 3px 10px;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, .35);
}

.idapu-staff-dock-clef {
	display: flex;
	gap: 6px;
}

.idapu-staff-dock-dur {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.idapu-staff-chip {
	border: 1px solid rgba(148, 163, 184, .55);
	background: #fff;
	color: #334155;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}

.idapu-staff-chip:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.idapu-staff-chip.is-active {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8;
	font-weight: 600;
}

.idapu-staff-dock-close {
	margin-left: auto;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.idapu-staff-dock-close:hover {
	background: rgba(148, 163, 184, .2);
	color: #0f172a;
}

.idapu-staff-dock-meta {
	margin: 0 0 6px;
	font-size: 11px;
	color: #94a3b8;
}

.idapu-staff-dock-svg-wrap {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 1);
	box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
	padding: 10px 12px;
	box-sizing: border-box;
}

.idapu-staff-dock-score-wrap {
	position: relative;
	width: 100%;
	min-height: 200px;
	min-width: 0;
}

.idapu-staff-dock-vf {
	display: block;
	width: 100%;
	line-height: 0;
}

.idapu-staff-dock-vf svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	vertical-align: top;
}

.idapu-staff-dock-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
	overflow: visible;
}

.idapu-staff-dock-svg {
	display: block;
	vertical-align: top;
}

.idapu-staff-dock-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #64748b;
}

.idapu-staff-dock-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}

.idapu-staff-dock-help {
	font-size: 11px;
	color: #94a3b8;
	max-width: 52ch;
	line-height: 1.45;
}

.idapu-staff-btn {
	border-radius: 8px;
	font-size: 13px;
	padding: 8px 16px;
	cursor: pointer;
	border: 1px solid rgba(148, 163, 184, .55);
	background: #fff;
	color: #334155;
}

.idapu-staff-btn-primary {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	font-weight: 600;
}

.idapu-staff-btn-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}
