/* 小工具 */
.tools-page {
  max-width: 1280px;
}

.tools-tabs {
  background: #fff;
}

.tools-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tools-panel-label {
  font-size: 13px;
  font-weight: 600;
  color: #606266;
  margin-bottom: 8px;
}

.tools-mono-input .el-textarea__inner,
.tools-mono-input .el-input__inner {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
}

/* 编解码：输入/输出随内容增高，超出可视区域后内部滚动 */
.tools-auto-textarea .el-textarea__inner {
  max-height: calc(100vh - 280px) !important;
  overflow-y: auto !important;
  resize: none;
}

.tools-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tools-pre {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f5f7fa;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow: auto;
}

.tools-diff-result {
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  overflow: auto;
  max-height: 420px;
  background: #fafafa;
  padding: 8px 0;
}

.tools-diff-line {
  display: flex;
  gap: 8px;
  padding: 1px 12px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.tools-diff-mark {
  width: 12px;
  flex-shrink: 0;
  font-weight: 700;
}

.tools-diff-same {
  color: #606266;
}

.tools-diff-add {
  background: #e1f3d8;
  color: #67c23a;
}

.tools-diff-del {
  background: #fde2e2;
  color: #f56c6c;
}

.tools-hash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.tools-hash-value {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
