/* 智能托管 */
.lx-sh-wrap { margin: 12px 20px 40px 0; }
.lx-sh {
	--sh-border: rgba(148,163,184,.22);
	--sh-text: #e2e8f0;
	--sh-muted: #94a3b8;
	--sh-accent: #38bdf8;
	--sh-ok: #34d399;
	--sh-warn: #fbbf24;
	--sh-bad: #f87171;
	--sh-card: rgba(255,255,255,.04);
	color: var(--sh-text);
	font-size: 14px;
	line-height: 1.5;
	max-width: 1200px;
}
.lx-sh--front { margin: 0 auto; padding: 12px 0 40px; }

.lx-sh-hero {
	display: flex; gap: 16px; padding: 20px 22px; margin-bottom: 14px;
	border-radius: 16px; border: 1px solid rgba(56,189,248,.28);
	background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(56,189,248,.14), transparent 55%),
		linear-gradient(135deg,#0f172a,#0b1220);
}
.lx-sh-hero__icon { font-size: 40px; line-height: 1; }
.lx-sh-hero__title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #f8fafc; }
.lx-sh-hero__desc { margin: 0 0 10px; color: var(--sh-muted); max-width: 900px; }
.lx-sh-hero__desc strong { color: #7dd3fc; }
.lx-sh-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-sh-hero__tags span {
	padding: 3px 10px; border-radius: 999px; font-size: 12px;
	background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.28); color: #bae6fd;
}

