/* matrixcalc — tool-specific styles
   只放这个工具独有的东西。公共外观（toolbox / field / alert / chip / hint）
   已经在全局样式表里。

   ★ 不写任何裸色值：一律走主题变量（--surface / --line / --fg …）。
   ★ 类名前缀 .mx- 是本工具私有的 —— 借别的工具的类名 = 没有样式
     （工具样式按工具隔离加载）。 */

.mx-hidden {
  display: none !important;
}

.mx-field {
  flex: 1 1 240px;
  min-width: 0;
}

/* 矩阵文本域：等宽 + 可纵向拉伸。矩阵看着要对齐，所以强制等宽字体 */
.mx-area {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  min-height: 76px;
}

/* 主读数：操作名 + （行列式数值 或 结果尺寸） */
.mx-lead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mx-lead__k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.mx-lead__v {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}

/* 结果矩阵：等宽 + 保留空白（矩阵靠空格对齐）+ 过宽时可横向滚动 */
.mx-result {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre;
  overflow-x: auto;
}
