/* 逐行锁定：行首锁按钮 + 锁定行视觉
   只新增控件与状态样式，不改动普通/放大模式已冻结的布局数值。 */

#blockPanel .line-lock {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 22px;
  height: 22px;
  margin: 10px 4px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #98A1AC);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
#blockPanel .line-lock svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#blockPanel .line-lock:hover { color: var(--text, #1A1D23); background: var(--panel2, rgba(0,0,0,.05)); }
#blockPanel .line-lock:focus-visible { outline: 2px solid var(--blue, #2B6CD4); outline-offset: 2px; }
#blockPanel .line-lock.on {
  color: #8A6A2C;
  background: #F6EFE2;
  border-color: #E3D2B4;
}
[data-theme="dark"] #blockPanel .line-lock.on {
  color: #E0BE7E;
  background: rgba(224, 190, 126, .14);
  border-color: rgba(224, 190, 126, .34);
}

/* 锁定行：轻微内描边 + 手柄淡化，仍然可读、可滚动、可复制 */
#blockPanel .block.locked {
  box-shadow: inset 0 0 0 1px rgba(138, 106, 44, .45);
  cursor: default;
}
[data-theme="dark"] #blockPanel .block.locked {
  box-shadow: inset 0 0 0 1px rgba(224, 190, 126, .38);
}
#blockPanel .block.locked .block-handle { opacity: .28; }
#blockPanel .block.locked .block-del { opacity: .35; }

@media (prefers-reduced-motion: reduce) {
  #blockPanel .line-lock { transition: none; }
}

/* 拖动经过锁定行：只给禁止放置反馈，占位与让位一律不出现（不产生布局位移） */
#blockPanel #blocksArea.lock-target { cursor: not-allowed; box-shadow: inset 0 0 0 2px var(--lock-ink, #b8860b); }
#blockPanel #blocksArea.lock-target .block { cursor: not-allowed; }