/* 前台：已上架托管类型展示（替代统计数字） */
.lx-sh-type-showcase {
	margin-bottom: 16px;
	padding: 16px 18px 18px;
	border-radius: 16px;
	border: 1px solid rgba(56,189,248,.22);
	background:
		radial-gradient(ellipse 80% 120% at 100% 0%, rgba(99,102,241,.12), transparent 50%),
		linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.4));
}
.lx-sh-type-showcase__head { margin-bottom: 12px; }
.lx-sh-type-showcase__title {
	margin: 0 0 4px; font-size: 16px; font-weight: 800; color: #f1f5f9;
}
.lx-sh-type-showcase__sub {
	margin: 0; font-size: 12.5px; color: var(--sh-muted);
}
.lx-sh-type-showcase__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.lx-sh-type-card {
	position: relative;
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 14px 12px;
	border-radius: 14px;
	border: 1px solid rgba(148,163,184,.2);
	background: rgba(255,255,255,.04);
	min-height: 96px;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.lx-sh-type-card:hover {
	border-color: rgba(56,189,248,.45);
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.lx-sh-type-card__icon {
	font-size: 28px; line-height: 1; flex-shrink: 0;
}
.lx-sh-type-card__body { min-width: 0; flex: 1; padding-right: 48px; }
.lx-sh-type-card__name {
	display: block; margin: 0 0 4px; font-size: 14px; color: #f8fafc;
}
.lx-sh-type-card__hint {
	margin: 0; font-size: 12px; line-height: 1.45; color: #94a3b8;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-sh-type-card__badge {
	position: absolute; top: 10px; right: 10px;
	padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
	color: #a7f3d0; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.35);
}

.lx-sh-stats {
	display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px;
}
@media (max-width: 800px) { .lx-sh-stats { grid-template-columns: 1fr 1fr; } }
.lx-sh-stat {
	padding: 14px; border-radius: 14px; border: 1px solid var(--sh-border); background: var(--sh-card); text-align: center;
}
.lx-sh-stat__n { display: block; font-size: 24px; font-weight: 800; color: #f1f5f9; }
.lx-sh-stat__l { font-size: 12px; color: var(--sh-muted); }
.lx-sh-stat--warn .lx-sh-stat__n { color: var(--sh-warn); }
.lx-sh-stat--ok .lx-sh-stat__n { color: var(--sh-ok); }
.lx-sh-stat--mid .lx-sh-stat__n { color: var(--sh-accent); }

.lx-sh-tabs {
	display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px;
	border-bottom: 1px solid var(--sh-border); padding-bottom: 0;
}
.lx-sh-tab {
	border: none; background: transparent; color: var(--sh-muted);
	padding: 10px 14px; font-weight: 600; cursor: pointer;
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.lx-sh-tab.is-active { color: #7dd3fc; border-bottom-color: var(--sh-accent); }
.lx-sh-pane { display: none; }
.lx-sh-pane.is-active { display: block; }

.lx-sh-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.lx-sh-btn {
	display: inline-flex; align-items: center; gap: 4px;
	border-radius: 10px; border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.55); color: var(--sh-text);
	padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lx-sh-btn:hover { border-color: rgba(56,189,248,.5); }
.lx-sh-btn--primary {
	background: linear-gradient(135deg,#0ea5e9,#6366f1); border-color: transparent; color: #fff;
}
.lx-sh-btn--tiny { padding: 4px 8px; font-size: 12px; }
.lx-sh-btn--danger {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 2px 8px rgba(239, 68, 68, .28);
}
.lx-sh-btn--danger:hover {
	border-color: transparent;
	background: linear-gradient(135deg, #f87171, #ef4444);
	box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}

.lx-sh-input, .lx-sh-select, .lx-sh-textarea {
	box-sizing: border-box; width: 100%;
	border-radius: 10px; border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.7); color: var(--sh-text);
	padding: 9px 12px; font-size: 13px;
}
.lx-sh-textarea { resize: vertical; min-height: 70px; }
.lx-sh-label { display: block; margin: 10px 0; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }
.lx-sh-label .lx-sh-select, .lx-sh-label .lx-sh-input { margin-top: 4px; }
.lx-sh-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #cbd5e1; margin: 12px 0; }
.lx-sh-check input { margin-top: 3px; }
.lx-sh-hint { font-size: 12.5px; color: var(--sh-muted); margin: 0 0 10px; }
.lx-sh-status { font-size: 12.5px; color: var(--sh-muted); margin-left: 8px; }
.lx-sh-status.is-ok { color: var(--sh-ok); }
.lx-sh-status.is-err { color: var(--sh-bad); }
.lx-sh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-sh-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .lx-sh-grid2, .lx-sh-grid3 { grid-template-columns: 1fr; } }

.lx-sh-list { display: flex; flex-direction: column; gap: 10px; }
.lx-sh-card {
	border-radius: 12px; border: 1px solid var(--sh-border);
	background: var(--sh-card); padding: 12px 14px;
}
.lx-sh-card__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.lx-sh-card__title { font-weight: 700; color: #f1f5f9; margin: 0; flex: 1; }
.lx-sh-card__meta { font-size: 12.5px; color: var(--sh-muted); margin: 0 0 8px; }
.lx-sh-card__ops { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-sh-badge {
	font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
	background: rgba(148,163,184,.15); color: #cbd5e1;
}
.lx-sh-badge.is-pending, .lx-sh-badge.is-queued { background: rgba(251,191,36,.18); color: #fde68a; }
.lx-sh-badge.is-running, .lx-sh-badge.is-in_progress, .lx-sh-badge.is-accepted { background: rgba(56,189,248,.18); color: #bae6fd; }
.lx-sh-badge.is-completed { background: rgba(52,211,153,.15); color: #a7f3d0; }
.lx-sh-badge.is-failed, .lx-sh-badge.is-rejected, .lx-sh-badge.is-cancelled { background: rgba(248,113,113,.15); color: #fecaca; }
.lx-sh-badge.is-ok { background: rgba(52,211,153,.15); color: #a7f3d0; }
.lx-sh-stats { grid-template-columns: repeat(5, 1fr); }
.lx-sh-empty { color: var(--sh-muted); padding: 20px; text-align: center; }

.lx-sh-catalog-by-type { display: flex; flex-direction: column; gap: 18px; }
.lx-sh-catalog-group__title {
	margin: 0 0 10px; font-size: 15px; color: #f1f5f9; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* 定制化托管 */
.lx-sh-tab-badge {
	display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px;
	border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 16px;
	background: rgba(248,113,113,.85); color: #fff; vertical-align: middle;
}
.lx-sh-custom-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lx-sh-custom-subtabs .lx-sh-btn.is-on {
	background: linear-gradient(135deg,#0ea5e9,#6366f1); border-color: transparent; color: #fff;
}
.lx-sh-csub { display: none; }
.lx-sh-csub.is-active { display: block; }

.lx-sh-service-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}
.lx-sh-svc {
	text-align: left; border-radius: 12px; border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.55); padding: 12px; cursor: pointer; color: inherit;
}
.lx-sh-svc.is-on { border-color: rgba(56,189,248,.65); background: rgba(56,189,248,.1); }
.lx-sh-svc__title { font-weight: 700; color: #f1f5f9; margin: 0 0 4px; }
.lx-sh-svc__desc { font-size: 12px; color: var(--sh-muted); margin: 0 0 6px; min-height: 32px; }
.lx-sh-svc__meta { font-size: 11.5px; color: #94a3b8; }

.lx-sh-asset-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lx-sh-asset-opt {
	display: flex; gap: 10px; align-items: center; padding: 10px 12px;
	border-radius: 10px; border: 1px solid var(--sh-border); background: rgba(15,23,42,.5); cursor: pointer;
}
.lx-sh-asset-opt.is-on { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.08); }
.lx-sh-step {
	border-radius: 14px; border: 1px solid var(--sh-border); background: var(--sh-card);
	padding: 16px; margin-bottom: 12px;
}
.lx-sh-step h3 { margin: 0 0 12px; font-size: 15px; color: #f1f5f9; }

.lx-sh-guide h3 { color: #f1f5f9; margin: 16px 0 10px; }
.lx-sh-guide ul, .lx-sh-guide ol { color: #cbd5e1; padding-left: 20px; }
.lx-sh-guide li { margin-bottom: 6px; }
.lx-sh-guide-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.lx-sh-guide-card {
	border-radius: 12px; border: 1px solid var(--sh-border); background: rgba(15,23,42,.5); padding: 12px;
}
.lx-sh-guide-card__icon { font-size: 22px; margin-bottom: 4px; }
.lx-sh-guide-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--sh-muted); }

.lx-sh-timeline { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid rgba(56,189,248,.3); }
.lx-sh-timeline li { padding: 0 0 12px 14px; position: relative; font-size: 13px; color: #cbd5e1; }
.lx-sh-timeline li::before {
	content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
	border-radius: 50%; background: var(--sh-accent);
}
.lx-sh-timeline__at { display: block; font-size: 11.5px; color: var(--sh-muted); margin-bottom: 2px; }

.lx-sh-progress {
	height: 6px; border-radius: 999px; background: rgba(148,163,184,.2); overflow: hidden; margin: 8px 0;
}
.lx-sh-progress > i { display: block; height: 100%; background: linear-gradient(90deg,#0ea5e9,#34d399); }

.lx-sh-modal {
	position: fixed; inset: 0; z-index: 100100; background: rgba(2,6,23,.72);
	display: flex; align-items: flex-start; justify-content: center; padding: 36px 16px; overflow: auto;
}
.lx-sh-modal[hidden] { display: none !important; }
.lx-sh-modal__panel {
	width: 100%; max-width: 560px; background: #0f172a; border: 1px solid var(--sh-border);
	border-radius: 16px; padding: 18px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.lx-sh-modal__panel--wide { max-width: 720px; }
.lx-sh-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lx-sh-modal__head h3 { margin: 0; color: #f8fafc; }
.lx-sh-modal__x { border: none; background: transparent; color: #94a3b8; font-size: 24px; cursor: pointer; }
.lx-sh-form label { display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }
.lx-sh-form label .lx-sh-input, .lx-sh-form label .lx-sh-select, .lx-sh-form label .lx-sh-textarea { margin-top: 4px; }
.lx-sh-form__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

.lx-sh-secret-box {
	margin-top: 10px; padding: 10px; border-radius: 10px;
	background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3);
	font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre-wrap; color: #fecaca;
}

/* ── 数据库工作台 ── */
.lx-db { display: flex; flex-direction: column; gap: 14px; }
.lx-db__intro {
	display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
	padding: 12px 14px; border-radius: 12px;
	border: 1px solid rgba(56,189,248,.28); background: rgba(14,165,233,.08);
	color: #bae6fd; font-size: 13px;
}
.lx-db__intro strong { color: #f0f9ff; font-size: 15px; }
.lx-db__connect.card-block,
.lx-db__body {
	padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--sh-border); background: var(--sh-card);
}
.lx-db__connect h3 { margin: 0 0 10px; font-size: 15px; color: #f1f5f9; }
.lx-db__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0; }
.lx-db__row .lx-sh-label { margin: 0; min-width: 200px; flex: 1; }
.lx-db__direct { margin-top: 10px; color: var(--sh-muted); font-size: 13px; }
.lx-db__direct summary { cursor: pointer; color: #7dd3fc; }
.lx-db__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-db__tools .lx-sh-btn.is-active {
	background: linear-gradient(135deg,#0ea5e9,#6366f1); border-color: transparent; color: #fff;
}
.lx-db-panel { display: none; }
.lx-db-panel.is-active { display: block; }
/* 库表浏览：左 20% 融合选库/表，右 80% 数据预览 */
.lx-db__browse {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	min-height: 0;
	height: 100%;
	flex: 1 1 auto;
	position: relative;
}
/* 左侧库表树 */
.lx-db__browse-nav {
	flex: 0 0 20%;
	width: 20%;
	max-width: 20%;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	border: 1px solid var(--sh-border);
	border-radius: 12px;
	background: rgba(15, 23, 42, .5);
	overflow: hidden;
}
.lx-db__tree {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 4px 4px 8px;
}
.lx-db-tree__node {
	margin-bottom: 2px;
}
.lx-db-tree__db {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	color: #e2e8f0;
	padding: 7px 8px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 12.5px;
	box-sizing: border-box;
}
.lx-db-tree__db:hover { background: rgba(56,189,248,.1); }
.lx-db-tree__db.is-on,
.lx-db-tree__node.is-active-db > .lx-db-tree__db {
	background: rgba(56,189,248,.16);
	color: #7dd3fc;
}
.lx-db-tree__caret {
	flex: 0 0 auto;
	width: 12px;
	font-size: 10px;
	line-height: 1.5;
	color: #64748b;
	margin-top: 1px;
}
.lx-db-tree__db-main {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.lx-db-tree__db-main strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12.5px;
}
.lx-db-tree__db-main span {
	font-size: 10.5px;
	color: #64748b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lx-db-tree__tables {
	padding: 2px 0 4px 14px;
	border-left: 1px solid rgba(56,189,248,.2);
	margin: 0 0 4px 12px;
}
.lx-db-tree__table {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	color: #cbd5e1;
	padding: 5px 6px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	box-sizing: border-box;
}
.lx-db-tree__table:hover { background: rgba(56,189,248,.1); }
.lx-db-tree__table.is-on {
	background: rgba(99,102,241,.22);
	color: #a5b4fc;
}
.lx-db-tree__table-icon {
	flex: 0 0 auto;
	font-size: 11px;
	opacity: .75;
	line-height: 1.4;
}
.lx-db-tree__table-main {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.lx-db-tree__table-main strong {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11.5px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lx-db-tree__table-main span {
	font-size: 10px;
	color: #64748b;
}
.lx-db__split { display: grid; grid-template-columns: 220px 1fr; gap: 12px; min-height: 360px; }
@media (max-width: 800px) { .lx-db__split { grid-template-columns: 1fr; } }
.lx-db__side {
	border: 1px solid var(--sh-border); border-radius: 12px; background: rgba(15,23,42,.45);
	display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.lx-db__side-head {
	padding: 8px 10px; font-weight: 700; color: #e2e8f0; font-size: 12.5px;
	border-bottom: 1px solid var(--sh-border); flex-shrink: 0;
	display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.lx-db__side-search {
	flex-shrink: 0;
	padding: 6px 8px;
	border-bottom: 1px solid rgba(148,163,184,.12);
}
.lx-db__search-input {
	width: 100%;
	box-sizing: border-box;
	height: 30px;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 8px;
}
.lx-db__list {
	overflow: auto;
	padding: 4px;
	flex: 1 1 auto;
	min-height: 0;
}
.lx-db__db-item {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
	width: 100%; text-align: left; border: none; background: transparent;
	color: #cbd5e1; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
	box-sizing: border-box;
	min-height: 40px;
	overflow: hidden;
}
.lx-db__db-item strong {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}
.lx-db__db-item span {
	font-size: 10.5px; color: var(--sh-muted);
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}
.lx-db__db-item:hover { background: rgba(56,189,248,.1); }
.lx-db__db-item.is-on { background: rgba(56,189,248,.18); color: #7dd3fc; }
.lx-db__db-item.is-sys strong { opacity: .75; }
.lx-db__table-item strong {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 12px;
}
.lx-db__main { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
/* 右侧数据区 */
.lx-db__browse-data {
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sh-border);
	border-radius: 12px;
	background: rgba(15,23,42,.35);
	padding: 10px 12px 10px;
	overflow: hidden;
}
.lx-db__toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	flex-shrink: 0;
	min-height: 28px;
}
.lx-db__toolbar-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	flex-shrink: 0;
}
.lx-db__toolbar-actions .lx-sh-btn.is-active {
	background: linear-gradient(135deg,#0ea5e9,#6366f1);
	border-color: transparent;
	color: #fff;
}
.lx-db__current {
	font-weight: 700;
	color: #e2e8f0;
	font-size: 13px;
	word-break: break-all;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	flex: 1;
}
/* 筛选 / SQL 工具条 */
.lx-db__filter-bar,
.lx-db__sql-bar {
	flex-shrink: 0;
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(56,189,248,.22);
	background: rgba(15,23,42,.55);
}
.lx-db__filter-bar[hidden],
.lx-db__sql-bar[hidden] {
	display: none !important;
}
.lx-db__filter-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
	max-height: 120px;
	overflow: auto;
}
.lx-db__filter-row {
	display: grid;
	grid-template-columns: minmax(100px, 1.2fr) minmax(72px, .8fr) minmax(80px, 1fr) 32px;
	gap: 6px;
	align-items: center;
}
.lx-db__filter-row .lx-sh-select,
.lx-db__filter-row .lx-sh-input {
	width: 100%;
	min-width: 0;
	height: 30px;
	font-size: 12px;
	padding: 2px 6px;
}
.lx-db__filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.lx-db__sql-input {
	width: 100%;
	box-sizing: border-box;
	min-height: 64px;
	margin-bottom: 8px;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 12px;
	resize: vertical;
}
.lx-db__tables {
	overflow: auto;
	border-radius: 10px;
	border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.35);
}
.lx-db__data-pane {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.lx-db__data-pane .lx-db-scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	height: 100%;
}
.lx-db__data-placeholder {
	margin: 12px 0 4px !important;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(15,23,42,.35);
	font-size: 13px;
	color: #94a3b8;
}
.lx-db__nav-section .lx-db-loading,
.lx-db__side .lx-db-loading {
	min-height: 64px;
	padding: 12px 8px;
}
.lx-db__nav-section .lx-db-loading__spinner,
.lx-db__side .lx-db-loading__spinner {
	width: 26px;
	height: 26px;
}
.lx-db-scroll {
	overflow: auto;
	min-height: 0;
	border-radius: 10px;
	border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.35);
}
/* 数据表横向滚动（明显滚动条） */
.lx-db-scroll--x {
	overflow-x: auto !important;
	overflow-y: auto !important;
	scrollbar-width: auto;
	scrollbar-color: #38bdf8 #0f172a;
}
.lx-db-scroll--x::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}
.lx-db-scroll--x::-webkit-scrollbar-track {
	background: #0f172a;
	border-radius: 8px;
	border: 1px solid rgba(56,189,248,.2);
}
.lx-db-scroll--x::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, #0ea5e9, #6366f1);
	border-radius: 8px;
	border: 2px solid #0f172a;
	min-width: 40px;
}
.lx-db-scroll--x::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(90deg, #38bdf8, #818cf8);
}
.lx-db-scroll--x::-webkit-scrollbar-corner {
	background: #0f172a;
}
/* 数据区分页贴底，不撑破弹窗 */
.lx-db__data-pane .lx-db__pager {
	flex-shrink: 0;
	margin-top: 8px;
}
/* 统一美化滚动条 */
.lx-db__list,
.lx-db__tables,
.lx-db-scroll,
.lx-sh-type-assets {
	scrollbar-width: thin;
	scrollbar-color: rgba(56,189,248,.45) rgba(15,23,42,.6);
}
.lx-db__list::-webkit-scrollbar,
.lx-db__tables::-webkit-scrollbar,
.lx-db-scroll::-webkit-scrollbar,
.lx-sh-type-assets::-webkit-scrollbar {
	width: 8px; height: 8px;
}
.lx-db__list::-webkit-scrollbar-track,
.lx-db__tables::-webkit-scrollbar-track,
.lx-db-scroll::-webkit-scrollbar-track,
.lx-sh-type-assets::-webkit-scrollbar-track {
	background: rgba(15,23,42,.55);
	border-radius: 8px;
}
.lx-db__list::-webkit-scrollbar-thumb,
.lx-db__tables::-webkit-scrollbar-thumb,
.lx-db-scroll::-webkit-scrollbar-thumb,
.lx-sh-type-assets::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(56,189,248,.55), rgba(99,102,241,.5));
	border-radius: 8px;
	border: 2px solid rgba(15,23,42,.4);
}
.lx-db__list::-webkit-scrollbar-thumb:hover,
.lx-db__tables::-webkit-scrollbar-thumb:hover,
.lx-db-scroll::-webkit-scrollbar-thumb:hover,
.lx-sh-type-assets::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(56,189,248,.8), rgba(99,102,241,.75));
}
.lx-db-table {
	width: 100%; border-collapse: collapse; font-size: 12.5px; color: #e2e8f0;
	table-layout: fixed;
}
/* 预览表：按列扩展宽度，触发横向滚动 */
.lx-db-table--preview {
	table-layout: auto;
	width: max-content;
	min-width: 100%;
}
.lx-db-table--preview th.lx-db-th,
.lx-db-table--preview td {
	min-width: 110px;
	max-width: 280px;
}
.lx-db-table th, .lx-db-table td {
	padding: 6px 8px; border-bottom: 1px solid rgba(148,163,184,.15); text-align: left; vertical-align: middle;
}
.lx-db-table th { position: sticky; top: 0; background: #0f172a; color: #94a3b8; font-weight: 700; z-index: 1; }
.lx-db-table th.lx-db-th {
	min-width: 88px;
	max-width: 180px;
	vertical-align: bottom;
}
.lx-db-table th .lx-db-col-name {
	display: block;
	color: #e2e8f0;
	font-size: 12.5px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lx-db-table th .lx-db-col-comment {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: help;
}
.lx-db-table th .lx-db-col-comment.is-empty {
	color: #475569;
	cursor: default;
	opacity: .7;
}
/* 数据行固定高度；内容省略；点击行可展开看全文 */
.lx-db-table tbody tr.lx-db-row {
	height: 36px;
	max-height: 36px;
	cursor: pointer;
}
.lx-db-table tbody tr.lx-db-row td {
	height: 36px;
	max-height: 36px;
	padding: 0 8px;
	vertical-align: middle;
	overflow: hidden;
}
.lx-db-table tbody tr.lx-db-row .lx-db-cell {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 36px;
	height: 36px;
}
.lx-db-table tbody tr.lx-db-row.is-expanded {
	height: auto;
	max-height: none;
}
.lx-db-table tbody tr.lx-db-row.is-expanded td {
	height: auto;
	max-height: none;
	padding: 8px;
	vertical-align: top;
	background: rgba(56, 189, 248, .06);
}
.lx-db-table tbody tr.lx-db-row.is-expanded .lx-db-cell {
	height: auto;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	overflow: visible;
	text-overflow: unset;
}
.lx-db-table code { color: #7dd3fc; }
.lx-db-ops { white-space: nowrap; }
.lx-db__detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sh-border); }
.lx-db__detail h4, .lx-db__detail h5, .lx-db__report h4 { color: #f1f5f9; margin: 12px 0 8px; }
.lx-db__pager {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 10px; margin-top: 12px; padding: 10px 12px;
	border-radius: 10px; border: 1px solid rgba(148,163,184,.18);
	background: rgba(15,23,42,.4);
}
.lx-db__pager-info { font-size: 12.5px; color: #94a3b8; }
.lx-db__pager-actions { display: inline-flex; gap: 8px; align-items: center; }
.lx-db__pager .lx-sh-btn:disabled {
	opacity: .4; cursor: not-allowed; pointer-events: none;
}
/* 结构分析等：未选库时按钮置灰 */
#lx-db-run-schema:disabled,
.lx-db__row .lx-sh-btn--primary:disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(.35);
	box-shadow: none;
}
#lx-db-schema-db,
#lx-db-health-db,
#lx-db-perf-db {
	min-width: 220px;
}
#lx-db-run-perf:disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(.35);
	box-shadow: none;
}
#lx-db-run-perf.is-analyzing {
	opacity: 1 !important;
	filter: none !important;
	pointer-events: none;
	background: linear-gradient(135deg, #06b6d4, #3b82f6, #22d3ee) !important;
	background-size: 200% 100% !important;
	animation: lx-db-btn-shine 1.2s linear infinite;
}
/* 性能监测动画主题（青蓝闪电感） */
.lx-db-scan--perf {
	border-color: rgba(34, 211, 238, .35);
	background:
		radial-gradient(ellipse 70% 80% at 20% 30%, rgba(6,182,212,.16), transparent 55%),
		radial-gradient(ellipse 60% 70% at 85% 70%, rgba(59,130,246,.14), transparent 50%),
		linear-gradient(160deg, rgba(8,25,40,.95), rgba(15,23,42,.8));
	box-shadow: 0 0 40px rgba(6,182,212,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.lx-db-scan--perf .lx-db-scan__kicker { color: #22d3ee; }
.lx-db-scan--perf .lx-db-scan__target strong { color: #67e8f9; }
.lx-db-scan__core--perf {
	background: radial-gradient(circle at 35% 30%, #a5f3fc, #06b6d4 45%, #1d4ed8 100%) !important;
	box-shadow: 0 0 24px rgba(34,211,238,.7), 0 0 48px rgba(59,130,246,.35) !important;
}
.lx-db-scan__bar--perf {
	border-color: rgba(34,211,238,.3);
}
.lx-db-scan__bar--perf .lx-db-scan__bar-fill {
	background: linear-gradient(90deg, #06b6d4, #3b82f6, #22d3ee);
	box-shadow: 0 0 12px rgba(34,211,238,.55);
}
.lx-db-scan--perf .lx-db-scan__step.is-done { color: #a5f3fc; }
.lx-db-scan--perf .lx-db-scan__step.is-on {
	color: #ecfeff;
	background: rgba(6,182,212,.12);
	box-shadow: inset 2px 0 0 #22d3ee;
}
.lx-db-scan--perf .lx-db-scan__step.is-on .lx-db-scan__dot {
	background: #22d3ee;
	box-shadow: 0 0 10px rgba(34,211,238,.85);
}
#lx-db-run-schema.is-analyzing,
#lx-db-run-health.is-analyzing {
	opacity: 1 !important;
	filter: none !important;
	pointer-events: none;
	background: linear-gradient(135deg, #0ea5e9, #6366f1, #0ea5e9) !important;
	background-size: 200% 100% !important;
	animation: lx-db-btn-shine 1.2s linear infinite;
}
#lx-db-run-health.is-analyzing {
	background: linear-gradient(135deg, #10b981, #0ea5e9, #34d399) !important;
	background-size: 200% 100% !important;
}
#lx-db-run-health:disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(.35);
	box-shadow: none;
}
/* 健康体检动画主题（翠绿医疗感） */
.lx-db-scan--health {
	border-color: rgba(52, 211, 153, .32);
	background:
		radial-gradient(ellipse 70% 80% at 20% 30%, rgba(52,211,153,.14), transparent 55%),
		radial-gradient(ellipse 60% 70% at 85% 70%, rgba(14,165,233,.12), transparent 50%),
		linear-gradient(160deg, rgba(6,30,24,.95), rgba(15,23,42,.78));
	box-shadow: 0 0 40px rgba(16,185,129,.1), inset 0 1px 0 rgba(255,255,255,.04);
}
.lx-db-scan--health .lx-db-scan__kicker { color: #34d399; }
.lx-db-scan--health .lx-db-scan__target strong { color: #6ee7b7; }
.lx-db-scan__core--health {
	background: radial-gradient(circle at 35% 30%, #a7f3d0, #10b981 45%, #0e7490 100%) !important;
	box-shadow: 0 0 24px rgba(52,211,153,.65), 0 0 48px rgba(14,165,233,.3) !important;
}
.lx-db-scan__bar--health {
	border-color: rgba(52,211,153,.28);
}
.lx-db-scan__bar--health .lx-db-scan__bar-fill {
	background: linear-gradient(90deg, #10b981, #0ea5e9, #34d399);
	box-shadow: 0 0 12px rgba(52,211,153,.55);
}
.lx-db-scan--health .lx-db-scan__step.is-done { color: #6ee7b7; }
.lx-db-scan--health .lx-db-scan__step.is-on {
	color: #ecfdf5;
	background: rgba(16,185,129,.12);
	box-shadow: inset 2px 0 0 #34d399;
}
.lx-db-scan--health .lx-db-scan__step.is-on .lx-db-scan__dot {
	background: #34d399;
	box-shadow: 0 0 10px rgba(52,211,153,.85);
}
.lx-db-scan-done--health .lx-db-score {
	border-color: rgba(52,211,153,.3);
}
/* 安全监测动画主题（红盾防护感） */
#lx-db-run-security.is-analyzing {
	opacity: 1 !important;
	filter: none !important;
	pointer-events: none;
	background: linear-gradient(135deg, #f43f5e, #f59e0b, #ef4444) !important;
	background-size: 200% 100% !important;
	animation: lx-db-btn-shine 1.2s linear infinite;
}
.lx-db-scan--security {
	border-color: rgba(251, 113, 133, .35);
	background:
		radial-gradient(ellipse 70% 80% at 20% 30%, rgba(244,63,94,.14), transparent 55%),
		radial-gradient(ellipse 60% 70% at 85% 70%, rgba(245,158,11,.12), transparent 50%),
		linear-gradient(160deg, rgba(40,10,18,.95), rgba(15,23,42,.8));
	box-shadow: 0 0 40px rgba(244,63,94,.1), inset 0 1px 0 rgba(255,255,255,.04);
}
.lx-db-scan--security .lx-db-scan__kicker { color: #fb7185; }
.lx-db-scan--security .lx-db-scan__target { color: #fda4af; }
.lx-db-scan__core--security {
	background: radial-gradient(circle at 35% 30%, #fecdd3, #f43f5e 45%, #9a3412 100%) !important;
	box-shadow: 0 0 24px rgba(244,63,94,.65), 0 0 48px rgba(245,158,11,.28) !important;
}
.lx-db-scan__bar--security {
	border-color: rgba(251,113,133,.28);
}
.lx-db-scan__bar--security .lx-db-scan__bar-fill {
	background: linear-gradient(90deg, #f43f5e, #f59e0b, #fb7185);
	box-shadow: 0 0 12px rgba(244,63,94,.55);
}
.lx-db-scan--security .lx-db-scan__step.is-done { color: #fecdd3; }
.lx-db-scan--security .lx-db-scan__step.is-on {
	color: #fff1f2;
	background: rgba(244,63,94,.12);
	box-shadow: inset 2px 0 0 #fb7185;
}
.lx-db-scan--security .lx-db-scan__step.is-on .lx-db-scan__dot {
	background: #fb7185;
	box-shadow: 0 0 10px rgba(251,113,133,.85);
}
@keyframes lx-db-btn-shine {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

/* ── 表结构深度分析 · 炫酷扫描动画 ── */
.lx-db-scan {
	margin-top: 8px;
	padding: 18px 16px 16px;
	border-radius: 16px;
	border: 1px solid rgba(56, 189, 248, .28);
	background:
		radial-gradient(ellipse 70% 80% at 20% 30%, rgba(56,189,248,.14), transparent 55%),
		radial-gradient(ellipse 60% 70% at 85% 70%, rgba(99,102,241,.12), transparent 50%),
		linear-gradient(160deg, rgba(8,15,30,.95), rgba(15,23,42,.75));
	box-shadow: 0 0 40px rgba(56,189,248,.08), inset 0 1px 0 rgba(255,255,255,.04);
	overflow: hidden;
	position: relative;
}
.lx-db-scan__stage {
	display: grid;
	grid-template-columns: minmax(140px, 200px) 1fr;
	gap: 18px 22px;
	align-items: center;
	position: relative;
	z-index: 1;
}
@media (max-width: 720px) {
	.lx-db-scan__stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.lx-db-scan__steps { text-align: left; }
}
.lx-db-scan__glow {
	position: absolute;
	inset: -20%;
	background: conic-gradient(from 0deg, transparent, rgba(56,189,248,.08), transparent 30%, rgba(99,102,241,.1), transparent 60%);
	animation: lx-db-scan-glow 8s linear infinite;
	pointer-events: none;
	z-index: 0;
}
@keyframes lx-db-scan-glow {
	to { transform: rotate(360deg); }
}
.lx-db-scan__radar {
	position: relative;
	width: 160px;
	height: 160px;
	margin: 0 auto;
	flex-shrink: 0;
}
.lx-db-scan__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(56,189,248,.22);
	box-shadow: 0 0 12px rgba(56,189,248,.12), inset 0 0 16px rgba(56,189,248,.06);
}
.lx-db-scan__ring.r1 {
	inset: 12%;
	border-color: rgba(99,102,241,.35);
	animation: lx-db-ring-pulse 2.4s ease-in-out infinite;
}
.lx-db-scan__ring.r2 {
	inset: 26%;
	border-color: rgba(56,189,248,.4);
	animation: lx-db-ring-pulse 2.4s ease-in-out infinite .4s;
}
.lx-db-scan__ring.r3 {
	inset: 40%;
	border-color: rgba(125,211,252,.55);
	animation: lx-db-ring-pulse 2.4s ease-in-out infinite .8s;
}
@keyframes lx-db-ring-pulse {
	0%, 100% { opacity: .55; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.04); }
}
.lx-db-scan__sweep {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0deg, rgba(56,189,248,.55) 40deg, transparent 70deg);
	animation: lx-db-scan-sweep 1.6s linear infinite;
	filter: blur(.3px);
	mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 70%, transparent 72%);
	-webkit-mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 70%, transparent 72%);
}
@keyframes lx-db-scan-sweep {
	to { transform: rotate(360deg); }
}
.lx-db-scan__core {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 35% 30%, #7dd3fc, #0ea5e9 45%, #312e81 100%);
	box-shadow: 0 0 24px rgba(56,189,248,.65), 0 0 48px rgba(99,102,241,.35);
	animation: lx-db-core-breathe 1.8s ease-in-out infinite;
}
.lx-db-scan__core-icon {
	font-size: 18px;
	color: #f0f9ff;
	text-shadow: 0 0 8px rgba(255,255,255,.6);
	animation: lx-db-core-spin 3.2s linear infinite;
	display: inline-block;
}
@keyframes lx-db-core-breathe {
	0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(56,189,248,.55), 0 0 40px rgba(99,102,241,.3); }
	50% { transform: scale(1.08); box-shadow: 0 0 32px rgba(56,189,248,.85), 0 0 56px rgba(99,102,241,.45); }
}
@keyframes lx-db-core-spin {
	to { transform: rotate(360deg); }
}
.lx-db-scan__particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.lx-db-scan__particles i {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #7dd3fc;
	box-shadow: 0 0 8px #38bdf8;
	animation: lx-db-particle 2.8s ease-in-out infinite;
}
.lx-db-scan__particles i:nth-child(1) { left: 50%; top: 6%; animation-delay: 0s; }
.lx-db-scan__particles i:nth-child(2) { left: 88%; top: 28%; animation-delay: .35s; }
.lx-db-scan__particles i:nth-child(3) { left: 82%; top: 72%; animation-delay: .7s; }
.lx-db-scan__particles i:nth-child(4) { left: 50%; top: 90%; animation-delay: 1.05s; }
.lx-db-scan__particles i:nth-child(5) { left: 14%; top: 72%; animation-delay: 1.4s; }
.lx-db-scan__particles i:nth-child(6) { left: 10%; top: 30%; animation-delay: 1.75s; }
.lx-db-scan__particles i:nth-child(7) { left: 70%; top: 14%; animation-delay: 2.1s; }
.lx-db-scan__particles i:nth-child(8) { left: 28%; top: 12%; animation-delay: 2.45s; }
@keyframes lx-db-particle {
	0%, 100% { opacity: .25; transform: scale(.7); }
	50% { opacity: 1; transform: scale(1.35); }
}
.lx-db-scan__copy { min-width: 0; width: 100%; }
.lx-db-scan__kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	color: #38bdf8;
	text-transform: uppercase;
}
.lx-db-scan__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: #f8fafc;
	letter-spacing: .02em;
}
.lx-db-scan__target {
	margin: 0 0 10px;
	font-size: 13px;
	color: #94a3b8;
}
.lx-db-scan__target strong {
	color: #7dd3fc;
	font-family: ui-monospace, Consolas, monospace;
}
.lx-db-scan__phase {
	margin: 0 0 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: #e0f2fe;
	min-height: 1.4em;
	text-shadow: 0 0 12px rgba(56,189,248,.35);
}
.lx-db-scan__bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(15,23,42,.8);
	border: 1px solid rgba(56,189,248,.2);
	overflow: hidden;
	margin-bottom: 14px;
}
.lx-db-scan__bar-fill {
	display: block;
	height: 100%;
	width: 12%;
	border-radius: 999px;
	background: linear-gradient(90deg, #0ea5e9, #6366f1, #22d3ee);
	background-size: 200% 100%;
	box-shadow: 0 0 12px rgba(56,189,248,.55);
	transition: width .55s ease;
	animation: lx-db-bar-flow 1.4s linear infinite;
}
@keyframes lx-db-bar-flow {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}
.lx-db-scan__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 168px;
	overflow: hidden;
}
.lx-db-scan__step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #64748b;
	padding: 4px 8px;
	border-radius: 8px;
	transition: color .25s, background .25s, transform .25s;
}
.lx-db-scan__step.is-done {
	color: #86efac;
}
.lx-db-scan__step.is-on {
	color: #e0f2fe;
	background: rgba(56,189,248,.1);
	transform: translateX(2px);
	box-shadow: inset 2px 0 0 #38bdf8;
}
.lx-db-scan__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #334155;
	box-shadow: none;
}
.lx-db-scan__step.is-done .lx-db-scan__dot {
	background: #34d399;
	box-shadow: 0 0 8px rgba(52,211,153,.6);
}
.lx-db-scan__step.is-on .lx-db-scan__dot {
	background: #38bdf8;
	box-shadow: 0 0 10px rgba(56,189,248,.85);
	animation: lx-db-dot-pulse .9s ease-in-out infinite;
}
@keyframes lx-db-dot-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.35); }
}
.lx-db-scan-done__badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	color: #6ee7b7;
	background: rgba(52,211,153,.12);
	border: 1px solid rgba(52,211,153,.3);
}
.lx-db-scan-fail {
	text-align: center;
	padding: 28px 16px;
	border-radius: 14px;
	border: 1px solid rgba(248,113,113,.3);
	background: rgba(127,29,29,.12);
}
.lx-db-scan-fail__icon {
	font-size: 28px;
	margin-bottom: 8px;
}
.lx-db-scan-fail h4 {
	margin: 0 0 8px;
	color: #fecaca;
}

/* 加载中动画 */
.lx-db-loading {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; min-height: 160px; padding: 28px 16px;
	color: #94a3b8; font-size: 13px;
}
/* display:flex 会覆盖原生 [hidden]，必须显式关掉 */
.lx-db-loading[hidden],
#lx-sh-skill-modal-loading[hidden],
#lx-sh-sql-advisor[hidden],
#lx-sh-type-skill-result[hidden],
#lx-sh-type-db-workspace[hidden],
.lx-db__connect[hidden] {
	display: none !important;
}
.lx-db-loading__spinner {
	width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid rgba(56,189,248,.18);
	border-top-color: #38bdf8;
	border-right-color: rgba(99,102,241,.7);
	animation: lx-db-spin .75s linear infinite;
	box-shadow: 0 0 16px rgba(56,189,248,.2);
}
.lx-db-loading__text { letter-spacing: .02em; }
@keyframes lx-db-spin {
	to { transform: rotate(360deg); }
}
.lx-db-pre {
	margin: 0; padding: 10px 12px; border-radius: 10px;
	background: rgba(2,6,23,.55); border: 1px solid var(--sh-border);
	font-size: 12px; white-space: pre-wrap; word-break: break-all; color: #cbd5e1; max-height: 280px; overflow: auto;
}
.lx-db-score {
	padding: 12px 14px; border-radius: 12px; margin-bottom: 12px;
	background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(14,165,233,.1));
	border: 1px solid rgba(52,211,153,.3); color: #a7f3d0; font-size: 14px;
}
.lx-db-score strong { font-size: 22px; color: #6ee7b7; margin: 0 4px; }
.lx-db-issues { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lx-db-issue {
	padding: 10px 12px; border-radius: 10px; border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.5);
}
.lx-db-issue__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.lx-db-issue__lv {
	font-size: 11px; font-weight: 800; text-transform: uppercase;
	padding: 2px 8px; border-radius: 999px; background: rgba(148,163,184,.2); color: #cbd5e1;
}
.lx-db-issue.is-high .lx-db-issue__lv { background: rgba(248,113,113,.2); color: #fecaca; }
.lx-db-issue.is-medium .lx-db-issue__lv { background: rgba(251,191,36,.2); color: #fde68a; }
.lx-db-issue.is-low .lx-db-issue__lv,
.lx-db-issue.is-info .lx-db-issue__lv { background: rgba(56,189,248,.15); color: #bae6fd; }
.lx-db-issue.is-ok .lx-db-issue__lv { background: rgba(52,211,153,.2); color: #a7f3d0; }
.lx-db-issue__cat { font-size: 11px; color: var(--sh-muted); }
.lx-db-issue__table { font-size: 12px; color: #7dd3fc; margin-bottom: 4px; }
.lx-db-issue p { margin: 4px 0; color: #cbd5e1; font-size: 13px; }
.lx-db-issue__advice { color: #fde68a !important; }
.lx-db__user-form { display: none !important; }
.lx-db-users-toolbar { gap: 8px; margin-bottom: 4px; }
.lx-db__users { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; min-height: 0; overflow: auto; flex: 1; }
/* 账号权限：结构化卡片（每账号独立色块，明显区分） */
.lx-db-user-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.lx-db-user {
	position: relative;
	border: 1px solid rgba(148,163,184,.28);
	border-radius: 16px;
	padding: 14px 16px 14px 18px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
	isolation: isolate;
}
.lx-db-user__accent {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	border-radius: 16px 0 0 16px;
	z-index: 1;
}
.lx-db-user.is-tone-cyan {
	background: linear-gradient(145deg, rgba(8,47,73,.92) 0%, rgba(15,23,42,.88) 55%, rgba(12,74,110,.35) 100%);
	border-color: rgba(56,189,248,.5);
	box-shadow: 0 0 0 1px rgba(56,189,248,.12), 0 12px 32px rgba(14,165,233,.14);
}
.lx-db-user.is-tone-cyan .lx-db-user__accent { background: linear-gradient(180deg, #38bdf8, #0ea5e9); }
.lx-db-user.is-tone-violet {
	background: linear-gradient(145deg, rgba(46,16,101,.9) 0%, rgba(15,23,42,.9) 55%, rgba(76,29,149,.35) 100%);
	border-color: rgba(167,139,250,.48);
	box-shadow: 0 0 0 1px rgba(167,139,250,.12), 0 12px 32px rgba(139,92,246,.14);
}
.lx-db-user.is-tone-violet .lx-db-user__accent { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.lx-db-user.is-tone-amber {
	background: linear-gradient(145deg, rgba(69,26,3,.9) 0%, rgba(15,23,42,.9) 55%, rgba(120,53,15,.35) 100%);
	border-color: rgba(251,191,36,.45);
	box-shadow: 0 0 0 1px rgba(251,191,36,.1), 0 12px 32px rgba(245,158,11,.12);
}
.lx-db-user.is-tone-amber .lx-db-user__accent { background: linear-gradient(180deg, #fbbf24, #d97706); }
.lx-db-user.is-tone-emerald {
	background: linear-gradient(145deg, rgba(6,78,59,.9) 0%, rgba(15,23,42,.9) 55%, rgba(4,120,87,.32) 100%);
	border-color: rgba(52,211,153,.45);
	box-shadow: 0 0 0 1px rgba(52,211,153,.1), 0 12px 32px rgba(16,185,129,.12);
}
.lx-db-user.is-tone-emerald .lx-db-user__accent { background: linear-gradient(180deg, #34d399, #059669); }
.lx-db-user.is-tone-rose {
	background: linear-gradient(145deg, rgba(76,5,25,.9) 0%, rgba(15,23,42,.9) 55%, rgba(136,19,55,.32) 100%);
	border-color: rgba(251,113,133,.45);
	box-shadow: 0 0 0 1px rgba(251,113,133,.1), 0 12px 32px rgba(244,63,94,.12);
}
.lx-db-user.is-tone-rose .lx-db-user__accent { background: linear-gradient(180deg, #fb7185, #e11d48); }
.lx-db-user.is-tone-sky {
	background: linear-gradient(145deg, rgba(12,74,110,.88) 0%, rgba(15,23,42,.9) 55%, rgba(3,105,161,.3) 100%);
	border-color: rgba(125,211,252,.42);
	box-shadow: 0 0 0 1px rgba(125,211,252,.1), 0 12px 32px rgba(14,165,233,.1);
}
.lx-db-user.is-tone-sky .lx-db-user__accent { background: linear-gradient(180deg, #7dd3fc, #0284c7); }
.lx-db-user.is-high { /* 远程任意地址额外描边 */ box-shadow: 0 0 0 1px rgba(248,113,113,.25), 0 12px 32px rgba(0,0,0,.2); }
.lx-db-user.is-editing {
	outline: 1px solid rgba(56,189,248,.45);
	outline-offset: 1px;
}
.lx-db-user.is-dirty {
	outline-color: rgba(251,191,36,.55);
}
.lx-db-user.is-locked { opacity: .9; }
.lx-db-user__badges .lx-sh-badge.is-edit {
	background: rgba(56,189,248,.2);
	color: #bae6fd;
}
.lx-db-user__badges .lx-sh-badge.is-dirty {
	background: rgba(251,191,36,.2);
	color: #fde68a;
}
.lx-db-priv.is-editable {
	padding-right: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.lx-db-priv__x {
	border: none;
	background: rgba(0,0,0,.25);
	color: inherit;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	padding: 0;
	opacity: .85;
}
.lx-db-priv__x:hover {
	background: rgba(248,113,113,.45);
	color: #fff;
	opacity: 1;
}
.lx-db-grant.is-editing {
	background: rgba(2,6,23,.4);
}
.lx-db-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 160px;
}
.lx-db-field__lab {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	line-height: 1.3;
}
.lx-db-field--action {
	flex: 0 0 auto;
	align-self: flex-end;
}
.lx-db-field .lx-sh-select,
.lx-db-field .lx-sh-input,
.lx-db-grant__add-sel {
	width: 100%;
	min-width: 0;
	min-height: 40px !important;
	height: auto !important;
	padding: 9px 12px !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	border-radius: 10px;
	box-sizing: border-box;
}
.lx-db-grant__add {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	align-items: flex-end;
}
.lx-db-grant__add .lx-db-field {
	flex: 1 1 220px;
}
.lx-db-grant__add .lx-sh-btn {
	min-height: 40px;
	padding: 0 14px;
}
.lx-db-grant.is-new {
	border-style: dashed;
	border-color: rgba(56,189,248,.35);
	background: rgba(14,165,233,.06);
}
.lx-db-grant__new-row,
.lx-db-grant__new-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	align-items: end;
}
.lx-db-grant__new-row .lx-sh-select,
.lx-db-grant__new-grid .lx-sh-select {
	min-width: 0;
	min-height: 40px !important;
	height: auto !important;
	padding: 9px 12px !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
}
/* 新建账号内联卡片 */
.lx-db-user.is-creating {
	border-style: dashed;
	border-color: rgba(56,189,248,.55);
}
.lx-db-create-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 12px;
	margin-bottom: 12px;
}
.lx-db-create-privs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lx-db-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(148,163,184,.22);
	background: rgba(15,23,42,.45);
	font-size: 12px;
	color: #cbd5e1;
	cursor: pointer;
	user-select: none;
}
.lx-db-check input { accent-color: #38bdf8; }
.lx-db-check:has(input:checked) {
	border-color: rgba(56,189,248,.45);
	background: rgba(56,189,248,.12);
	color: #e0f2fe;
}
.lx-db-user__ops .lx-sh-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
	pointer-events: none;
}
.lx-db-user__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.lx-db-user__id {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.lx-db-user__avatar {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(56,189,248,.12);
	border: 1px solid rgba(56,189,248,.25);
	font-size: 16px;
	flex-shrink: 0;
}
.lx-db-user__name {
	display: block;
	font-size: 15px;
	color: #f8fafc;
	font-weight: 800;
	line-height: 1.25;
}
.lx-db-user__host {
	display: block;
	font-size: 12px;
	color: #7dd3fc;
	font-family: ui-monospace, Consolas, monospace;
	margin-top: 2px;
}
.lx-db-user__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}
.lx-db-user__badges .lx-sh-badge.is-danger {
	background: rgba(248,113,113,.2);
	color: #fecaca;
}
.lx-db-user__badges .lx-sh-badge.is-warn {
	background: rgba(251,191,36,.2);
	color: #fde68a;
}
.lx-db-user__badges .lx-sh-badge.is-muted {
	background: rgba(100,116,139,.25);
	color: #cbd5e1;
}
.lx-db-user__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}
.lx-db-user__meta-item {
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(2,6,23,.35);
	border: 1px solid rgba(148,163,184,.12);
}
.lx-db-user__meta-item .k {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-bottom: 2px;
}
.lx-db-user__meta-item .v {
	font-size: 13px;
	color: #e2e8f0;
	font-weight: 600;
}
.lx-db-user__section-title {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	letter-spacing: .04em;
	margin-bottom: 8px;
}
.lx-db-grants {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lx-db-grant {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148,163,184,.16);
	background: rgba(15,23,42,.55);
}
.lx-db-grant.is-global { border-left: 3px solid #f87171; }
.lx-db-grant.is-database { border-left: 3px solid #38bdf8; }
.lx-db-grant.is-table { border-left: 3px solid #a78bfa; }
.lx-db-grant.is-proxy { border-left: 3px solid #fbbf24; }
.lx-db-grant__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.lx-db-grant__scope {
	font-size: 12.5px;
	font-weight: 700;
	color: #e2e8f0;
}
.lx-db-grant__target {
	font-size: 11px;
	color: #7dd3fc;
	background: rgba(14,165,233,.1);
	padding: 2px 6px;
	border-radius: 6px;
}
.lx-db-grant__privs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.lx-db-priv {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	background: rgba(56,189,248,.14);
	color: #bae6fd;
	border: 1px solid rgba(56,189,248,.22);
}
.lx-db-priv.is-read {
	background: rgba(52,211,153,.12);
	color: #a7f3d0;
	border-color: rgba(52,211,153,.25);
}
.lx-db-priv.is-write {
	background: rgba(251,191,36,.12);
	color: #fde68a;
	border-color: rgba(251,191,36,.25);
}
.lx-db-priv.is-danger {
	background: rgba(248,113,113,.15);
	color: #fecaca;
	border-color: rgba(248,113,113,.3);
}
.lx-db-priv.is-muted {
	background: rgba(100,116,139,.2);
	color: #94a3b8;
	border-color: rgba(100,116,139,.25);
}
.lx-db-user__ops {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(148,163,184,.14);
}
.lx-db-user__empty-grant {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
}
.lx-db-grant__raw {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
	word-break: break-all;
}
/* 确认弹层盖在技能弹窗之上 */
#lx-sh-tip-modal {
	z-index: 100200;
}
.lx-sh-btn--danger {
	background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
	border-color: transparent !important;
	color: #fff !important;
}
.lx-sh-modal__panel--tip.is-danger {
	border-color: rgba(248,113,113,.4);
	background:
		radial-gradient(ellipse 90% 70% at 50% 0%, rgba(248,113,113,.16), transparent 55%),
		linear-gradient(180deg, #1c1214 0%, #0b1220 100%);
}

/* ── 类型卡片可点击 ── */
a.lx-sh-type-card--link {
	text-decoration: none; color: inherit; cursor: pointer;
}
a.lx-sh-type-card--link .lx-sh-type-card__badge {
	color: #bae6fd; background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.35);
}
.lx-sh-type-card__arrow {
	position: absolute; right: 12px; bottom: 12px; color: #38bdf8; font-size: 16px; opacity: .7;
}
a.lx-sh-type-card--link:hover .lx-sh-type-card__arrow { opacity: 1; transform: translateX(2px); }

/* ── 类型专属页 ── */
.lx-sh-type-nav { margin-bottom: 10px; }
.lx-sh-type-nav__back {
	display: inline-flex; align-items: center; gap: 4px;
	color: #7dd3fc; text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.lx-sh-type-nav__back:hover { color: #bae6fd; }
.lx-sh-hero--type { margin-top: 4px; }
.lx-sh-hero__kicker {
	margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	color: #38bdf8; font-weight: 700;
}
.lx-sh-type-section {
	margin: 16px 0 20px; padding: 16px 18px;
	border-radius: 16px; border: 1px solid var(--sh-border);
	background: rgba(255,255,255,.03);
}
.lx-sh-type-section__head {
	margin-bottom: 16px;
}
.lx-sh-type-section__head h2 {
	margin: 0 0 4px; font-size: 17px; color: #f1f5f9;
}
.lx-sh-type-section__head p {
	margin: 0 0 12px; font-size: 13px; color: var(--sh-muted); line-height: 1.55;
}
.lx-sh-type-section__subhead {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 8px; color: #e2e8f0; font-size: 13.5px;
}
.lx-sh-type-connect {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px;
}
@media (max-width: 860px) {
	.lx-sh-type-connect { grid-template-columns: 1fr; }
}
.lx-sh-type-assets {
	display: flex; flex-direction: column; gap: 10px;
	max-height: 320px; overflow: auto;
	margin-top: 4px; padding: 2px 4px 2px 0;
}
.lx-sh-type-asset {
	display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
	padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sh-border);
	background: rgba(15,23,42,.45); cursor: pointer;
}
.lx-sh-type-asset.is-on {
	border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.1);
}
.lx-sh-type-asset input { margin: 0; }
.lx-sh-type-form .lx-sh-input,
.lx-sh-type-form .lx-sh-textarea { margin-top: 4px; }
.lx-sh-type-skill-status {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
	margin-bottom: 12px; font-size: 13px; color: #cbd5e1;
}
.lx-sh-badge.is-ok {
	color: #a7f3d0; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.35);
	padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.lx-sh-badge.is-live {
	color: #fde68a; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.35);
	padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.lx-sh-type-skills-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.lx-sh-skill-card {
	display: flex; flex-direction: column; gap: 8px;
	padding: 14px; border-radius: 14px; border: 1px solid var(--sh-border);
	background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(15,23,42,.35));
	min-height: 150px;
}
.lx-sh-skill-card__top {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.lx-sh-skill-card__top h3 {
	margin: 0; font-size: 14.5px; color: #f8fafc; line-height: 1.35;
}
.lx-sh-skill-card__desc {
	margin: 0; flex: 1; font-size: 12.5px; color: #94a3b8; line-height: 1.45;
}
.lx-sh-skill-card__meta {
	font-size: 11.5px; color: #64748b;
}
.lx-sh-skill-card .lx-sh-btn { align-self: flex-start; margin-top: 4px; }
.lx-sh-type-skill-result {
	margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sh-border);
}
.lx-sh-type-skill-result h4 { margin: 0 0 8px; color: #e2e8f0; }
#lx-sh-type-db-workspace .lx-sh-pane { display: block !important; }
#lx-sh-type-db-workspace .lx-db__intro { display: none; }

/* ── 未登录蒙层 + 精美弹窗 ── */
.lx-sh-type-manage-wrap {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
}
.lx-sh-type-manage-wrap.is-guest-locked .lx-sh-type-connect {
	filter: blur(1.5px);
	opacity: .55;
	pointer-events: none;
	user-select: none;
}
.lx-sh-guest-mask {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(160deg, rgba(8,15,30,.55), rgba(15,23,42,.72));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.lx-sh-guest-mask[hidden] { display: none !important; }
.lx-sh-guest-mask__card {
	max-width: 380px;
	width: 100%;
	text-align: center;
	padding: 22px 22px 20px;
	border-radius: 18px;
	border: 1px solid rgba(125,211,252,.28);
	background:
		radial-gradient(ellipse 80% 80% at 50% 0%, rgba(56,189,248,.16), transparent 60%),
		rgba(15,23,42,.92);
	box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.lx-sh-guest-mask__icon { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.lx-sh-guest-mask__title {
	margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #f8fafc;
}
.lx-sh-guest-mask__desc {
	margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #94a3b8;
}
.lx-sh-type-asset.is-demo {
	opacity: .75; cursor: default;
}
.lx-sh-type-asset__dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: rgba(56,189,248,.45); box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

.lx-sh-modal--pretty {
	align-items: center;
	background: rgba(2,6,23,.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.lx-sh-modal__panel--tip {
	position: relative;
	max-width: 420px;
	padding: 28px 24px 22px;
	text-align: center;
	background:
		radial-gradient(ellipse 90% 70% at 50% 0%, rgba(56,189,248,.14), transparent 55%),
		linear-gradient(180deg, #111827 0%, #0b1220 100%);
	border: 1px solid rgba(125,211,252,.25);
	box-shadow: 0 28px 70px rgba(0,0,0,.5);
}
.lx-sh-modal__panel--tip .lx-sh-modal__x {
	position: absolute; top: 10px; right: 12px;
}
.lx-sh-tip-modal__icon {
	font-size: 40px; line-height: 1; margin-bottom: 8px;
}
.lx-sh-tip-modal__kicker {
	margin: 0 0 4px; font-size: 11px; letter-spacing: .12em;
	font-weight: 700; color: #38bdf8; text-transform: uppercase;
}
.lx-sh-tip-modal__title {
	margin: 0 0 10px; font-size: 20px; font-weight: 800; color: #f8fafc;
}
.lx-sh-tip-modal__msg {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #94a3b8;
	white-space: pre-line;
	text-align: left;
}
.lx-sh-tip-modal__actions {
	display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
/* 纯提示弹窗隐藏取消按钮（避免 [hidden] 被其它样式覆盖） */
#lx-sh-tip-cancel[hidden],
#lx-sh-tip-cancel.is-hidden {
	display: none !important;
}
.lx-sh-skill-card.is-guest .lx-sh-btn--primary {
	background: linear-gradient(135deg, rgba(14,165,233,.75), rgba(99,102,241,.75));
}
body.lx-sh-modal-open { overflow: hidden; }

/* ── 技能弹窗内库表工作区 ── */
.lx-sh-type-browser {
	margin: 0;
	padding: 0;
	border: none;
}
.lx-sh-type-browser--modal .lx-db__tools {
	/* 前台类型页：工具栏由技能入口代替，弹窗内隐藏避免重复 */
	display: none !important;
}
.lx-sh-type-browser--modal .lx-db__connect { display: none !important; }
.lx-sh-type-browser--modal .lx-db__intro { display: none !important; }
/* 弹窗内：整块填满，弹窗本体不出现滚动条 */
.lx-sh-type-browser--modal {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}
.lx-sh-type-browser--modal .lx-sh-pane {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	margin: 0;
}
.lx-sh-type-browser--modal .lx-db {
	gap: 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}
.lx-sh-type-browser--modal .lx-db__body {
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}
.lx-sh-type-browser--modal .lx-db-panel.is-active {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}
.lx-sh-type-browser--modal .lx-db__browse {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	gap: 12px;
}
.lx-sh-type-browser--modal .lx-db__browse-nav {
	flex: 0 0 20%;
	width: 20%;
	max-width: 20%;
}
.lx-sh-type-browser--modal .lx-db__data-pane .lx-db-scroll {
	max-height: none;
}
.lx-sh-type-browser .lx-sh-pane.is-active,
.lx-sh-type-browser .lx-db-panel.is-active { display: block !important; }
/* 弹窗内覆盖：保持 flex 填满 */
.lx-sh-type-browser--modal .lx-sh-pane.is-active,
.lx-sh-type-browser--modal .lx-db-panel.is-active {
	display: flex !important;
}

/* 技能工作弹窗 */
.lx-sh-skill-modal {
	align-items: center;
	justify-content: center;
	padding: 12px 2vw;
	background: rgba(2, 6, 23, .72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: lx-skill-overlay-in .28s ease;
	overflow: hidden;
}
.lx-sh-skill-modal.is-closing {
	animation: lx-skill-overlay-out .22s ease forwards;
}
.lx-sh-modal__panel--skill {
	width: 90vw;
	min-width: min(90vw, 100%);
	max-width: 90vw;
	height: min(88vh, 920px);
	max-height: min(88vh, 920px);
	display: flex;
	flex-direction: column;
	text-align: left;
	padding: 0;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid rgba(125, 211, 252, .28);
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, .12), transparent 55%),
		linear-gradient(180deg, #111827 0%, #0b1220 100%);
	box-shadow: 0 32px 80px rgba(0, 0, 0, .55);
	transform: translateY(18px) scale(.96);
	opacity: 0;
}
/* 库表浏览：固定宽高填满，内部块自适配，弹窗本身无滚动条 */
.lx-sh-modal__panel--skill.is-browse-wide {
	width: 90vw;
	min-width: min(90vw, 100%);
	max-width: 90vw;
	height: min(88vh, 920px);
	max-height: min(88vh, 920px);
	overflow: hidden;
}
.lx-sh-modal__panel--skill.is-anim-in {
	animation: lx-skill-panel-in .36s cubic-bezier(.16, 1, .3, 1) forwards;
}
.lx-sh-skill-modal.is-closing .lx-sh-modal__panel--skill {
	animation: lx-skill-panel-out .2s ease forwards;
}
@keyframes lx-skill-overlay-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes lx-skill-overlay-out {
	from { opacity: 1; }
	to { opacity: 0; }
}
@keyframes lx-skill-panel-in {
	from { opacity: 0; transform: translateY(28px) scale(.94); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lx-skill-panel-out {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(16px) scale(.96); }
}
.lx-sh-skill-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 12px;
	border-bottom: 1px solid rgba(148, 163, 184, .16);
	flex-shrink: 0;
}
.lx-sh-skill-modal__kicker {
	margin: 0 0 2px;
	font-size: 11px;
	letter-spacing: .14em;
	font-weight: 700;
	color: #38bdf8;
	text-transform: uppercase;
}
.lx-sh-skill-modal__titles h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #f8fafc;
}
.lx-sh-skill-modal__sub {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #94a3b8;
	max-width: 720px;
}
/* 库表浏览：去掉标题下方冗长说明，直接进入库表 */
.lx-sh-skill-modal.is-browse-mode .lx-sh-skill-modal__sub {
	display: none !important;
}
.lx-sh-skill-modal.is-browse-mode .lx-sh-skill-modal__head {
	padding: 12px 16px 10px;
}
/* 库表浏览：彻底去掉 DB/表 上方的加载区、结果区、工具栏等占位 */
.lx-sh-skill-modal.is-browse-mode #lx-sh-skill-modal-loading,
.lx-sh-skill-modal.is-browse-mode #lx-sh-sql-advisor,
.lx-sh-skill-modal.is-browse-mode #lx-sh-type-skill-result,
.lx-sh-skill-modal.is-browse-mode .lx-db__tools,
.lx-sh-skill-modal.is-browse-mode .lx-db__connect,
.lx-sh-skill-modal.is-browse-mode .lx-db__intro {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	overflow: hidden !important;
}
.lx-sh-skill-modal.is-browse-mode .lx-sh-skill-modal__body {
	padding: 10px 12px 12px;
	overflow: hidden; /* 弹窗本体不滚动，内部块自适配 */
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}
.lx-sh-skill-modal.is-browse-mode #lx-sh-type-db-workspace {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}
.lx-sh-skill-modal.is-browse-mode .lx-db-panel:not([data-db-panel="browse"]) {
	display: none !important;
}

/* ── 设计图弹窗：极简顶栏 + 最大画布 ── */
.lx-sh-modal__panel--skill.is-design-wide {
	width: 96vw;
	max-width: 96vw;
	height: min(94vh, 980px);
	max-height: min(94vh, 980px);
	overflow: hidden;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-skill-modal__kicker,
.lx-sh-skill-modal.is-design-mode .lx-sh-skill-modal__sub {
	display: none !important;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-skill-modal__head {
	padding: 8px 12px;
	align-items: center;
	min-height: 0;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-skill-modal__titles h3 {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-skill-modal__body {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}
.lx-sh-skill-modal.is-design-mode #lx-sh-skill-modal-loading,
.lx-sh-skill-modal.is-design-mode #lx-sh-sql-advisor,
.lx-sh-skill-modal.is-design-mode #lx-sh-type-skill-result,
.lx-sh-skill-modal.is-design-mode #lx-sh-type-db-workspace {
	display: none !important;
}
.lx-sh-skill-modal.is-design-mode #lx-sh-design-panel {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	margin: 0;
	padding: 0;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-design-workspace {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}
.lx-sh-skill-modal.is-design-mode .lx-sh-design-workspace .lx-sh-design-result {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.lx-sh-design-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
}
.lx-sh-design-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(148, 163, 184, .14);
	background: rgba(15, 23, 42, .72);
	overflow-x: auto;
	scrollbar-width: none;
}
.lx-sh-design-bar::-webkit-scrollbar { display: none; height: 0; }
.lx-sh-design-bar__db {
	width: auto !important;
	min-width: 120px;
	max-width: 180px;
	padding: 4px 8px !important;
	font-size: 12px !important;
	height: 30px;
	flex-shrink: 0;
}
.lx-sh-design-bar #lx-sh-design-run {
	flex-shrink: 0;
	padding: 4px 12px !important;
	font-size: 12px !important;
	height: 30px;
	min-height: 30px;
}
.lx-sh-design-bar__sep {
	width: 1px;
	height: 18px;
	background: rgba(148, 163, 184, .25);
	flex-shrink: 0;
	margin: 0 2px;
}
.lx-sh-design-result {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}
.lx-dc-placeholder {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font-size: 13px;
	letter-spacing: .02em;
	background:
		radial-gradient(circle at 50% 40%, rgba(99,102,241,.06), transparent 50%),
		linear-gradient(165deg, rgba(15,23,42,.5), rgba(8,12,24,.8));
}

/* 设计模式画布撑满剩余空间 */
.lx-sh-skill-modal.is-design-mode .lx-dc-wrap {
	flex: 1 1 auto;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	border-radius: 0;
	border: none;
	border-top: 0;
}
.lx-sh-skill-modal.is-design-mode .lx-db-scan {
	margin: 12px;
	max-height: calc(100% - 24px);
	overflow: auto;
}

.lx-sh-skill-modal__body {
	padding: 14px 16px 18px;
	overflow: auto;
	flex: 1;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(56,189,248,.45) rgba(15,23,42,.6);
}
.lx-sh-skill-modal__body::-webkit-scrollbar { width: 8px; height: 8px; }
.lx-sh-skill-modal__body::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(56,189,248,.55), rgba(99,102,241,.5));
	border-radius: 8px;
}
.lx-sh-skill-card.is-browse {
	border-color: rgba(56, 189, 248, .4);
	background: linear-gradient(160deg, rgba(56,189,248,.1), rgba(15,23,42,.4));
}
/* 数据库连接列表：已连接态 */
.lx-sh-type-asset.is-connected {
	border-color: rgba(52, 211, 153, .45);
	box-shadow: 0 0 0 1px rgba(52, 211, 153, .12);
}
.lx-sh-btn--warn {
	background: rgba(251, 191, 36, .14) !important;
	border-color: rgba(251, 191, 36, .45) !important;
	color: #fde68a !important;
}
.lx-sh-btn--warn:hover {
	background: rgba(251, 191, 36, .22) !important;
	color: #fef3c7 !important;
}
.lx-sh-type-skill-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	justify-content: flex-end;
}

.lx-db__backup-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
@media (min-width: 960px) {
	.lx-db__backup-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.lx-db__backup-card {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--sh-border, rgba(148,163,184,.25));
	background: rgba(15, 23, 42, 0.45);
}
.lx-db__backup-card h4 {
	margin: 0 0 10px;
	color: #e2e8f0;
	font-size: 14px;
}
.lx-sh-type-browser .lx-db__tools { margin-bottom: 10px; }
.lx-sh-sql-advisor {
	margin-top: 14px; padding: 14px 16px; border-radius: 14px;
	border: 1px solid rgba(56,189,248,.28);
	background: rgba(14,165,233,.06);
}
.lx-sh-sql-advisor h4,
#lx-sh-ai-input-title { display: none !important; }
.lx-sh-sql-advisor .lx-sh-textarea { margin: 8px 0; font-family: ui-monospace, Consolas, monospace; }
.lx-sh-sql-advisor__db-row {
	margin: 10px 0 8px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(56,189,248,.2);
	background: rgba(15,23,42,.4);
}
.lx-sh-sql-advisor__db-row .lx-sh-label { margin: 0; }
#lx-sh-sql-advisor-db {
	min-width: 220px;
	margin-top: 4px;
}
#lx-sh-sql-advisor-run:disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(.3);
}
/* 死锁 / 锁等待表 */
.lx-db-lock-table .lx-db-lock-sql {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	color: #94a3b8;
}
.lx-db-lock-table tr.is-warn-row {
	background: rgba(251,191,36,.06);
}
.lx-db-lock-table .lx-db-ops {
	white-space: nowrap;
}

/* ── 连接列表 + 新增弹窗 ── */
.lx-sh-type-section__head-row {
	display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 4px;
}
.lx-sh-type-section__head-row h2 { margin: 0 0 4px; }
.lx-sh-type-section__head-row p { margin: 0; max-width: 640px; }
.lx-sh-type-connect--list-only {
	display: block;
	margin-top: 8px;
}
.lx-sh-type-connect--list-only .lx-sh-type-connect__list {
	max-width: 100%;
}
.lx-sh-type-assets { min-height: 120px; }

/* 删除确认弹窗（危险操作） */
.lx-sh-modal__panel--tip.is-danger {
	background:
		radial-gradient(ellipse 90% 70% at 50% 0%, rgba(239,68,68,.18), transparent 55%),
		linear-gradient(180deg, #1a0f12 0%, #0b1220 100%);
	border-color: rgba(248,113,113,.4);
	box-shadow: 0 28px 70px rgba(127,29,29,.35);
}
.lx-sh-modal__panel--tip.is-danger .lx-sh-tip-modal__kicker {
	color: #f87171;
}
.lx-sh-modal__panel--tip.is-danger #lx-sh-tip-ok {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border-color: transparent;
	color: #fff;
}
.lx-sh-modal__panel--tip.is-danger #lx-sh-tip-ok:hover {
	background: linear-gradient(135deg, #f87171, #ef4444);
}
.lx-sh-type-login-prompt {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
	padding: 18px 16px; border-radius: 14px;
	border: 1px dashed rgba(56,189,248,.35);
	background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(15,23,42,.4));
}
.lx-sh-type-login-prompt__icon { font-size: 28px; line-height: 1; }
.lx-sh-type-login-prompt__body { flex: 1; min-width: 200px; }
.lx-sh-type-login-prompt__body strong {
	display: block; color: #f1f5f9; font-size: 14.5px; margin-bottom: 4px;
}
.lx-sh-type-login-prompt__body p {
	margin: 0; font-size: 12.5px; color: #94a3b8; line-height: 1.5;
}
.lx-sh-modal__panel--form {
	max-width: 520px; text-align: left; padding: 18px 20px 16px;
}
.lx-sh-modal__panel--form .lx-sh-modal__head {
	margin-bottom: 6px;
}
.lx-sh-modal__panel--form .lx-sh-modal__head h3 {
	margin: 0; font-size: 18px; color: #f8fafc;
}
.lx-sh-modal__panel--form .lx-sh-form label {
	margin-bottom: 10px;
}

.lx-sh-type-section__subhead-actions {
	display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center;
}

.lx-sh-type-asset__ops {
	display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center;
}

.lx-sh-type-login-link {
	display: inline-block;
	font-size: 16px;
	font-weight: 800;
	color: #7dd3fc;
	text-decoration: none;
	cursor: pointer;
	border-bottom: 1px solid rgba(125,211,252,.45);
	margin-bottom: 4px;
}
.lx-sh-type-login-link:hover {
	color: #bae6fd;
	border-bottom-color: #bae6fd;
}
.lx-sh-type-login-prompt {
	cursor: pointer;
}
.lx-sh-type-login-prompt:hover {
	border-color: rgba(56,189,248,.55);
}

/* AI suite grid in db console */
.lx-db__ai-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 14px;
}
.lx-db__ai-grid .lx-sh-btn {
	border-color: rgba(56, 189, 248, 0.35);
	color: #7dd3fc;
}
.lx-db__ai-grid .lx-sh-btn:hover {
	background: rgba(14, 165, 233, 0.12);
}
.lx-sh-skill-card .lx-sh-badge.is-live {
	background: rgba(34, 197, 94, 0.18);
	color: #86efac;
	border: 1px solid rgba(34, 197, 94, 0.35);
}

/* ── 数据建模设计套件 · 可拖拽画布 ── */
.lx-sh-design-panel { margin-top: 4px; }
.lx-sh-design-toolbar { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.lx-sh-design-result { margin-top: 12px; min-height: 40px; }
#lx-sh-design-run:disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(.35);
	box-shadow: none;
}
#lx-sh-design-run.is-analyzing {
	opacity: 1 !important;
	filter: none !important;
	pointer-events: none;
	background: linear-gradient(135deg, #a78bfa, #6366f1, #38bdf8) !important;
	background-size: 200% 100% !important;
	animation: lx-db-btn-shine 1.2s linear infinite;
}

.lx-db-scan--design {
	border-color: rgba(167, 139, 250, .35);
	background:
		radial-gradient(ellipse 70% 80% at 20% 30%, rgba(139,92,246,.16), transparent 55%),
		radial-gradient(ellipse 60% 70% at 85% 70%, rgba(56,189,248,.12), transparent 50%),
		linear-gradient(160deg, rgba(20,16,40,.95), rgba(15,23,42,.8));
	box-shadow: 0 0 40px rgba(139,92,246,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.lx-db-scan--design .lx-db-scan__kicker { color: #c4b5fd; }
.lx-db-scan--design .lx-db-scan__target strong { color: #ddd6fe; }
.lx-db-scan__core--design {
	background: radial-gradient(circle at 35% 30%, #e9d5ff, #818cf8 45%, #0ea5e9 100%) !important;
	box-shadow: 0 0 24px rgba(167,139,250,.7), 0 0 48px rgba(56,189,248,.3) !important;
}
.lx-db-scan__bar--design { border-color: rgba(167,139,250,.3); }
.lx-db-scan__bar--design .lx-db-scan__bar-fill {
	background: linear-gradient(90deg, #8b5cf6, #6366f1, #38bdf8);
	box-shadow: 0 0 12px rgba(167,139,250,.55);
}
.lx-db-scan--design .lx-db-scan__step.is-done { color: #ddd6fe; }
.lx-db-scan--design .lx-db-scan__step.is-on {
	color: #f5f3ff;
	background: rgba(139,92,246,.12);
	box-shadow: inset 2px 0 0 #a78bfa;
}
.lx-db-scan--design .lx-db-scan__step.is-on .lx-db-scan__dot {
	background: #a78bfa;
	box-shadow: 0 0 10px rgba(167,139,250,.85);
}

.lx-dc-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.lx-dc-leg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #cbd5e1;
}
.lx-dc-leg::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: #64748b;
}
.lx-dc-leg.kind-external::before { background: #fbbf24; }
.lx-dc-leg.kind-process::before { background: #38bdf8; border-radius: 50%; }
.lx-dc-leg.kind-store::before { background: #34d399; }
.lx-dc-leg.kind-entity::before,
.lx-dc-leg.kind-table::before { background: #a78bfa; }
.lx-dc-leg.kind-fact::before { background: #f472b6; }
.lx-dc-leg.kind-dim::before { background: #22d3ee; }
.lx-dc-leg.kind-bridge::before { background: #fb923c; }
.lx-dc-leg.kind-fk::before,
.lx-dc-leg.kind-flow::before,
.lx-dc-leg.kind-rel::before { background: #38bdf8; height: 2px; width: 14px; border-radius: 1px; }
.lx-dc-leg.kind-inferred::before { background: #a78bfa; height: 2px; width: 14px; border-radius: 1px; opacity: .7; }
.lx-dc-leg-tip { color: #94a3b8; font-size: 12px; }

.lx-dc-wrap {
	margin-top: 0;
	/* 无滚动条：用 transform 平移画布 */
	overflow: hidden !important;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex: 1 1 auto;
	height: 100%;
	max-height: none;
	min-height: 0;
	border-radius: 0;
	border: none;
	background:
		radial-gradient(circle at 12% 18%, rgba(139,92,246,.07), transparent 40%),
		radial-gradient(circle at 88% 78%, rgba(56,189,248,.06), transparent 42%),
		linear-gradient(165deg, rgba(15,23,42,.94), rgba(8,12,24,.97));
	box-shadow: none;
	cursor: grab;
	position: relative;
	touch-action: none;
	width: 100%;
}
.lx-dc-wrap::-webkit-scrollbar { display: none; width: 0; height: 0; }
.lx-dc-wrap:active { cursor: grabbing; }
.lx-dc-canvas {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	min-width: 720px;
	transform-origin: 0 0;
	will-change: transform;
	background-image:
		linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
	background-size: 24px 24px;
}
.lx-dc-svg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: visible;
}
.lx-dc-edge {
	fill: none;
	stroke-width: 1.7;
	opacity: .88;
}
.lx-dc-edge.is-fk,
.lx-dc-edge.is-rel,
.lx-dc-edge.is-flow {
	stroke: #38bdf8;
	stroke-width: 2;
	filter: drop-shadow(0 0 3px rgba(56,189,248,.4));
}
.lx-dc-edge.is-inferred {
	stroke: #a78bfa;
	stroke-dasharray: 5 4;
	opacity: .72;
}

.lx-dc-node {
	position: absolute;
	z-index: 2;
	border-radius: 12px;
	border: 1px solid rgba(148,163,184,.28);
	background: linear-gradient(160deg, rgba(30,41,59,.97), rgba(15,23,42,.95));
	box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.03);
	overflow: hidden;
	user-select: none;
	cursor: grab;
	transition: box-shadow .15s ease, transform .12s ease;
}
.lx-dc-node:hover {
	box-shadow: 0 12px 28px rgba(0,0,0,.36), 0 0 0 1px rgba(167,139,250,.4);
	z-index: 5;
}
.lx-dc-node.is-dragging {
	cursor: grabbing;
	z-index: 20;
	transform: scale(1.03);
	box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(56,189,248,.55);
	opacity: .97;
}
.lx-dc-node.kind-external {
	border-top: 3px solid #fbbf24;
	border-radius: 4px;
	background: linear-gradient(160deg, rgba(66,48,12,.95), rgba(15,23,42,.95));
}
.lx-dc-node.kind-process {
	border-top: 3px solid #38bdf8;
	border-radius: 50% / 28%;
}
.lx-dc-node.kind-store {
	border-top: 3px solid #34d399;
	border-radius: 4px 4px 10px 10px;
}
.lx-dc-node.kind-entity,
.lx-dc-node.kind-table { border-top: 3px solid #a78bfa; }
.lx-dc-node.kind-fact { border-top: 3px solid #f472b6; }
.lx-dc-node.kind-dim { border-top: 3px solid #22d3ee; }
.lx-dc-node.kind-bridge { border-top: 3px solid #fb923c; }
.lx-dc-node.tone-0 { /* keep kind border primary */ }
.lx-dc-node__head {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 8px 0;
	flex-wrap: wrap;
}
.lx-dc-node__kind {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #94a3b8;
	font-weight: 700;
}
.lx-dc-badge {
	font-size: 9px;
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(56,189,248,.14);
	color: #7dd3fc;
	border: 1px solid rgba(56,189,248,.28);
}
.lx-dc-node__title {
	padding: 4px 10px 2px;
	font-size: 12px;
	font-weight: 700;
	color: #f1f5f9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lx-dc-node__sub {
	padding: 0 10px 4px;
	font-size: 10px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lx-dc-node__fields {
	padding: 2px 0 6px;
	border-top: 1px solid rgba(148,163,184,.1);
}
.lx-dc-field {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	padding: 1px 10px;
	font-size: 10px;
	color: #94a3b8;
}
.lx-dc-field .n {
	color: #cbd5e1;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 96px;
}
.lx-dc-field .t { color: #64748b; flex-shrink: 0; font-size: 9px; }
.lx-dc-field.is-pk .n { color: #fde68a; font-weight: 700; }
.lx-dc-field.is-pk .t { color: #fbbf24; }
.lx-dc-field.is-more {
	color: #64748b;
	font-style: italic;
	justify-content: center;
}

.lx-sh-skill-card.is-design {
	border-color: rgba(167, 139, 250, .28);
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139,92,246,.1), transparent 55%),
		linear-gradient(160deg, rgba(20,18,36,.5), rgba(15,23,42,.2));
}
.lx-sh-skill-card.is-design h3 {
	background: linear-gradient(90deg, #e9d5ff, #7dd3fc);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ── 设计画布工具栏（嵌入顶栏，极简） ── */
.lx-dc-tools {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	flex: 1 1 auto;
	min-width: 0;
}
.lx-dc-tools[hidden] { display: none !important; }
.lx-dc-tools__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.lx-dc-tool {
	appearance: none;
	border: 1px solid rgba(148,163,184,.22);
	background: rgba(30,41,59,.85);
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: .12s ease;
	height: 28px;
	line-height: 1;
	white-space: nowrap;
}
.lx-dc-tool:hover {
	border-color: rgba(167,139,250,.45);
	color: #f1f5f9;
}
.lx-dc-tool.is-active {
	border-color: rgba(56,189,248,.55);
	background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(139,92,246,.16));
	color: #e0f2fe;
	box-shadow: 0 0 0 1px rgba(56,189,248,.2);
}
.lx-dc-tool--export {
	border-color: rgba(52, 211, 153, .35);
	color: #6ee7b7;
}
.lx-dc-tool-tip { display: none !important; }
.lx-dc-export-quota {
	font-size: 11px;
	color: #64748b;
	padding-left: 2px;
	white-space: nowrap;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lx-dc-wrap.tool-pan,
.lx-dc-wrap.tool-pan .lx-dc-canvas { cursor: grab; }
.lx-dc-wrap.is-panning,
.lx-dc-wrap.is-panning .lx-dc-canvas { cursor: grabbing !important; }
.lx-dc-wrap.tool-link .lx-dc-node { cursor: crosshair; }
.lx-dc-wrap.tool-note .lx-dc-canvas { cursor: cell; }
.lx-dc-wrap.tool-delete .lx-dc-node,
.lx-dc-wrap.tool-delete .lx-dc-note { cursor: not-allowed; }

.lx-dc-svg { pointer-events: none; }
.lx-dc-edge {
	pointer-events: stroke;
	cursor: pointer;
	stroke-linecap: round;
}
.lx-dc-edge.is-custom {
	stroke: #fbbf24 !important;
	stroke-width: 2.2;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 3px rgba(251,191,36,.4));
}
.lx-dc-edge.is-selected {
	stroke: #f472b6 !important;
	stroke-width: 3 !important;
	filter: drop-shadow(0 0 6px rgba(244,114,182,.65));
}
.lx-dc-node.is-selected,
.lx-dc-note.is-selected {
	box-shadow: 0 0 0 2px rgba(56,189,248,.75), 0 12px 28px rgba(0,0,0,.4) !important;
}
.lx-dc-node.is-link-from {
	box-shadow: 0 0 0 2px rgba(251,191,36,.85), 0 0 20px rgba(251,191,36,.35) !important;
}

.lx-dc-note {
	position: absolute;
	z-index: 6;
	width: 150px;
	min-height: 72px;
	border-radius: 8px;
	border: 1px solid rgba(251,191,36,.45);
	background: linear-gradient(160deg, rgba(120,80,10,.92), rgba(40,28,8,.95));
	box-shadow: 0 8px 20px rgba(0,0,0,.3);
	cursor: grab;
	user-select: none;
}
.lx-dc-note.is-dragging { cursor: grabbing; z-index: 30; }
.lx-dc-note__head {
	padding: 5px 8px 2px;
	font-size: 10px;
	font-weight: 700;
	color: #fbbf24;
	letter-spacing: .04em;
}
.lx-dc-note__body {
	padding: 2px 8px 8px;
	font-size: 12px;
	color: #fde68a;
	line-height: 1.35;
	outline: none;
	min-height: 36px;
	word-break: break-word;
}
.lx-dc-note__body[contenteditable="true"] {
	background: rgba(0,0,0,.2);
	border-radius: 4px;
	cursor: text;
	user-select: text;
}


/* ── 设计工作区：画布 + 解析器 ── */
.lx-sh-design-workspace {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	align-items: stretch;
}
.lx-sh-design-workspace .lx-sh-design-result {
	flex: 1 1 auto;
	min-width: 0;
}
.lx-dc-inspector {
	width: 300px;
	max-width: 34%;
	flex: 0 0 300px;
	display: flex;
	flex-direction: column;
	border-left: 1px solid rgba(148,163,184,.16);
	background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,12,24,.99));
	min-height: 0;
}
.lx-dc-inspector__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid rgba(148,163,184,.14);
	flex-shrink: 0;
}
.lx-dc-inspector__title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	color: #a5b4fc;
	text-transform: uppercase;
}
.lx-dc-inspector__status {
	font-size: 11px;
	color: #64748b;
	max-width: 55%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lx-dc-inspector__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 10px 12px 14px;
	scrollbar-width: thin;
}
.lx-dc-inspector__empty {
	padding: 12px 4px;
	color: #94a3b8;
}
.lx-dc-inspector__empty-title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: #e2e8f0;
}
.lx-dc-inspector__empty-desc {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
}
.lx-dc-inspector__tips {
	margin: 0;
	padding: 0 0 0 16px;
	font-size: 12px;
	line-height: 1.7;
	color: #94a3b8;
}
.lx-dc-inspector__tips b { color: #cbd5e1; }

.lx-di-card {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148,163,184,.16);
	background: rgba(30,41,59,.55);
	margin-bottom: 12px;
}
.lx-di-card__tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	margin-bottom: 6px;
	background: rgba(99,102,241,.18);
	color: #c4b5fd;
	border: 1px solid rgba(167,139,250,.3);
}
.lx-di-card__tag.kind-fact { color: #f9a8d4; border-color: rgba(244,114,182,.35); background: rgba(244,114,182,.12); }
.lx-di-card__tag.kind-dim { color: #67e8f9; border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.1); }
.lx-di-card__tag.kind-table,
.lx-di-card__tag.kind-entity { color: #c4b5fd; }
.lx-di-card__tag.kind-process { color: #7dd3fc; border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.12); }
.lx-di-card__tag.kind-store { color: #6ee7b7; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.lx-di-card__tag.kind-external { color: #fcd34d; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1); }
.lx-di-card__tag.kind-fk,
.lx-di-card__tag.kind-flow,
.lx-di-card__tag.kind-rel { color: #7dd3fc; }
.lx-di-card__tag.kind-inferred { color: #c4b5fd; }
.lx-di-card__tag.kind-custom { color: #fcd34d; }
.lx-di-card__tag.kind-note { color: #fde68a; }
.lx-di-card__name {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: #f8fafc;
	word-break: break-all;
}
.lx-di-card__sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: #94a3b8;
}
.lx-di-section { margin-bottom: 12px; }
.lx-di-section__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #64748b;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.lx-di-section__title em {
	font-style: normal;
	color: #94a3b8;
	margin-left: 4px;
}
.lx-di-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #cbd5e1;
}
.lx-di-text.is-muted { color: #64748b; font-size: 12px; }
.lx-di-text code {
	font-size: 12px;
	color: #fde68a;
	background: rgba(251,191,36,.08);
	padding: 1px 6px;
	border-radius: 4px;
}
.lx-di-fields { display: flex; flex-direction: column; gap: 4px; }
.lx-di-field {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 8px;
	background: rgba(15,23,42,.55);
	border: 1px solid rgba(148,163,184,.1);
}
.lx-di-field.is-pk {
	border-color: rgba(251,191,36,.28);
	background: rgba(251,191,36,.06);
}
.lx-di-field__name {
	font-size: 12px;
	font-weight: 600;
	color: #e2e8f0;
	font-family: ui-monospace, Consolas, monospace;
	display: flex;
	align-items: center;
	gap: 6px;
}
.lx-di-field__type { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.lx-di-pill {
	font-size: 9px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(251,191,36,.2);
	color: #fbbf24;
}
.lx-di-rels { display: flex; flex-direction: column; gap: 4px; }
.lx-di-rel {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 2px 8px;
	padding: 7px 8px;
	border-radius: 8px;
	background: rgba(15,23,42,.5);
	border: 1px solid rgba(148,163,184,.1);
	cursor: pointer;
	transition: .12s ease;
}
.lx-di-rel:hover {
	border-color: rgba(56,189,248,.35);
	background: rgba(56,189,248,.08);
}
.lx-di-rel__dir { font-size: 10px; color: #64748b; grid-row: 1 / span 2; align-self: center; }
.lx-di-rel__name { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.lx-di-rel__kind { font-size: 10px; color: #a5b4fc; grid-column: 2; }
.lx-di-rel__label { font-size: 10px; color: #94a3b8; grid-column: 2; font-family: ui-monospace, Consolas, monospace; }
.lx-di-flow {
	display: flex;
	align-items: stretch;
	gap: 6px;
}
.lx-di-flow__node {
	flex: 1;
	padding: 8px;
	border-radius: 8px;
	background: rgba(15,23,42,.55);
	border: 1px solid rgba(148,163,184,.12);
}
.lx-di-flow__node .k { display: block; font-size: 10px; color: #64748b; margin-bottom: 2px; }
.lx-di-flow__node strong { display: block; font-size: 12px; color: #f1f5f9; word-break: break-all; }
.lx-di-flow__node em { font-style: normal; font-size: 10px; color: #94a3b8; }
.lx-di-flow__arrow { align-self: center; color: #38bdf8; font-weight: 800; }
.lx-di-note-text {
	margin: 0;
	padding: 10px;
	border-radius: 8px;
	background: rgba(251,191,36,.08);
	border: 1px solid rgba(251,191,36,.22);
	color: #fde68a;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}
.lx-di-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.lx-di-badge {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(56,189,248,.12);
	color: #7dd3fc;
	border: 1px solid rgba(56,189,248,.25);
}
.lx-di-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(148,163,184,.12);
}
.lx-di-btn {
	appearance: none;
	border: 1px solid rgba(148,163,184,.25);
	background: rgba(30,41,59,.9);
	color: #cbd5e1;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	cursor: pointer;
}
.lx-di-btn:hover { border-color: rgba(56,189,248,.4); color: #f1f5f9; }
.lx-di-btn.is-danger {
	border-color: rgba(248,113,113,.35);
	color: #fca5a5;
}
.lx-di-btn.is-danger:hover {
	background: rgba(248,113,113,.12);
}

/* 连线命中与预览 */
.lx-dc-edge-hit {
	fill: none;
	stroke: transparent;
	stroke-width: 16;
	pointer-events: stroke !important;
	cursor: pointer;
}
.lx-dc-svg { pointer-events: none; }
.lx-dc-edge { pointer-events: none; }
.lx-dc-link-preview {
	fill: none;
	stroke: #fbbf24;
	stroke-width: 2.2;
	stroke-dasharray: 6 4;
	pointer-events: none;
	filter: drop-shadow(0 0 4px rgba(251,191,36,.55));
}

/* 选中连线后的端点/中点拖拽手柄 */
.lx-dc-edge-ep {
	position: absolute;
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px solid #fbbf24;
	background: #0f172a;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 0 12px rgba(251, 191, 36, 0.45);
	transform: translate(-50%, -50%);
	cursor: grab;
	z-index: 28;
	pointer-events: auto;
	user-select: none;
	touch-action: none;
}
.lx-dc-edge-ep.is-from {
	border-color: #34d399;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 0 12px rgba(52, 211, 153, 0.5);
}
.lx-dc-edge-ep.is-to {
	border-color: #f472b6;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 0 12px rgba(244, 114, 182, 0.5);
}
.lx-dc-edge-ep.is-mid {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	border-color: #38bdf8;
	cursor: move;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 0 12px rgba(56, 189, 248, 0.5);
	z-index: 29;
}
.lx-dc-edge-ep:hover {
	transform: translate(-50%, -50%) scale(1.15);
}
.lx-dc-edge-ep.is-dragging,
.lx-dc-edge-ep:active {
	cursor: grabbing;
	transform: translate(-50%, -50%) scale(1.25);
	z-index: 35;
}
.lx-dc-node.is-link-from {
	box-shadow: 0 0 0 2px #fbbf24, 0 0 18px rgba(251,191,36,.4) !important;
	z-index: 8;
}
.lx-dc-node.is-link-hover {
	box-shadow: 0 0 0 2px #34d399, 0 0 16px rgba(52,211,153,.4) !important;
	z-index: 8;
}
.lx-dc-wrap.tool-link .lx-dc-node { cursor: crosshair; }
.lx-dc-wrap.tool-link .lx-dc-node::after {
	content: '';
	position: absolute;
	right: -5px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fbbf24;
	box-shadow: 0 0 0 2px rgba(15,23,42,.9), 0 0 8px rgba(251,191,36,.6);
	opacity: .85;
	pointer-events: none;
}

@media (max-width: 900px) {
	.lx-dc-inspector { width: 240px; flex-basis: 240px; max-width: 40%; }
}


/* 解析器可编辑字段 */
.lx-di-edit-label {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
}
.lx-di-input,
.lx-di-textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	box-sizing: border-box;
	border: 1px solid rgba(148,163,184,.25);
	background: rgba(15,23,42,.75);
	color: #e2e8f0;
	border-radius: 8px;
	padding: 7px 9px;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	resize: vertical;
}
.lx-di-input:focus,
.lx-di-textarea:focus {
	border-color: rgba(56,189,248,.5);
	box-shadow: 0 0 0 2px rgba(56,189,248,.12);
}
.lx-di-btn--primary {
	border-color: rgba(56,189,248,.45) !important;
	background: rgba(56,189,248,.16) !important;
	color: #7dd3fc !important;
}
.lx-dc-node.is-link-hover,
.lx-dc-note.is-link-hover {
	box-shadow: 0 0 0 2px #34d399, 0 0 16px rgba(52,211,153,.45) !important;
	z-index: 8;
}


/* 元素缩放手柄 */
.lx-dc-node,
.lx-dc-note {
	box-sizing: border-box;
	overflow: hidden;
}
.lx-dc-node.is-resizing,
.lx-dc-note.is-resizing {
	outline: 1px dashed rgba(56,189,248,.55);
	z-index: 25 !important;
}
.lx-dc-resize {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background:
		linear-gradient(135deg, transparent 45%, rgba(125,211,252,.95) 46%, rgba(125,211,252,.95) 54%, transparent 55%),
		linear-gradient(135deg, transparent 60%, rgba(125,211,252,.7) 61%, rgba(125,211,252,.7) 69%, transparent 70%),
		rgba(15,23,42,.55);
	border: 1px solid rgba(56,189,248,.55);
	cursor: nwse-resize;
	z-index: 30;
	pointer-events: auto;
	box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.lx-dc-resize:hover {
	background-color: rgba(56,189,248,.25);
	border-color: #7dd3fc;
	transform: scale(1.08);
}
.lx-dc-node:not(.is-selected) .lx-dc-resize,
.lx-dc-note:not(.is-selected) .lx-dc-resize {
	display: none;
}
.lx-dc-node__fields {
	overflow: auto;
	max-height: calc(100% - 52px);
}
.lx-dc-note__body {
	overflow: auto;
	max-height: calc(100% - 28px);
	box-sizing: border-box;
}


/* 连线中点文字说明 */
.lx-dc-edge-label {
	position: absolute;
	z-index: 12;
	transform: translate(-50%, -50%);
	max-width: 180px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.92);
	border: 1px solid rgba(56, 189, 248, 0.4);
	box-shadow: 0 2px 10px rgba(0,0,0,.28);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: auto;
}
.lx-dc-edge-label.kind-inferred {
	border-color: rgba(167,139,250,.45);
	color: #ddd6fe;
}
.lx-dc-edge-label.kind-custom {
	border-color: rgba(251,191,36,.5);
	color: #fde68a;
}
.lx-dc-edge-label.is-empty {
	color: #64748b;
	border-style: dashed;
	font-weight: 500;
	opacity: .92;
}
.lx-dc-edge-label.is-selected {
	border-color: #f472b6;
	box-shadow: 0 0 0 1px rgba(244,114,182,.45), 0 4px 14px rgba(0,0,0,.35);
	z-index: 16;
}
.lx-dc-edge-label.is-editing {
	padding: 0;
	max-width: 220px;
	overflow: visible;
	z-index: 40;
	border-color: rgba(56,189,248,.7);
	background: rgba(15,23,42,.98);
}
.lx-dc-edge-label__text {
	display: block;
	max-width: 168px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lx-dc-edge-label__input {
	display: block;
	width: 180px;
	max-width: 42vw;
	border: none;
	outline: none;
	background: transparent;
	color: #f1f5f9;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	font-family: inherit;
	border-radius: 999px;
}
.lx-dc-edge-label__input::placeholder {
	color: #64748b;
	font-weight: 500;
}

/* 网站安全防护 · 列表内验证 */
.lx-sh-websec-inline-hint {
	margin: 10px 0 4px !important;
	padding: 10px 12px;
	background: #f0f6fc;
	border: 1px solid #c3d9ed;
	border-radius: 8px;
	line-height: 1.55;
}
.lx-sh-type-asset--websec {
	align-items: flex-start;
}
.lx-sh-type-asset__main {
	flex: 1;
	min-width: 0;
}
.lx-sh-type-asset__url {
	display: inline-block;
	max-width: 100%;
	word-break: break-all;
	color: #2271b1;
	font-weight: 500;
}
.lx-sh-type-asset__ops {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
}
.lx-sh-type-asset__ops .lx-sh-badge {
	margin: 0;
}
.lx-sh-skill-card.is-locked {
	opacity: 0.72;
}
.lx-sh-skill-card.is-locked .lx-sh-btn:disabled {
	opacity: 0.85;
	cursor: not-allowed;
}
.lx-sh-badge.is-err {
	background: #fcf0f1;
	color: #b32d2e;
}
.lx-sh-badge.is-ok {
	background: #edfaef;
	color: #00a32a;
}
